Files

310 B

from :https://github.com/coreos/prometheus-operator/blob/master/Documentation/additional-scrape-config.md

create new secret:

kubectl create secret generic additional-scrape-configs --from-file=prometheus-additional.yaml --dry-run -oyaml > additional-scrape-configs.yaml

add "namespace: monitoring"

apply