diff --git a/configuration/rhelemeter/metrics.json b/configuration/rhelemeter/metrics.json new file mode 100644 index 0000000000..c9a7bcc9ae --- /dev/null +++ b/configuration/rhelemeter/metrics.json @@ -0,0 +1,3 @@ +[ + "{__name__=\"system_cpu_logical_count\"}" +] diff --git a/resources/services/rhelemeter-template.yaml b/resources/services/rhelemeter-template.yaml index cf13d96d7a..125c175e6e 100644 --- a/resources/services/rhelemeter-template.yaml +++ b/resources/services/rhelemeter-template.yaml @@ -47,6 +47,7 @@ objects: - --oidc-issuer=$(OIDC_ISSUER) - --client-id=$(CLIENT_ID) - --client-secret=$(CLIENT_SECRET) + - --whitelist={__name__="system_cpu_logical_count"} - --log-level=${RHELEMETER_LOG_LEVEL} - --limit-bytes=5242880 - --tenant-id=${RHELEMETER_TENANT_ID} diff --git a/services/rhelemeter-template.jsonnet b/services/rhelemeter-template.jsonnet index 10721d32a9..9f7a859c73 100644 --- a/services/rhelemeter-template.jsonnet +++ b/services/rhelemeter-template.jsonnet @@ -12,6 +12,7 @@ local rhelemeter = (import 'rhelemeter.libsonnet') { clientID: '${RHELEMETER_CLIENT_ID}', clientSecret: '${RHELEMETER_CLIENT_SECRET}', clientInfoPSK: '${RHELEMETER_CLIENT_INFO_PSK}', + whitelist+: (import '../configuration/rhelemeter/metrics.json'), resourceLimits:: { cpu: '${RHELEMETER_SERVER_CPU_LIMIT}', memory: '${RHELEMETER_SERVER_MEMORY_LIMIT}',