Created
July 23, 2024 22:14
-
-
Save Kwabang/79b33f2891000c3d93ff7fc50e93414a to your computer and use it in GitHub Desktop.
Prometheus config for DebConf24 sFlow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - 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