grabana icon indicating copy to clipboard operation
grabana copied to clipboard

Allow configuring Stat reduceOptions

Open aaguilartablada opened this issue 8 months ago • 0 comments

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
},

aaguilartablada avatar May 28 '24 16:05 aaguilartablada