Thank you for answer. I got CRD called
prometheuses.monitoring.coreos.com , and i suppose what this item contains main config for prometheus. Because when i change it via
oc edit prometheus, its show configuration. After that i can edit config and i add in spec section next part (
I setup blackbox exporter, i need to check my routes in openshift and i choose this way(i mean use blackbox) to do that. And for this reason i need to add additional scrape config to main prometheus config. ) :
spec:
additionalScrapeConfigs:
name: additional-scrape-configs
key: prometheus-additional.yaml
Well, after that all ok. Prometheus reload config with new parameters. I go to blackbox routes and i can see new targets for scrape, next i look at prometheus config, and i also can see what config was changed. I see new job called like "blackbox". Its seems like everything works, but after 1 or 2 minutes this changes are disappear. Prometheus rollback changes. Its looks like something looking at prometheus.env.yaml and if something change this thing is rollback config to template. I can suppose what its template located in secret maybe.