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:
parent
800a698d4a
commit
e4cad04007
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue