Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.17 KB

prometheus-monitoring.md

File metadata and controls

48 lines (36 loc) · 1.17 KB

Monitoring with Prometheus

The PWA can be monitored using Prometheus.

Activating the feature Prometheus for the nginx or SSR container exposes metrics on port 9113 on the /metrics URL.

After activating the features on both containers, add tasks to prometheus:

scrape_configs:
  - job_name: 'pwa-nginx'
    scrape_interval: 5s
    dns_sd_configs:
      - names:
          - 'tasks.pwa-nginx'
        type: 'A'
        port: 9113

  - job_name: 'pwa-ssr'
    scrape_interval: 5s
    dns_sd_configs:
      - names:
          - 'tasks.pwa-ssr'
        type: 'A'
        port: 9113

To get started, you can import our example Grafana Dashboard:

Example Dashboard

Warning

We recommend to switch off the SSR container health-check and define alerts in Grafana instead.

Further References