slack / smi-metrics

Expose SMI Metrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running

For the defaults, run:

helm template chart --name dev | kubectl apply -f -

Development

  • Get tilt, run tilt up.
  • The prometheus API client has been mocked out with a tool mockery. When bumping the API client version, a new mock will need to be generated. This can be done by checking out the correct version of the API client repo, running mockery -name API and copying the mocks folder into pkg/metrics/mocks.

Admin

  • /debug
  • /metrics
  • /status

TODO

API Questions

  • ObjectMeta includes OwnerReferences, Labels and Annotations. Should any of these be included as part of TrafficMetrics?
  • ObjectReference has ResourceVersion and APIVersion, pull these in?

Internal details

  • export prometheus for client-go
  • integrate swagger with apiservice (OpenAPI AggregationController)

Contributing

Please refer to CONTRIBUTING.md for more information on contributing to the specification.

About

Expose SMI Metrics

License:MIT License


Languages

Language:Go 93.0%Language:Smarty 2.5%Language:Shell 2.2%Language:Makefile 1.6%Language:Dockerfile 0.7%