Skip to content

Metrics has different names that with write_prometheus #153

@jcarnat

Description

@jcarnat

Hello,

I'm starting to use Prometheus and come from collectd/InfluxDB. I'm keeping collectd but get rid of InfluxDB to store data using Prometheus. On systems where this is available, I use the collectd write_prometheus plugin. But on FreeBSD 14, the default collectd package does not provide this plugin ; but they provide the collectd_exporter package.

Using both tools, I noticed differences in metrics' name.
This leads to issues in Grafana/PromQL dashboard/requests.

With collectd_prometheus (on FreeBSD), I get:

  • collectd_interface_if_errors_0_total
  • collectd_interface_if_errors_1_total
  • collectd_interface_if_octets_0_total
  • collectd_interface_if_octets_1_total
  • (...)

With write_prometheus (on Illumos and OpenBSD), those have different names:

  • collectd_interface_if_errors_rx_total
  • collectd_interface_if_errors_tx_total
  • collectd_interface_if_octets_rx_total
  • collectd_interface_if_octets_tx_total
  • (...)

Is this expected / know?
Is there a way to have the same metrics names with both tools?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions