Skip to content

Instantly share code, notes, and snippets.

@proffalken proffalken/README.md

Created Feb 27, 2019
Embed
What would you like to do?
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
You can’t perform that action at this time.