Skip to main content
Use the metrics to see how many devices are registered, what share of pushes fail, and how long apps take to wake. pgw serves them in Prometheus format at /metrics on the admin listener, with no API key. The admin listener accepts connections only from the pgw host by default, so run Prometheus or a scraping agent on that host. Start with these four metrics:

Scrape the metrics

1

Check the endpoint

Some labeled series, such as those of pgw_pushes_total, appear only after pgw counts their first event.
2

Add a scrape job

Add a job for pgw to the Prometheus configuration. If you changed admin_listen, use its address as the target.

Metric reference

Besides the following metrics, pgw exports the Go runtime metrics (go_*), the process metrics (process_*), and go_build_info.

Registrations

Calls

Pushes

Push results

Upstreams

Managed users and Bearer tokens

Connections and internals

Next steps

Set up alerts

Copy PromQL expressions that alert on these metrics.

Read the logs

Find the log line behind a counter that moved.