go-statsd icon indicating copy to clipboard operation
go-statsd copied to clipboard

Counter meaning in grafana (statsd -> telegraf -> influxdb -> grafana)

Open thangld322 opened this issue 5 years ago • 1 comments

Sorry for my lack of knowledge about statsd. I'm using your go-statsd to count events in my logs shipper app. Everytimes it receives an event, it increases stat.inputEvents by one. Then, I use grafana to visualize this stat:

Data source: InfluxDB
Query: SELECT "value" FROM "stat_inputEvents" WHERE ("metric_type" = 'counter') AND $timeFilter

Since the graph is not always going up, so it is not counter from beginning. So what does its value mean please? Events per second, events per ten seconds, ...?

thangld322 avatar Aug 30 '19 09:08 thangld322

Hi @thangld322

so it is not counter from beginning.

I dont get that part, counter is

a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero on restart.

ilyam8 avatar Sep 05 '19 20:09 ilyam8