Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

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

Open
thangld322 opened this issue Aug 30, 2019 · 1 comment

Comments

@thangld322
Copy link

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
Copy link
Member

ilyam8 commented Sep 5, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants