carlosedp / cluster-monitoring

Cluster monitoring stack for clusters based on Prometheus Operator
MIT License
740 stars 200 forks source link

prometheus command line options #59

Closed zoide closed 4 years ago

zoide commented 4 years ago

Hi again, here's my next issue:

I'd like to access prometheus' admin-api. It is enabled via the command line option '--web.enable-admin-api' I found: https://github.com/coreos/prometheus-operator/pull/2300 which should enable this feature.

I have changed base_operator_stack.jsonnet and added "enableAdminAPI: 'true'". I have re-created and re-applied the manifests. Unfortunatly the commandline option is still not there on the prometheus-pod.

carlosedp commented 4 years ago

You should be able to add it right below externalUrl in:

https://github.com/carlosedp/cluster-monitoring/blob/cd17208e4fb756d4af2ea71d55d223ff7cc7eca4/base_operator_stack.jsonnet#L71-L75

Like

      spec+: {
               replicas: $._config.prometheus.replicas,
               retention: '15d',
               externalUrl: 'http://' + $._config.urls.prom_ingress,
               enableAdminAPI: "true",
             }

And re-generate the manifests.

carlosedp commented 4 years ago

Closing this. Reopen if some error is found.