How to configure farm hosts when my application deploy in k8s cluster?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 152
- Avg merge
- 16h 18m
- Merged PRs (30d)
- 12
Description
I view the source code and official document, but very confused that how to configure farm hosts when my application deploy in k8s cluster. That promgen make full use of prometheus file_sd_config, through update /etc/prometheus/promgen.jsonfile to scrape tagets dynamicly. But the pod ip of my application is not fixed, I don't know how to configure farm hosts (Note: I also consider the custom discovery plugin, but the souce code prove that it's may not good choice).
It's doublt that whether promgen can integrate with prometheus-operator and thanos. If that's possible, any suggestion will be appreciated!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the official documentation and source code describing farm hosts, /etc/prometheus/promgen.json, and the custom discovery plugin. Determine whether Kubernetes pod discovery or integration with prometheus-operator and thanos is within scope; done would require an agreed, documented configuration path and validation of dynamic target scraping.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes, prometheus, python
- Domain
- infrastructure, observability
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100