VictoriaMetrics/app
Roman Khavronenko 7416fdaa8b
vmalert: expose new metrics for tracking number of produced samples during last evaluation (#1518)
* vmalert: expose new metrics for tracking number of produced samples during last evaluation

Two new metrics were added to track the number of samples produced during the last evaluation:
* vmalert_recording_rules_last_evaluation_samples
* vmalert_alerting_rules_last_evaluation_samples

The gauge type is used to remain consistent with Prometheus metric
`prometheus_rule_group_last_evaluation_samples` which is on the group level.
However, the counter type was considered as well.

Two metrics instead of one are used to make it easier to separate recording and
alerting rules. It is likely, number of samples produced by recording rules is
more important so people will refer to it more frequently.

The expected usage of the new metric is the following:
```
   - alert: RecordingRuleReturnsEmptyResults
        expr: sum(vmalert_recording_rules_last_evaluation_samples) by(recording) < 1
        annotations:
          summary: Recording rule {{$labels.recording}} returns empty results.
            Please verify expression correctness.
```

Addresses https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1494

* vmalert: rename `vmalert_alerts_error` to `vmalert_alerting_rules_error` to remain consistent with recording rules metrics
2021-08-05 09:59:46 +03:00
..
victoria-metrics app/vmui: move source code from https://github.com/VictoriaMetrics/vmui to app/vmui 2021-07-09 17:15:23 +03:00
vmagent app/vmagent: follow-up after fe445f753b 2021-08-05 09:52:32 +03:00
vmalert vmalert: expose new metrics for tracking number of produced samples during last evaluation (#1518) 2021-08-05 09:59:46 +03:00
vmauth app/vmselect: follow-up after aa11ef6d3b 2021-07-07 17:43:35 +03:00
vmbackup app/vmselect: follow-up after aa11ef6d3b 2021-07-07 17:43:35 +03:00
vmbackupmanager docs/{vmgateway,vmbackupmanager}: explicitly mention that these components are a part of an enterprise package 2021-06-17 17:19:49 +03:00
vmctl app/vmselect: follow-up after aa11ef6d3b 2021-07-07 17:43:35 +03:00
vmgateway docs/{vmgateway,vmbackupmanager}: explicitly mention that these components are a part of an enterprise package 2021-06-17 17:19:49 +03:00
vminsert app/{vminsert,vmselect}: export vminsert_request_duration_seconds and vmselect_request_duration_seconds histograms 2021-07-07 13:25:21 +03:00
vmrestore app/vmselect: follow-up after aa11ef6d3b 2021-07-07 17:43:35 +03:00
vmselect app/vmselect/promql: add present_over_time(m[d]) function, which will be available starting from Prometheus 2.29.0 2021-08-03 16:11:49 +03:00
vmstorage li/storage: re-use the per-day inverted index search code for searching in global index 2021-07-30 10:31:37 +03:00
vmui Update TimeSelector.tsx (#1515) 2021-08-03 10:01:01 +03:00