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

[monitoring] scraping of endpoint /v1/stats/db is not included in prometheus configuration #85

Open
bmm-alc opened this issue Feb 22, 2023 · 1 comment

Comments

@bmm-alc
Copy link

bmm-alc commented Feb 22, 2023

In the prometheus monitoring container the file prometheus.yml there is no section for database metric endpoint as documented in the API reference /v1/stats/db

current state of the file

scrape_configs:
  # Monitor prometheus itself
  - job_name: 'prometheus'
    metrics_path: /metrics
    scrape_interval: 5s
    static_configs:
      - targets: ['localhost:9090']
  # Monitor App Stats of Biz Clients
  - job_name: 'appstats'
    metrics_path: /v1/stats/app
    params:
      format: ['prometheus']
    bearer_token_file: /etc/prometheus/auth_token
    static_configs:
      - targets: ['whatsapp-web-service']
    tls_config:
      insecure_skip_verify: true
    scheme: https
  # Monitor Webapp Stats of Biz Clients
  - job_name: 'webstats'
    metrics_path: /metrics
    scrape_interval: 5s
    params:
      format: ['prometheus']
    bearer_token_file: /etc/prometheus/auth_token
    static_configs:
      - targets: ['whatsapp-web-service']
    tls_config:
      insecure_skip_verify: true
    scheme: https
  # Monitor DB
  - job_name: 'mysqld-exporter'
    static_configs:
    - targets: ['mysqld-exporter:9104']
    relabel_configs:
      - source_labels: ['instance']
        target_label: 'instance'
        replacement: database
  # Monitor DB System
  - job_name: 'db-node-exporter'
    static_configs:
    - targets: ['127.0.0.1']
    relabel_configs:
      - source_labels: ['instance']
        target_label: 'instance'
        replacement: database
  # Monitor node and container
  - job_name: 'default'
    file_sd_configs:
      - files:
        - /etc/prometheus/targets.json
        refresh_interval: 30s

missing part

- job_name: 'dbstats'
    metrics_path: /v1/stats/db
    params:
      format: ['prometheus']
    bearer_token_file: /etc/prometheus/auth_token
    static_configs:
      - targets: ['whatsapp-web-service']
    tls_config:
      insecure_skip_verify: true
@facebook-github-bot
Copy link
Contributor

Hi bmm-alc (https://github.com/bmm-alc),

Thank you for your comment. This GitHub repo is not actively monitored. If you need help, please check previously asked questions in the WA Business API Developer Community, or raise a Direct support ticket. Meanwhile, we are happy to continue with less time-sensitive discussions in GitHub.

Thanks for your understanding!

@bmm-alc bmm-alc changed the title [monitoring] endpoint /v1/stats/db is not scraped by prometheus [monitoring] scraping of endpoint /v1/stats/db is not included in prometheus configuration Feb 22, 2023
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