Skip to content

Instantly share code, notes, and snippets.

@proffalken
Created February 27, 2019 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save proffalken/8ec8f250b771368cd3dd8ef6ac6474c0 to your computer and use it in GitHub Desktop.
Save proffalken/8ec8f250b771368cd3dd8ef6ac6474c0 to your computer and use it in GitHub Desktop.
Monitoring LoRa Gateway Bridge with DataDog

Monitoring LoRa Gateway Bridge using DataDog

  • Install the DataDog Agent following the instructions on the DataDog website
  • Update the lora-gateway-bridge configuration file with the lines on this gist
  • Create /etc/datadog-agent/conf.d/prometheus.d/conf.yaml with the content from this gist
  • Restart the lora-gateway-bridge and datadog-agent services
  • Check that the metrics are being collected by running datadog-agent check prometheus
# /etc/datadog-agent/conf.d/prometheus.d/conf.yaml
init_config:
instances:
- prometheus_url: http://127.0.0.1:5609
namespace: "lora-gateway-bridge"
metrics:
- gw_backend_mqtt_event_count: mqtt_events
- gw_backend_mqtt_connect_duration_seconds: mqtt_connection_duration
## /etc/lora-gateway-bridge/lora-gateway-bridge.toml
##### ADD THIS AT THE BOTTOM OF YOUR CONFIGURATION FILE #####
# Metrics configuration.
[metrics]
# Metrics stored in Prometheus.
#
# These metrics expose information about the state of the LoRa Gateway Bridge
# instance like number of messages processed, number of function calls, etc.
[metrics.prometheus]
# Expose Prometheus metrics endpoint.
endpoint_enabled=true
# The ip:port to bind the Prometheus metrics server to for serving the
# metrics endpoint.
bind="127.0.0.1:5609"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment