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

Allow configuring Stat reduceOptions #263

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aaguilartablada
Copy link

Allow configuring ReduceOptions.Fields and ReduceOptions.Values in order to be able to select what to show in Stat panel.

For example, having this Prometheus metric:

process_runtime_dotnet_info{runtime_version="6.0.11", version="1.0.0", .......} 1

To show version label value (1.0.0) it is necessary to configure reduceOptions like this:

"reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "/^version$/",
          "values": false
},

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

Successfully merging this pull request may close these issues.

1 participant