influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
28.71k stars 3.54k forks source link

Inverted metrics InfluxDB2: storage_shard_write_sum & storage_shard_write_count #25056

Open thomasbromkapsdata opened 3 months ago

thomasbromkapsdata commented 3 months ago

Steps to reproduce:

  1. Set up a basic influxdb scrapper toward influxdb metrics writing toward a "monitoring_influxdb" bucket by example.
  2. Take a look at storage_shard_write_sum & storage_shard_write_count metrics for you "monitoring_influxdb" bucket (using id) using by example 10s aggregation and difference() to get the change
  3. You can see that storage_shard_write_sum give you 1 every ten second that correspond to the number of write by the scrapper but that storage_shard_write_count give you a large number looking like a number of points.

Expected behaviour: Metrics should follow the documentation and their names: storage_shard_write_sum should give "Number of points in shard write requests" as intended by the "sum" at the end storage_shard_write_count should give "Number of shard write requests" as intended by the "count" at the end

Actual behaviour: storage_shard_write_sum give "Number of shard write requests" storage_shard_write_count give "Number of points in shard write requests"

Environment info: Different debian environments. Influx 2.7.6 or Influx 2.6.1

Config: Nothing special.