Page MenuHomeVyOS Platform

VyOS Generates incorrect Telegraf Loki config for non-standard port
Closed, ResolvedPublicBUG

Description

I decided to test out VictoriaLogs to inject logs from various sources, one of which is VyOS.
It listens on port 9428

I put in the following config:

[edit service monitoring telegraf loki]
tim@ferrari# show
 metric-name-label VyOS
 port 9428
 url http://192.168.0.5/insert

But this is what's generated in the telegraf.conf file:

### Loki ###
[[outputs.loki]]
  ## The domain of Loki
  domain = "http://192.168.0.5/insert:9428"
  metric_name_label = "VyOS"
### End Loki ###

The port is being inserted in the incorrect place.
If I delete the port command and try to manually set that URL:

[edit service monitoring telegraf loki]
tim@ferrari# show
 metric-name-label VyOS
 url http://192.168.0.5:9428/insert

We still end up with the wrong config as the config generator is still adding the default 3100 to the URL:

### Loki ###
[[outputs.loki]]
  ## The domain of Loki
  domain = "http://192.168.0.5:9428/insert:3100"
  metric_name_label = "VyOS"
### End Loki ###

It seems to me the url command isn't expecting/looking for anything after the hostname.

The only way to make this work is to manually edit the telegraf.conf file and HUP the telegraf process.

Details

Version
1.4.4
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

tjh updated the task description. (Show Details)
tjh updated the task description. (Show Details)
Viacheslav triaged this task as Normal priority.Feb 12 2026, 9:50 AM
natali-rs1985 changed the task status from Open to In progress.Mar 27 2026, 2:40 PM
natali-rs1985 claimed this task.
natali-rs1985 edited projects, added VyOS Rolling; removed VyOS 1.4 Sagitta.
natali-rs1985 changed Is it a breaking change? from Stricter validation to Perfectly compatible.
natali-rs1985 moved this task from Need Triage to Completed on the VyOS Rolling board.