Prometeheus integration with Chirpstack default installation

Hi all!

After installing Chirpstack following the docs and install Prometheus in the same machine, I was able to configure metrics for the Chirpstack Gateway Bridge and show them in a Grafana dashbord.

But, how can I get metrics from the network server and/or application server? For exampe to get event up count…

Thanks.

Hi!
First, you have to bind a port for prometheus metrics in the toml file of the NS:

# Monitoring related configuration.
[monitoring]

  # interface:port to bind the monitoring endpoint to (optional).
  #
  # /health  - Returns 200 in case the healthchecks have passed.
  # /metrics - Returns metrics which can be scraped by Prometheus.
  #
  # If not set, this endpoint will be disabled.
  bind="XXXX"

Then restart Chirsptack, and you can access the metrics with your-ip:XXXX/metrics

Don’t forget to open this port on your firewall.

Cheers

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.