Skip to content

Commit 084ce30

Browse files
committed
Add microshift_version specific metric
1 parent 4c531d1 commit 084ce30

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ whitelisted_metrics: $(GOJSONTOYAML) $(GOJQ) configuration/telemeter/metrics.jso
112112
configuration/telemeter/metrics.json:
113113
@echo ">>>>> Running whitelisted_metrics"
114114
# Download the latest metrics file to extract the new added metrics.
115-
# NOTE: Because old clusters could still send metrics the whitelisting is append only
115+
# NOTE: Because old clusters could still send metrics the whitelisting is append only.
116+
# This is also applicable to clusters using direct write requests instead of the telemeter client.
116117
# (configuration/telemeter/metrics.json).
117118
curl -q https://raw.githubusercontent.com/openshift/cluster-monitoring-operator/master/manifests/0000_50_cluster-monitoring-operator_04-config.yaml | \
118119
$(GOJSONTOYAML) -yamltojson | \

configuration/telemeter/metrics.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -192,5 +192,6 @@
192192
"{__name__=\"vendor_model:node_accelerator_cards:sum\",vendor=~\"NVIDIA|AMD|GAUDI|INTEL|QUALCOMM\"}",
193193
"{__name__=\"workload:cpu_usage_cores:sum\"}",
194194
"{__name__=\"workload:memory_usage_bytes:sum\"}",
195-
"{__name__=~\"cluster:usage:.*\"}"
195+
"{__name__=~\"cluster:usage:.*\"}",
196+
"{__name__=\"microshift_version\"}"
196197
]

0 commit comments

Comments
 (0)