Allow extending reconciliation metric with custom user-defined attribute/s #2632
-
We just started using Grafana alerts on condition : At the moment the attribute of the metrics are strictly {
"name": "billing-server",
"namespace": "default",
"type": "Ready",
"status": "False",
"team": "billing"
} This would hint Grafana to send this alert to Without it - and assuming that we don't want to change the namespace just for the alerting - all alerts would be received in one single place and someone would have to manually dispatch them. I saw here #1796 @seh answer about high cardinality - but let's say that the set of attributes and values would be somewhat static and users can choose not to use them at all. WDYT? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There may be something that can be done – @pjbgf has more details Ideally we do not need to make a change on the Flux side, but you would place some annotations or labels on the monitored objects, and the label would enrich the metrics. |
Beta Was this translation helpful? Give feedback.
-
Please refer to: This has been addressed, now you can create any metrics that you wish if the information is in the CRD spec or status, you can create a metric to report on it. There is an example in the docs specifically covering your issue now, how to get a label value and make a metric out of it. See also: |
Beta Was this translation helpful? Give feedback.
Please refer to:
This has been addressed, now you can create any metrics that you wish if the information is in the CRD spec or status, you can create a metric to report on it. There is an example in the docs specifically covering your issue now, how to get a label value and make a metric out of it.
See also:
https://fluxcd.io/flux/monitoring/custom-metrics/