Closed bashbers closed 3 years ago
It seems to set the ENV correctly, but it gives a warning about having set an ENV variable which will override the given parameter.
It doesnt seem to set the default_namespace, eventhough Ive added the following to my statefulset:
statefulset.yaml
name: PROMETHEUS_NAMESPACE
valueFrom:
configMapKeyRef:
name: global-variables
key: PROMETHEUS_NAMESPACE
global-variables.yaml
PROMETHEUS_NAMESPACE: 'jenkins2-acc'
This cannot be changed
This cannot be changed
Do you mean that the default namespace jenkins cant be renamed?. https://github.com/jenkinsci/prometheus-plugin#environment-variables
Correct
Version report
Jenkins and plugins versions report:
Reproduction steps
Results
Expected result:
To have a /metrics endpoint.
Actual result:
No reachable endpoint.