Skip to content

Commit 105265f

Browse files
authored
update label names in readme (#8)
1 parent 613de01 commit 105265f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,21 @@ kube_pod_status_phase{namespace="default", pod="nginx", phase="Failed"} 0
133133
We adopt the same pattern for controller Conditions, but we export only one time series per (status, reason) variant,
134134
meaning we delete all other variants in the group when we set the metric, ensuring the cardinality stays under control.
135135

136-
Example:
136+
Example metric:
137137

138138
```
139-
operator_controller_condition{controller="", kind="", name="", namespace="", condition="", status="", reason=""} 1
139+
operator_controller_condition{
140+
controller="my_controller",
141+
resource_kind="MyCR",
142+
resource_name="my-cr",
143+
resource_namespace="default",
144+
condition="Ready",
145+
status="False",
146+
reason="FailedToProvision"
147+
} 1
140148
```
141149

142-
- **Index**: controller, kind, name, namespace
150+
- **Index**: controller, resource_kind, resource_name, resource_namespace
143151
- **Group**: condition
144152
- **Extra**: status, reason
145153

0 commit comments

Comments
 (0)