Skip to content

Sflow integration - #584

Open
Sven-Ric wants to merge 37 commits into
masterfrom
sflow-integration
Open

Sflow integration#584
Sven-Ric wants to merge 37 commits into
masterfrom
sflow-integration

Conversation

@Sven-Ric

@Sven-Ric Sven-Ric commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Description

Closes #549.

This branch implements sflow based flow monitoring.

Used AI-Tools ✨

claude was used for weathermap visualisation

  • claude used for generation

@metal-robot metal-robot Bot added the area: deployment Affects the deployment area. label Apr 20, 2026
@Gerrit91 Gerrit91 moved this to In Progress in Development Apr 20, 2026
@Sven-Ric
Sven-Ric force-pushed the sflow-integration branch from f6c3f27 to fb2a25b Compare July 2, 2026 21:55
@Sven-Ric
Sven-Ric force-pushed the sflow-integration branch from f1c4964 to a7bcdd9 Compare July 10, 2026 07:52
@Sven-Ric
Sven-Ric marked this pull request as ready for review July 13, 2026 07:20
@Sven-Ric
Sven-Ric requested review from a team as code owners July 13, 2026 07:20
@Sven-Ric
Sven-Ric requested a review from iljarotar July 13, 2026 07:20

@iljarotar iljarotar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, mostly. The sflow-collector role is missing a README.

Have you tried all of this on both, Broadcom and Edgecore SONiC? What interface does goflow2 use? If it's gNMI, I'm not sure it will work with Edgecore.

| partition_prometheus_rules_node_exporter | | node-exporter alert rules |
| partition_prometheus_rules_pixiecore | | pixiecore alert rules |
| partition_prometheus_rules_sonic_exporter | | sonic-exporter alert rules |
| partition_prometheus_rules_goflow2 | | goflow2 sFlow collector rules |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

partition_prometheus_rules_sonic_systemd is missing.

monitoring_node_exporter_port: 9100
monitoring_node_exporter_dir: /node_exporter
monitoring_node_exporter_docker_log_driver: json-file
monitoring_node_exporter_systemd_unit: "(bgp|swss)\\.service"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this variable documented?

prometheus_ipmi_exporter_targets: []
prometheus_sonic_exporter_targets: []
prometheus_blackbox_exporter_targets: []
prometheus_goflow2_targets: []

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this variable documented?

Comment on lines +2 to +5
# Downloads a DP-IP Database and replaces the existing one.
# DB-IP updates monthly, so the current month is attempted first
# If the DB for the current month is not available yet, the scripts
# falls back to last month.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it DP-IP or DB-IP?

And another nit 🙈: it should be the script not the scripts

Comment thread partition/roles/sflow-collector/files/vrf-port-export.py Outdated
Comment thread partition/roles/sflow-collector/files/vrf-port-export.py Outdated
Comment thread partition/roles/sflow-collector/templates/vector.yaml.j2
Comment thread partition/roles/sflow-collector/templates/vector.yaml.j2
Sven-Ric and others added 3 commits July 13, 2026 10:55
Co-authored-by: Ilja Rotar <77339620+iljarotar@users.noreply.github.com>
Co-authored-by: Ilja Rotar <77339620+iljarotar@users.noreply.github.com>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file will be removed soon, as the promtail role was deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: deployment Affects the deployment area.

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Improving SONiC switch alerting

4 participants