Altinn / Altinn/altinn-platform

Reconcile the Pyrra generated PrometheusRule CRs with Azure PrometheusRuleGroups resources

Open
#997 0 comments 0 reactions 1 assignee Assigned to @monteiro-renato View on GitHub
area/observability PartOfEpic
Dominant language
Go
Stars
13
Forks
7
Avg merge
19h 21m
Merged PRs (30d)
76

Description

Continuation of https://github.com/Altinn/altinn-platform/issues/995

Notes:
- Azure has a [tool](https://github.com/Azure/prometheus-collector/tree/main/tools/az-prom-rules-converter) that might work.
- The tool doesn't accept the raw manifest that Pyrra generates. [Here](https://github.com/Azure/prometheus-collector/blob/main/tools/az-prom-rules-converter/test-files/yaml-example.yml)'s an example input (i.e. we need to extract the group from the Pyrra generated manifest).
- The Interval (in the arm template) needs to be between 1 and 1440 which means that the PrometheusRule manifest can't have intervals lower than 60s. (Property name: Interval, Attempted value: 0.5, Error: '' must be between 1 and 1440. You entered 0.5.)
- Implementation can be done via a custom built controller that watches the PrometheusRule CRs and reconciles Azure PrometheusRuleGroups resources.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.