Skip to content
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

Some metrics in nginxreceiver are defined as Gauge, but they are non-monotonic sums #4326

Closed
bogdandrutu opened this issue Jul 25, 2021 · 8 comments · Fixed by #28659
Closed
Assignees

Comments

@bogdandrutu
Copy link
Member

E.g. nginx.connections_current

@bogdandrutu bogdandrutu added the bug Something isn't working label Jul 25, 2021
@github-actions github-actions bot added the Stale label Aug 2, 2021
@bogdandrutu bogdandrutu removed the Stale label Aug 9, 2021
hex1848 pushed a commit to hex1848/opentelemetry-collector-contrib that referenced this issue Jun 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2022

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Nov 4, 2022
@github-actions
Copy link
Contributor

This issue has been closed as inactive because it has been stale for 120 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 24, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2023

Pinging code owners for receiver/nginx: @djaglowski. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@lBowlin
Copy link

lBowlin commented Jun 26, 2023

Hi @djaglowski and @bogdandrutu I stumbled upon this change and am curious why it was made? According the nginx documentation reading writing waiting all represent the current values of connections in those states, and go up and down accordingly. This would seem to represent a gauge type metric, and the official nginx-prometheus-exporter also classifies them as gauges.

What inspired this change? Has there been a fundamental change to how the metric is observed from one that can go up or down, to one that can only go up?

@djaglowski
Copy link
Member

Hi @lBowlin, there's a subtlety in the OTel data model that was overlooked in this case.

Basically, our notion of sum metric is a bit broader than just counters and can represent realtime values that go up and down. The key idea here is that we subdivide sums into monotonic (counters) and non-monotonic (gauge-like) types, but we ultimately expect non-monotonic sums to be treated as gauges in most backends. (This diagram may be helpful.)

What differentiates a non-monotonic sum from a gauge is that the data points can be meaningfully aggregated. For example, with this metric we could:

  • Sum reading writing and waiting for a single server to find a total number of connections.
  • Sum waiting data points across multiple servers to determine the total number of waiting connections in a deployment.

This means that gauges are only used for things that cannot be aggregated in a straightforward way. For example, a disk space utilization %.

@github-actions
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions
Copy link
Contributor

This issue has been closed as inactive because it has been stale for 120 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2023
@djaglowski djaglowski reopened this Oct 27, 2023
@djaglowski
Copy link
Member

This is essentially completed but still behind a feature gate.

jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this issue Nov 12, 2023
RoryCrispin pushed a commit to ClickHouse/opentelemetry-collector-contrib that referenced this issue Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants