Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved scrape configuration debuggability. #697

Open
bwplotka opened this issue Dec 6, 2023 · 1 comment
Open

Improved scrape configuration debuggability. #697

bwplotka opened this issue Dec 6, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@bwplotka
Copy link
Collaborator

bwplotka commented Dec 6, 2023

One common misconfiguration on GMP is a mismatched port/port name on PodMonitoring.

Unfortunately this issue surfaces nowhere other than your metric is not scraped and not on GCM. It causes users (I did that to myself a few times too) to debug all the stages of collection, which is even more difficult without collector UI/metrics access. And even WITH the access you get confusing scrape config and your discovered pods are dropped without any additional info, due to port mismatch.

AC

  • User is notified that the port or pod selector was mismatched

Ideas:

  • We could e.g. do some extra work on operator when target status is enabled to scan problematic pod that does not have ANY scrapes and list and check the ports?
  • I wonder if SD API in Prometheus would support some feature like relabelling messaging, where if the rule is performed and dropped the metric you could provide custom message. Then we could surface that to users in Target Status feature 🤔
@bwplotka bwplotka added enhancement New feature or request help wanted Extra attention is needed labels Dec 6, 2023
@bwplotka
Copy link
Collaborator Author

bwplotka commented Dec 6, 2023

Another idea is a CLI tool that will validate different theories per specific PodMonitoring

@maxamins maxamins assigned bwplotka and unassigned maxamins Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants