VictoriaMetrics/app
Roman Khavronenko d5ba8248cc 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 10:02:35 +03:00
..
vmagent app/vmagent: typo fix in the description for -remoteWrite.queues 2021-08-05 10:00:58 +03:00
vmalert vmalert: expose new metrics for tracking number of produced samples during last evaluation (#1518) 2021-08-05 10:02:35 +03:00
vmauth app/vmselect: follow-up after aa11ef6d3b 2021-07-07 17:45:09 +03:00
vmbackup app/vmselect: follow-up after aa11ef6d3b 2021-07-07 17:45:09 +03:00
vmbackupmanager docs/{vmgateway,vmbackupmanager}: explicitly mention that these components are a part of an enterprise package 2021-06-17 17:19:13 +03:00
vmctl app/vmselect: follow-up after aa11ef6d3b 2021-07-07 17:45:09 +03:00
vmgateway docs/{vmgateway,vmbackupmanager}: explicitly mention that these components are a part of an enterprise package 2021-06-17 17:19:13 +03:00
vminsert app/{vminsert,vmselect}: export vminsert_request_duration_seconds and vmselect_request_duration_seconds histograms 2021-07-07 13:27:23 +03:00
vmrestore app/vmselect: follow-up after aa11ef6d3b 2021-07-07 17:45:09 +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 12:21:53 +03:00
vmstorage li/storage: re-use the per-day inverted index search code for searching in global index 2021-07-30 10:28:20 +03:00
vmui Update TimeSelector.tsx (#1515) 2021-08-03 11:14:56 +03:00