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

Add available memory to internal metrics #10018

Conversation

travisdowns
Copy link
Member

@travisdowns travisdowns commented Apr 12, 2023

This change adds the available_memory metric, which has been very useful, to the internal metrics endpoint in addition to the public metrics one (where it is today).

Currently, some users are pulling only /metrics or have dashboards or other integrations oriented towards /metrics, and can't use this key memory metric. Furthermore, all of the other memory metrics are in /metrics so it is odd that the most important memory metric is stranded elsewhere.

This change reverses this decision and put available_memory in both places, in line with all other memory metrics and the majority of metrics in general.

See https://github.com/redpanda-data/core-internal/issues/103 for background on this metric.

Fixes #9982.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.1.x
  • v22.3.x
  • v22.2.x

Release Notes

Bug Fixes

  • The vectorized_memory_available_memory metric is now available on the /metrics endpoint in addition to /public_metrics.

Intended to replace an ss::metrics::metric_groups instance when
you want a metric exposed on both the /metrics (aka "internal")
and /public_metrics (aka "public") metrics endpoint.

Removes the boilerplate needed to add the metrics to both places.
Previously this was only available on /public_metrics, but this has
proven problematic. See redpanda-data#9982 for details.

Fixes redpanda-data#9982.
@travisdowns travisdowns changed the title Td 9982 avail memory in internal metrics Add available memory to internal metrics Apr 12, 2023
@piyushredpanda
Copy link
Contributor

YES!

@travisdowns travisdowns merged commit 55194d0 into redpanda-data:dev Apr 13, 2023
@travisdowns
Copy link
Member Author

/backport v23.1.x

@bharathv
Copy link
Contributor

Is it ok to backport this to 22.3.x? I was looking for this metric today.

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

Successfully merging this pull request may close these issues.

available_memory metric should be exposed in /metrics
4 participants