nmstate / kubernetes-nmstate

Declarative node network configuration driven through Kubernetes API.
GNU General Public License v2.0
172 stars 86 forks source link

poc: statistics #1210

Closed qinqon closed 7 months ago

qinqon commented 9 months ago

TODO:

Current counter output example

nmstate_apply_topology_total{container="kube-rbac-proxy", instance="192.168.66.102:8443", job="nmstate-monitor", name="auto_ip4 -> linux-bridge -> ethernet", namespace="nmstate", pod="nmstate-handler-cgnhw", service="nmstate-monitor"}
1
nmstate_apply_topology_total{container="kube-rbac-proxy", instance="192.168.66.102:8443", job="nmstate-monitor", name="ethernet", namespace="nmstate", pod="nmstate-handler-cgnhw", service="nmstate-monitor"}
1

Possible query to get top 10

topk(10, sum(nmstate_apply_topology_total) by (name))

Looks like we cannot drop "instance"

kubevirt-bot commented 9 months ago

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
kubevirt-bot commented 9 months ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from qinqon. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/nmstate/kubernetes-nmstate/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
kubevirt-bot commented 7 months ago

@qinqon: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubernetes-nmstate-e2e-handler-k8s-future 2d5dc23b003d492dbc4972abe50294e30dd772ab link false /test pull-kubernetes-nmstate-e2e-handler-k8s-future
pull-kubernetes-nmstate-e2e-handler-k8s 2d5dc23b003d492dbc4972abe50294e30dd772ab link true /test pull-kubernetes-nmstate-e2e-handler-k8s
pull-kubernetes-nmstate-unit-test 1f0483f60a11923c718e2033b3401fe336d1b6f0 link true /test pull-kubernetes-nmstate-unit-test
Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).