summaryrefslogtreecommitdiff
path: root/docs/configuration
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-07-01 09:23:02 +0200
committerGitHub <noreply@github.com>2024-07-01 09:23:02 +0200
commitbdc62f6cc0c3fe7386eb535a90df61a4f852e640 (patch)
tree3dbbeb03b06e7643d74a30efb885597908ffb05a /docs/configuration
parent83e88845f237d7b0fe257ec005a88b2c2839184b (diff)
parent2b051992294fad1729c124d72ab88fb241c0d39d (diff)
downloadvyos-documentation-bdc62f6cc0c3fe7386eb535a90df61a4f852e640.tar.gz
vyos-documentation-bdc62f6cc0c3fe7386eb535a90df61a4f852e640.zip
Merge pull request #1497 from nvollmar/T6477
T6477: Add documentation for telegraf loki output
Diffstat (limited to 'docs/configuration')
-rw-r--r--docs/configuration/service/monitoring.rst30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/configuration/service/monitoring.rst b/docs/configuration/service/monitoring.rst
index 245af067..10b4dee2 100644
--- a/docs/configuration/service/monitoring.rst
+++ b/docs/configuration/service/monitoring.rst
@@ -130,6 +130,36 @@ and logs from your routers.
Remote URL
+Loki
+====
+
+Telegraf can be used to send logs to Loki using tags as labels.
+
+.. cfgcmd:: set service monitoring telegraf loki port <port>
+
+ Remote Loki port
+
+ Default is 3100
+
+.. cfgcmd:: set service monitoring telegraf loki url <url>
+
+ Remote Loki url
+
+.. cfgcmd:: set service monitoring telegraf loki authentication username <username>
+.. cfgcmd:: set service monitoring telegraf loki authentication password <password>
+
+ HTTP basic authentication.
+
+ If either is set both must be set.
+
+.. cfgcmd:: set service monitoring telegraf loki metric-name-label <label>
+
+ Label to use for the metric name when sending metrics.
+
+ If set to an empty string, the label will not be added.
+ This is NOT recommended, as it makes it impossible to differentiate
+ between multiple metrics.
+
Example
=======