line / line/promgen

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

Open
#376 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.