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

How to configure farm hosts when my application deploy in k8s cluster? #376

Open
ZhiXingHeYiApple opened this issue Dec 21, 2021 · 2 comments

Comments

@ZhiXingHeYiApple
Copy link

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!

@kfdm
Copy link
Collaborator

kfdm commented Dec 21, 2021

Promgen is a configuration management tool for file_sd_config. If you are using k8s you will likely want to use a different tool or the default Promethus k8s support.

@ZhiXingHeYiApple
Copy link
Author

@kfdm That's disappointment。I try to integrate promgen with thanos due to this ppt
Whether it's possible to reform project code to integrate promgen with k8s CRD (ServiceMonitor、PodMonitor)? May be that's bad idea. Or other good advices will be useful. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants