Metrics: use consistent naming for exported variables (#18134)
* Metrics: remove unused metrics Metric `M_Grafana_Version` is not used anywhere, nor the mentioned `M_Grafana_Build_Version`. Seems to be an artefact? * Metrics: make the naming consistent * Metrics: add comments to exported vars * Metrics: use proper naming Fixes #18110
This commit is contained in:
committed by
Torkel Ödegaard
parent
15ce5a68cf
commit
75fa1f0207
@@ -44,7 +44,7 @@ func (handler *defaultResultHandler) handle(evalContext *EvalContext) error {
|
||||
annotationData.Set("noData", true)
|
||||
}
|
||||
|
||||
metrics.M_Alerting_Result_State.WithLabelValues(string(evalContext.Rule.State)).Inc()
|
||||
metrics.MAlertingResultState.WithLabelValues(string(evalContext.Rule.State)).Inc()
|
||||
if evalContext.shouldUpdateAlertState() {
|
||||
handler.log.Info("New state change", "alertId", evalContext.Rule.ID, "newState", evalContext.Rule.State, "prev state", evalContext.PrevAlertState)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user