Trying the get sFlow-Metrics and sFlow-Analyzer working.

75 views
Skip to first unread message

Shawn

unread,
Apr 9, 2025, 12:16:26 PMApr 9
to sFlow-RT
Hey guys! 
I got a pair of Dell EMC 4128f switches configured with sFlow to to push metrics out to a Windows Server (10.190.0.35 ) running sFlow-RT, Grafana and Prometheus.

I could not get sFlow-Metrics and sFlow-Analyzer to work with the dashboards in Grafana.
Dashboard used are the following,

My settings in prometheus.yml are as follows,

  - job_name: 'sflow-rt-analyzer'
    metrics_path: /prometheus/analyzer/txt
    static_configs:
      - targets: ['10.190.0.35:8008']
     
  - job_name: 'sflow-rt-metrics'
    metrics_path: /prometheus/metrics/ALL/ALL/txt
    static_configs:
      - targets: ['10.190.0.35:8008']
    metric_relabel_configs:
      - source_labels: ['agent', 'datasource']
        separator: ':'
        target_label: instance

Here is my output on Prometheus.
prom.png

Any help will be much appreciated!

Regards,
Shawn

Peter Phaal

unread,
Apr 9, 2025, 4:03:59 PMApr 9
to sFlow-RT
Thanks for raising this issue. sFlow-RT is primarily run on Linux where the default line end convention matches the format required for Prometheus exporters (each text line terminated by a newline character). However, on Windows the default line end convention is carriage return followed by newline. It appears that Prometheus is trying to parse the number plus carriage return character and failing.

We have uploaded a new version of sFlow-RT (version 3.1-1714) that explicitly sets the end of line character when exporting for Prometheus. This should now run correctly on Windows platforms. Please download and confirm that this fixes your issue.

Thanks,
Peter

Shawn

unread,
Apr 9, 2025, 10:36:12 PMApr 9
to sFlow-RT
Hi Peter,

Thanks for the quick update! Updated sFlow-RT to version 3.1-1714. 
And I got the dashboards working in Grafana now after Prometheus went green.
Cheers!

Regards,
Shawn
Reply all
Reply to author
Forward
0 new messages