LibreNMS
This guide configures LibreNMS to stream metrics to Layer 9 via the InfluxDB protocol.
Prerequisites
Section titled “Prerequisites”- A running LibreNMS instance
- Administrator access to LibreNMS
- Outbound internet access to the metrics endpoint
- Firewall allows egress to TCP 443
- Router/NAT supports outgoing HTTPS
Step 1: Coordinate with Layer 9 Team
Section titled “Step 1: Coordinate with Layer 9 Team”Contact the Layer 9 team to obtain your organization-specific connection details:
- Metrics endpoint (e.g.,
<name>.librenms.layer9.com) - Secret key
Step 2: Configure InfluxDBv2 Datastore
Section titled “Step 2: Configure InfluxDBv2 Datastore”Navigate to Global Settings > Poller > Datastore in the LibreNMS web interface.
Locate the InfluxDBv2 section and configure the following settings:
| Setting | Value |
|---|---|
| Transport | https |
| Host | Your metrics endpoint |
| Port | 443 |
| Token | Your secret key |
| Bucket | librenms |
| Organization | librenms |
Toggle Enable to activate the datastore.
Alternatively, add to your config.php:
$config['influxdbv2']['enable'] = true;$config['influxdbv2']['transport'] = 'https';$config['influxdbv2']['host'] = '<METRICS ENDPOINT>';$config['influxdbv2']['port'] = 443;$config['influxdbv2']['token'] = '<SECRET KEY>';$config['influxdbv2']['bucket'] = 'librenms';$config['influxdbv2']['organization'] = 'librenms';