Teonet library
0.4.7
|
Macros | |
#define | MODULE "metrics" |
File: metric.c Author: Kirill Scherba kiril l@sc herba .ruMore... | |
Functions | |
teoMetricClass * | teoMetricInit (void *kep) |
Initialize Metrics module. More... | |
void | teoMetricDestroy (teoMetricClass *tm) |
Destroy Metrics module. More... | |
void | teoMetricCounter (teoMetricClass *tm, const char *name, int value) |
Send counter teonet metric. More... | |
void | teoMetricCounterf (teoMetricClass *tm, const char *name, double value) |
Send counter teonet metric. More... | |
void | teoMetricMs (teoMetricClass *tm, const char *name, double value) |
Send time(ms) teonet metric. More... | |
void | teoMetricGauge (teoMetricClass *tm, const char *name, int value) |
Send gauge teonet metrics. More... | |
void | teoMetricGaugef (teoMetricClass *tm, const char *name, double value) |
Send gauge teonet metrics. More... | |
void | metric_teonet_count (teoMetricClass *tm) |
Send default teonet metrics. More... | |
#define MODULE "metrics" |
File: metric.c Author: Kirill Scherba kiril l@sc herba .ru
Metrics module
Created on November 28, 2019, 1:38 PM
See Teonet Metrics System description in sh/statsd/README.md
Referenced by teoMetricInit().
void metric_teonet_count | ( | teoMetricClass * | tm | ) |
Send default teonet metrics.
tm | Pointer to teoMetricClass |
References ksnCoreClass::ka, ksnetEvMgrClass::kc, teoMetricClass::ke, ksnetEvMgrClass::kl, ksnetArpMetrics(), ksnLNullStat(), teonet_cfg::statsd_peers_f, ksnetEvMgrClass::teo_cfg, teoMetricCounter(), and teoMetricGauge().
Referenced by timer_cb().
void teoMetricCounter | ( | teoMetricClass * | tm, |
const char * | name, | ||
int | value | ||
) |
Send counter teonet metric.
tm | Pointer to teoMetricClass |
name | Metrics name |
value | Metrics counter value |
Referenced by metric_teonet_count(), and teo::Teonet::metricCounter().
void teoMetricCounterf | ( | teoMetricClass * | tm, |
const char * | name, | ||
double | value | ||
) |
Send counter teonet metric.
tm | Pointer to teoMetricClass |
name | Metrics name |
value | Metrics counter value |
Referenced by teo::Teonet::metricCounter().
void teoMetricDestroy | ( | teoMetricClass * | tm | ) |
Destroy Metrics module.
tm | Pointer to teoMetricClass |
References free().
Referenced by modules_destroy().
void teoMetricGauge | ( | teoMetricClass * | tm, |
const char * | name, | ||
int | value | ||
) |
Send gauge teonet metrics.
tm | Pointer to teoMetricClass |
name | Metrics name |
value | Metrics gauge value |
Referenced by cmd_disconnected_cb(), metric_teonet_count(), and teo::Teonet::metricGauge().
void teoMetricGaugef | ( | teoMetricClass * | tm, |
const char * | name, | ||
double | value | ||
) |
Send gauge teonet metrics.
tm | Pointer to teoMetricClass |
name | Metrics name |
value | Metrics gauge value |
Referenced by ksnetArpMetrics(), and teo::Teonet::metricGauge().
teoMetricClass* teoMetricInit | ( | void * | kep | ) |
Initialize Metrics module.
kep | Pointer to ksnetEvMgrClass |
References teoMetricClass::ke, ke, ksn_printf, malloc(), MESSAGE, MODULE, teonet_cfg::statsd_ip, teonet_cfg::statsd_port, ksnetEvMgrClass::teo_cfg, and teoMetricClass::to.
Referenced by modules_init().
void teoMetricMs | ( | teoMetricClass * | tm, |
const char * | name, | ||
double | value | ||
) |
Send time(ms) teonet metric.
tm | Pointer to teoMetricClass |
name | Metrics name |
value | Metrics ms value |
Referenced by teo::Teonet::metricMs().