{% extends 'base/layout.html' %} {% load form_helpers %} {% block title %}Loki Settings{% endblock %} {% block header %}
configuration.py or plugins.py.
This page shows the active settings shape and lets you test the current connection.
Test connectivity to the Loki API using the active NetBox configuration.
Add to configuration.py or plugins.py:
PLUGINS = ['netbox_loki']
PLUGINS_CONFIG = {
'netbox_loki': {
'loki_url': 'http://loki:3100',
'loki_external_url': 'https://grafana.example.com/explore',
'loki_tenant': 'docker',
'loki_job': 'syslog',
'device_label': 'routerboard',
'stream_selector': '',
'fallback_to_ip': True,
}
}
Loki API Docs