Page MenuHomeVyOS Platform

Adding Loki plugin to Telegraf
Closed, ResolvedPublicFEATURE REQUEST

Description

Hi guys. Any plans on implementing pushing logs via Telegraf directly to Loki? Telegraf itself has a Loki plugin and if you manipulate the config /run/telegraf/telegraf.conf like this:

[ [outputs.loki]]

domain = "http://<loki-server-ip>:3100"
endpoint = "/loki/api/v1/push"
metric_name_label = "server_name"

to send the data to Loki it is working. Would be great to have that directly implemented in the config mask like “set service monitoring telegraf loki”

Thanks in advance and have a nice day :)

Best regards,
Fabian

Details

Difficulty level
Unknown (require assessment)
Version
1.4.0
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Event Timeline

Fabse created this object in space S1 VyOS Public.
Viacheslav changed the subtype of this task from "Task" to "Feature Request".Jun 12 2024, 1:33 PM
Viacheslav added a project: Restricted Project.

Sure @Viacheslav! I'll try to add the PR. Also thanks for the documentation @nvollmar :)

I would have put it on my list. @Fabse if you get stuck or need some support just slack me.

@Viacheslav Fabse started working on it and I did have a look at the changes last week.

PR https://github.com/vyos/vyos-1x/pull/3720

set service monitoring telegraf loki url 'http://localhost'
set service monitoring telegraf loki metric-name-label 'r123'
Viacheslav changed the task status from Open to In progress.Jun 25 2024, 10:11 AM
Viacheslav claimed this task.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.5 Circinus board.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta (1.4.1) board.