Custom PrometheusRule in cluster
In ACM, the file acm/prom_rules/example.rules.yaml describes an example of Prometheus status metrics that are collected by ACM.
In UC P6, we’re trying to supply metrics to PDLC via Prometheus expressions in the cluster. For example, we want to change the instance:node_status:avg1m
record for our CODECO operator to something like this:
# Average node failure
- record: instance:node_status:avg1m
expr: sum(avg_over_time(node_rssi_interference{...}[1m])) by (node)
Where do we make this change? Can we apply our own PrometheusRule
yaml on the cluster and it will be picked up by ACM? Or should be make a change in the prom_rules
directory of ACM example.rules.yaml
file, and create a fork of ACM with the changes required to our operator? What is the intended way-of-working?
There is a small section in the README on Prometheus rules but I do not understand what is meant there.
Can you help us @deankel1000 @karamolegkos @tymon ?