1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 11:48:53 +00:00

enable admin api flag

This commit is contained in:
Purandare, Aditya 2018-06-22 16:28:47 -05:00
parent 800a698d4a
commit e4cad04007
No known key found for this signature in database
GPG key ID: 483FE2FAF5FF9595

View file

@ -381,6 +381,9 @@ func makeStatefulSetSpec(p monitoringv1.Prometheus, c *Config, ruleConfigMapName
securityContext = p.Spec.SecurityContext
}
/* enable prometheus admin API to allow metric deletion */
promArgs = append(promArgs, "-web.enable-admin-api")
if p.Spec.ExternalURL != "" {
promArgs = append(promArgs, "-web.external-url="+p.Spec.ExternalURL)
}