Page MenuHomeVyOS Platform

Allow Telegraf to relay local frr_exporter metrics
Closed, ResolvedPublicFEATURE REQUEST

Description

FRR Routing state is only available via service monitoring prometheus frr-exporter, which is a pull target.
Operators pushing everything else out through Telegraf (InfluxDB / ADX / Loki / Splunk) must run an external Prometheus server and allow inbound access to the router just for routing state. The metrics already exist locally. Telegraf can't currently perform them.

Feature Request

Let Telegraf ingest the local frr_exporter endpoint and emit it through whatever Telegraf outputs are already configured. The exporter still runs; what goes away is the external scrape path and the inbound exposure.
Telegraf 1.28.3-1 as shipped includes inputs.prometheus, so no new package is needed.

Possible CLI options

# existing
set service monitoring prometheus frr-exporter listen-address 127.0.0.1
set service monitoring prometheus frr-exporter port 9342

# new
set service monitoring telegraf source frr          # reuse existing 'source' node
# OR
set service monitoring telegraf frr-metrics         # dedicated node

Here, source frr means either implementing the gating or adding a value that works while the others don't. Hence, the alternative dedicated-node option above.

This should generate:

toml
[[inputs.prometheus]]
  urls = ["http://127.0.0.1:9342/metrics"]
  metric_version = 2
  name_override = "frr"

Some things to consider

  • Behavior when frr-exporter isn't configured.
  • frr_exporter runs under ip vrf exec when set. Loopback scrape will break if they differ.
  • If prometheus-client output is configured, the input metric_version should follow it.

Details

Version
1.5.1
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

I am unable to edit the task (issues with edit policy permissions). However, the following line can be ignored:

[Example: "802.1q VLAN interfaces are widely used for traffic separation in switched networks and for "router on a stick" scenarios. Most router vendors support them.]

n.fort subscribed.

I am unable to edit the task (issues with edit policy permissions). However, the following line can be ignored:

[Example: "802.1q VLAN interfaces are widely used for traffic separation in switched networks and for "router on a stick" scenarios. Most router vendors support them.]

Done

natali-rs1985 changed the task status from Open to In progress.Thu, Sep 3, 1:17 PM
natali-rs1985 reassigned this task from natali-rs1985 to Viacheslav.
natali-rs1985 subscribed.
Viacheslav moved this task from Need Triage to Completed on the VyOS Rolling board.

It will be available in the next rolling release.