-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
output/influxdb: Counter aggregation #2289
Comments
This together with values sometimes not being written to InfluxDB, as described by #636, means that it is difficult to get an accurate value of the counter this way even when summing the values recorded in the database. Sending the accumulated value to InfluxDB instead could mitigate this. |
Hi @michaelgrahamevans, Once we will have it, we could consider adding an option for emitting aggregated metrics from the InfluxDB output. |
Somewhat related old issue: #1340 |
Brief summary
When using the InfluxDB output back end, the value added to custom counter metrics is sent to InfluxDB instead of the current, accumulated value of the counter. This behaviour makes the counter metric type the same as the gauge metric type in InfluxDB (see steps and graph below) which makes me think this is a bug.
k6 version
0.35.0
OS
Linux
Docker version and image (if applicable)
loadimpact/k6:0.35.0
Steps to reproduce the problem
Start an InfluxDB server
Run the following script with
k6 run --iterations=10 --out=influxdb=http://localhost:8086 count.js
Query the data with the following queries
Expected behaviour
The database should contain the values
1
,3
,6
,10
,15
, ... for the counter metric.Actual behaviour
The database contains the values
1
,2
,3
,4
,5
, ... for the counter metric, which is the same as the gauge metric.The text was updated successfully, but these errors were encountered: