- 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
anddatadog-agent
services - Check that the metrics are being collected by running
datadog-agent check prometheus
Created
February 27, 2019 12:20
-
-
Save proffalken/8ec8f250b771368cd3dd8ef6ac6474c0 to your computer and use it in GitHub Desktop.
Monitoring LoRa Gateway Bridge with DataDog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## /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