We have an error_count metric which have two labels:
- client
- error_code
Because we know that there is a client will have (let's say, 404 error_code) which can not be avoided, so we want to exclude it in our dashboard.
Something like:
error_count{client!="foo_client" and error_code!="404"}
But
error_count{client!="foo_client", error_code!="404"}
won't work because it will exclude all from foo_client and all 404 errors.
And for what's worse, I only have control on Grafana's PromQL, maybe config Prometheus' collecting can solve this but I have no permission to config this since they are managed by other teams.