Skip to content

LibreNMS

This guide configures LibreNMS to stream metrics to Layer 9 via the InfluxDB protocol.

  • 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

Contact the Layer 9 team to obtain your organization-specific connection details:

  • Metrics endpoint (e.g., <name>.librenms.layer9.com)
  • Secret key

Navigate to Global Settings > Poller > Datastore in the LibreNMS web interface.

Locate the InfluxDBv2 section and configure the following settings:

SettingValue
Transporthttps
HostYour metrics endpoint
Port443
TokenYour secret key
Bucketlibrenms
Organizationlibrenms

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';