-
I've created ScrapeConfig with
but no targets nor config about it was found in prometheus config. I assure that there's no prometheus reload failed found, and I saw log in prometheus operator
and logs in prometheus pod
but no config about it found in configuration basic info:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
I am not familiar with helm chart how its been configured, a quick question has CRDs been updated too along with installing new prometheus-operator? |
Beta Was this translation helpful? Give feedback.
-
Are prometheus pod and scrape config created in same namespace? |
Beta Was this translation helpful? Give feedback.
-
maybe Things could be simpler after #6030 |
Beta Was this translation helpful? Give feedback.
-
In past we had similar question on servicemonitor something to do how helm values are set Is there something similar for scrape config as well? |
Beta Was this translation helpful? Give feedback.
-
Thanks @slashpai for the help, the debug process would be:
reference: |
Beta Was this translation helpful? Give feedback.
Thanks for the issue you provided!
I also noticed about this helm value and I did set it to false
I just checked the Prometheus resource in monitoring namespace and found the scrapeConfigNamespaceSelector spec is unset , which would make
ScrapeConfig
in other namespace discoverable, I set it manually bykubectl edit
, after that,ScrapeConfig
can be discovered correctly.I thought it would be working since it's identical with podmonitor , etc...
turns out there could be some bugs in helm chart, I'll try to submit a fix pr on helm chart if no one has done so.