-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Frequently we make nits to users about using query functions when alerting on gauges:
https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0/
I believe this would be a nice addition to Pint and Prometheus rule linting. Based on the counter check it seems like we could also find if a metric is a gauge and not covered by a query function:
pint/internal/checks/promql_counter.go
Line 51 in 63fb306
func (c CounterCheck) Check(ctx context.Context, _ discovery.Path, rule parser.Rule, _ []discovery.Entry) (problems []Problem) { |
I'm happy to contribute this back to Pint but want to discuss with the maintainer if this would be acceptable
cc: @prymitive
Metadata
Metadata
Assignees
Labels
No labels