netdata / go-statsd

A simple, efficient StatsD Client for Go.
https://godoc.org/github.com/netdata/statsd
MIT License
59 stars 5 forks source link

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

Open thangld322 opened 5 years ago

thangld322 commented 5 years ago

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, ...?

ilyam8 commented 5 years ago

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.