Skip to content

Automatic created Ngnix alert after Prometheus install (1/2)

Sean Arnold requested to merge 118788-automatic-metric-alerts into master

What does this MR do?

This adds the ability to create Prometheus alerts automatically after the Prometheus service is added.

The Prometheus service can be added by:

Creating the alerts after the service has first been created allows us to target both of these user flows.

Note this covers one of the metrics required in the proposal (in bold). The other will be added in a later MR:

Proposal

For newly created projects, as soon as a user installs Prometheus on their Cluster, two default metrics would have the following alerts applied:

  1. On the Throughput metric, add an alert to auto-monitoring in Auto DevOps when 5xx status codes ≥ 0.1% for 10 minutes
  2. On the HTTP error rate metric, add an alert to auto-monitoring in Auto DevOps when 5xx errors ≥ 0.1% for 10 minutes

Screenshots

Metric added

Screen_Shot_2020-04-01_at_5.03.56_PM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

This can be tested by:

Related to #118788 (closed)

Edited by Peter Leitzen

Merge request reports