I've a metric in below format:
code_smells_count{BLOCKER="176",CRITICAL="52",MAJOR="3784",instance="localhost:8080",job="my-metrics",domainId="65",domain="Sales",product="EmployeeSales",project_key="employee-sales"} 5000
I'm trying to write a query that will only display the value of BLOCKER
in a gauge.
I tried:
sum(code_smells_count{product="[[product]]"})by (BLOCKER)
But this doesn't work, as it returns value of code_smells_count{product="[[product]]"
, whereas I want only BLOCKER="176"
Any suggestions?
Thank you
In Grafana, you can display the value of a tag with:
table
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With