Skip to content

Instantly share code, notes, and snippets.

@Kwabang
Created July 23, 2024 22:14
Show Gist options
  • Select an option

  • Save Kwabang/79b33f2891000c3d93ff7fc50e93414a to your computer and use it in GitHub Desktop.

Select an option

Save Kwabang/79b33f2891000c3d93ff7fc50e93414a to your computer and use it in GitHub Desktop.
Prometheus config for DebConf24 sFlow
- job_name: "sflow-rt-all-debconf24-ipv4"
metrics_path: /app/prometheus/scripts/export.js/flows/<agent IP>/txt
static_configs:
- targets: ["videoTeamCollectorIP:8008"]
params:
metric: ["sflow_rt_debconf24_ipv4"]
key:
[
"null:[asn:ipsource:both]:unknown",
"null:[asn:ipdestination:both]:unknown",
"null:[country:ipsource:both]:unknown",
"null:[country:ipdestination:both]:unknown",
"ipsource",
"ipdestination",
]
label:
[
"src_asn",
"dst_asn",
"src_country",
"dst_country",
"ipsource",
"ipdestination",
]
value: ["bytes"]
scale: ["8"]
aggMode: ["sum"]
minValue: ["1000"]
maxFlows: ["100"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment