prometheus: export NPOL flow decision counters#1056
Open
onong wants to merge 1 commit into
Open
Conversation
Scrape NPOL flow decision counters from VPP stats and export them with the
same pod and interface labels used for existing interface counters.
The exported metrics are:
cni_projectcalico_vpp_npol_rx_flows_allow
cni_projectcalico_vpp_npol_rx_flows_deny
cni_projectcalico_vpp_npol_tx_flows_allow
cni_projectcalico_vpp_npol_tx_flows_deny
Example output:
cni_projectcalico_vpp_npol_rx_flows_allow{
worker="0",
namespace="default",
podName="nginx",
podInterfaceName="eth0",
vppInterfaceName="tun3"
} 42
Also, document the new metrics and add Prometheus integration coverage that
verifies the counters are exposed after NPOL is configured on an interface.
Collaborator
Author
|
For ref, the VPP side changes: https://gerrit.fd.io/r/c/vpp/+/46217 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scrape NPOL flow decision counters from VPP stats and export them with the same pod and interface labels used for existing interface counters.
The exported metrics are:
cni_projectcalico_vpp_npol_rx_flows_allow
cni_projectcalico_vpp_npol_rx_flows_deny
cni_projectcalico_vpp_npol_tx_flows_allow
cni_projectcalico_vpp_npol_tx_flows_deny
Example output:
cni_projectcalico_vpp_npol_rx_flows_allow{
worker="0",
namespace="default",
podName="nginx",
podInterfaceName="eth0",
vppInterfaceName="tun3"
} 42
Also, document the new metrics and add Prometheus integration coverage that verifies the counters are exposed after NPOL is configured on an interface.