k8snetworkplumbingwg / net-attach-def-admission-controller

An admission controller to check resources as defined by the NPWG spec
Apache License 2.0
4 stars 15 forks source link

Metrics #28

Closed aneeshkp closed 5 years ago

aneeshkp commented 5 years ago

Enables metrics to addmission contoller. Metrics are available at :9091/metrtics

HELP multus_pod_count Metric to get total pods using multus. TYPE multus_pod_count gauge multus_pod_count 2

HELP network_attachment_definitions_count Metric to count network attachment definitions. TYPE network_attachment_definitions_count gauge network_attachment_definitions_count 1

dougbtv commented 5 years ago

Aneesh check out this unit test that's not passing atm, here in Travis @ https://travis-ci.org/K8sNetworkPlumbingWG/net-attach-def-admission-controller/builds/598648639#L916-L925

aneeshkp commented 5 years ago

Aneesh check out this unit test that's not passing atm, here in Travis @ https://travis-ci.org/K8sNetworkPlumbingWG/net-attach-def-admission-controller/builds/598648639#L916-L925

Fixed the go vet , which was failing th e

Aneesh check out this unit test that's not passing atm, here in Travis @ https://travis-ci.org/K8sNetworkPlumbingWG/net-attach-def-admission-controller/builds/598648639#L916-L925

Fixed go vet complain.

aneeshkp commented 5 years ago

I am closing this and opening new one.