You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Ansible Operator comes with three internal metrics that provide an insight to the frequency and time of operator reconciliations. These metrics can be
2
+
scraped by a Prometheus instance or any other openmetrics system. To publish operator metrics and scrape them with an openmetrics system such as Prometheus, view
3
+
[Kubebuilder documentation](https://book.kubebuilder.io/reference/metrics.html) on publishing metrics.
4
+
5
+
The default metrics recorded in Operator SDK are collected in a [histogram](https://prometheus.io/docs/practices/histograms/).
6
+
7
+
The following three metrics are derived from the histogram:
8
+
1.`ansible_operator_reconciles_bucket` - Each bucket in the histogram counts the number of reconciliations that have a period (in seconds) less than or equal
9
+
to the upper limit of the bucket.
10
+
3.`ansible_operator_reconciles_count` - The total number of reconciliations that have occured up to that instance of time while running an Ansible operator.
11
+
4.`ansible_operator_reconciles_sum` - The cumulative amount of time (in seconds) of all reconciliations that have occured up to that instance of time while
12
+
running an Ansible operator.
13
+
14
+
These metrics can be queried in the Prometheus UI.
15
+
16
+

0 commit comments