Skip to content

Unify the 6 different Prometheus metrics provided by flowlogs-pipeline or add at least a global prefix for all metrics #945

@Nachtfalkeaw

Description

@Nachtfalkeaw

Hello,

I collect prometheus metrics from this endpoint and I receive 6 different prefixes of metrics. I would expect a possibility to prefix all metrics of flowlogs-pipline with the same prefix.

metricsSettings:
  suppressGoMetrics: false
  prefix: flp_operational_
  port: 9102

Result examples:

# HELP flow_decoder_count Decoder processed count.
# TYPE flow_decoder_count counter
flow_decoder_count{name="NetFlow",worker="0"} 6


# HELP flp_operational_ingest_batch_size_bytes Ingested batch size distribution, in bytes
# TYPE flp_operational_ingest_batch_size_bytes summary
flp_operational_ingest_batch_size_bytes{stage="ipfix_netflow_ingest",quantile="0.5"} NaN
flp_operational_ingest_batch_size_bytes{stage="ipfix_netflow_ingest",quantile="0.95"} NaN
flp_operational_ingest_batch_size_bytes_sum{stage="ipfix_netflow_ingest"} 0
flp_operational_ingest_batch_size_bytes_count{stage="ipfix_netflow_ingest"} 0

# HELP go_gc_duration_seconds A summary of the wall-time pause (stop-the-world) duration in garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 5.805e-05
go_gc_duration_seconds{quantile="0.25"} 6.7171e-05
go_gc_duration_seconds{quantile="0.5"} 0.000186544
go_gc_duration_seconds{quantile="0.75"} 0.000226612
go_gc_duration_seconds{quantile="1"} 0.000251489
go_gc_duration_seconds_sum 0.000870278
go_gc_duration_seconds_count 6

# HELP net_conntrack_dialer_conn_closed_total Total number of connections closed which originated from the dialer of a given name.
# TYPE net_conntrack_dialer_conn_closed_total counter
net_conntrack_dialer_conn_closed_total{dialer_name="promtail"} 5

# HELP netobserv_loki_dropped_bytes_total Number of bytes dropped because failed to be sent to the ingester after all retries.
# TYPE netobserv_loki_dropped_bytes_total counter
netobserv_loki_dropped_bytes_total{host="prometheus.inet.bundesbank.de:3100"} 0

# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 0.1

6 different metrics prefixes. I would expect to only have one 8except for the go specific metrics).

they could all start with
flp_

an then have different variations and the second part if this is really needed. But maybe useful to differentiate between different fetures.
flp_flow_
flp_operational_
flp_net_conntrack_
flp_netobserv_

As an example Prometheus "node_exporter" starts with "node_" and all metrics of this exporter are behind "node_*"

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