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

Attach labels to prometheus scrape_config using rpk generate #5551

Closed
r-vasquez opened this issue Jul 21, 2022 · 2 comments
Closed

Attach labels to prometheus scrape_config using rpk generate #5551

r-vasquez opened this issue Jul 21, 2022 · 2 comments
Labels
area/rpk kind/enhance New feature or request

Comments

@r-vasquez
Copy link
Contributor

Following #5501 :

We want the option to add labels to the generated prometheus scrape_config via rpk, so:

$ rpk generate prometheus-config --seed-addr localhost:9092 --job-name redpanda-node --add-label cluster-id:cluster-a --public-metrics

will generate

- job_name: redpanda-node
  static_configs:
  - targets:
    - localhost:9644
  labels:
    - cluster-id: cluster-a
  metrics_path: /metrics
- job_name: redpanda-node-public
  static_configs:
  - targets:
    - localhost:9644
  labels:
    - cluster-id: cluster-a
  metrics_path: /public_metrics
@bpraseed
Copy link

Look like this fixes this ask #5548 ?

@r-vasquez
Copy link
Contributor Author

Oh, it's duplicated. I'm closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rpk kind/enhance New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants