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 config prometheus.yml ? #16

Open
zuoRambo opened this issue Nov 3, 2019 · 2 comments
Open

How to config prometheus.yml ? #16

zuoRambo opened this issue Nov 3, 2019 · 2 comments

Comments

@zuoRambo
Copy link

zuoRambo commented Nov 3, 2019

apiVersion: v1
data:
  alerts: |
    {}
  prometheus.yml: |
    global:
      evaluation_interval: 1m
      scrape_interval: 1m
      scrape_timeout: 10s
    rule_files:
    - /etc/config/rules
    - /etc/config/alerts
    scrape_configs:
    - job_name: prometheus
      static_configs:
      - targets:
        - localhost:9090
    - job_name: pgbouncer
      relabel_configs:
      - source_labels: [ 10.6.87.237:9100, 10.6.87.238:9100]
        target_label: hostname
@zuoRambo
Copy link
Author

zuoRambo commented Nov 3, 2019

    - job_name: pgbouncer
      relabel_configs:
      - source_labels: [ 10.6.87.237:9100, 10.6.87.238:9100]
        target_label: hostname

This section was added. Right?

@pracucci
Copy link

pracucci commented Nov 6, 2019

Can you elaborate bit more what you would like to achieve and which service discovery you would like to use to scrape pgbouncer metrics?

The scrape configs don't look correct to me.

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