Skip to content

Commit

Permalink
Merge pull request #17 from datacenter/epg_stats
Browse files Browse the repository at this point in the history
Add EPG Traffic Statistics
  • Loading branch information
camrossi authored Aug 19, 2024
2 parents 8abfe2f + 32ed3ee commit bfdb8da
Show file tree
Hide file tree
Showing 5 changed files with 678 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/aci-monitoring-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
2 changes: 1 addition & 1 deletion charts/aci-monitoring-stack/config.d/system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ group_class_queries:
value_calculation: "value / 100"
labels:
- property_name: fvAEPg.attributes.dn
regex: "^uni/tn-(?P<tenant>.*)/ap-(?P<app>.*)/epg-(?P<epg>.*)"
regex: "^uni/tn-(?P<tenant>.*)/(?:ap|mgmtp)-(?P<app>.*)/(?:epg|inb)-(?P<epg>.*)"
staticlabels:
- key: class
value: fvAEPg
Expand Down
75 changes: 70 additions & 5 deletions charts/aci-monitoring-stack/config.d/vlan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ class_queries:
help: "Static binding info"
labels:
- property_name: fvAEPg.attributes.dn
regex: "^uni/tn-(?P<tenant>.*)/ap-(?P<app>.*)/epg-(?P<epg>.*)"
regex: "^uni/tn-(?P<tenant>.*)/(?:ap|mgmtp)-(?P<app>.*)/(?:epg|inb)-(?P<epg>.*)"
- property_name: fvAEPg.attributes.[.*].attributes.tDn
regex: "^topology/pod-(?P<podid>[1-9][0-9]*)/(protpaths|paths)-(?P<nodeid>[1-9][0-9].*)/pathep-\\[(?P<port>.+)\\]"
- property_name: fvAEPg.attributes.[.*].attributes.encap
regex: "^(?P<encap>.*)"

epg_port_vlan_binding:
epg_infos:
class_name: vlanCktEp
query_parameter: '?order-by=vlanCktEp.dn&rsp-subtree-include=required&rsp-subtree-class=l2RsPathDomAtt&rsp-subtree=children'
query_parameter: '?order-by=vlanCktEp.dn&rsp-subtree-include=stats&rsp-subtree-class=l2RsPathDomAtt,l2IngrPkts5min,l2EgrPkts5min,l2IngrBytes5min,l2EgrBytes5min&rsp-subtree=children'
metrics:
- name: epg_port_vlan_binding
value_name: vlanCktEp.children.[l2RsPathDomAtt].attributes.operSt
Expand All @@ -55,9 +55,74 @@ class_queries:
'down': 1
'up': 2
'link-up': 3
- name: epg_rx_flood
value_name: vlanCktEp.children.[l2IngrBytes5min].attributes.floodCum
type: counter
unit: "bytes"
- name: epg_rx_multicast
value_name: vlanCktEp.children.[l2IngrBytes5min].attributes.multicastCum
type: counter
unit: "bytes"
- name: epg_rx_unicast
value_name: vlanCktEp.children.[l2IngrBytes5min].attributes.unicastCum
type: counter
unit: "bytes"
- name: epg_rx_drop
value_name: vlanCktEp.children.[l2IngrBytes5min].attributes.dropCum
type: counter
unit: "bytes"
- name: epg_tx_flood
value_name: vlanCktEp.children.[l2EgrBytes5min].attributes.floodCum
type: counter
unit: "bytes"
- name: epg_tx_multicast
value_name: vlanCktEp.children.[l2EgrBytes5min].attributes.multicastCum
type: counter
unit: "bytes"
- name: epg_tx_unicast
value_name: vlanCktEp.children.[l2EgrBytes5min].attributes.unicastCum
type: counter
unit: "bytes"
- name: epg_tx_drop
value_name: vlanCktEp.children.[l2EgrBytes5min].attributes.dropCum
type: counter
unit: "bytes"
- name: epg_rx_flood
value_name: vlanCktEp.children.[l2IngrPkts5min].attributes.floodCum
type: counter
unit: "pkts"
- name: epg_rx_multicast
value_name: vlanCktEp.children.[l2IngrPkts5min].attributes.multicastCum
type: counter
unit: "pkts"
- name: epg_rx_unicast
value_name: vlanCktEp.children.[l2IngrPkts5min].attributes.unicastCum
type: counter
unit: "pkts"
- name: epg_rx_drop
value_name: vlanCktEp.children.[l2IngrPkts5min].attributes.dropCum
type: counter
unit: "pkts"
- name: epg_tx_flood
value_name: vlanCktEp.children.[l2EgrPkts5min].attributes.floodCum
type: counter
unit: "pkts"
- name: epg_tx_multicast
value_name: vlanCktEp.children.[l2EgrPkts5min].attributes.multicastCum
type: counter
unit: "pkts"
- name: epg_tx_unicast
value_name: vlanCktEp.children.[l2EgrPkts5min].attributes.unicastCum
type: counter
unit: "pkts"
- name: epg_tx_drop
value_name: vlanCktEp.children.[l2EgrPkts5min].attributes.dropCum
type: counter
unit: "pkts"

labels:
- property_name: vlanCktEp.attributes.epgDn
regex: "^uni/tn-(?P<tenant>.*)/ap-(?P<app>.*)/epg-(?P<epg>.*)"
regex: "^uni/tn-(?P<tenant>.*)/(?:ap|mgmtp)-(?P<app>.*)/(?:epg|inb)-(?P<epg>.*)"
- property_name: vlanCktEp.attributes.encap
regex: "^vlan-(?P<vlan>.*)"
- property_name: vlanCktEp.attributes.pcTag
Expand All @@ -79,7 +144,7 @@ class_queries:
'link-up': 3
labels:
- property_name: vxlanCktEp.attributes.epgDn
regex: "^uni/tn-(?P<tenant>.*)/ap-(?P<app>.*)/epg-(?P<epg>.*)"
regex: "^uni/tn-(?P<tenant>.*)/(?:ap|mgmtp)-(?P<app>.*)/(?:epg|inb)-(?P<epg>.*)"
- property_name: vxlanCktEp.attributes.encap
regex: "^vxlan-(?P<vxlan>.*)"
- property_name: vxlanCktEp.attributes.pcTag
Expand Down
Loading

0 comments on commit bfdb8da

Please sign in to comment.