Olivier Lemasle
0ea1c1b8d3
Use Golangci-lint
2022-11-28 23:17:16 +01:00
Damien Grisonnet
9dfbca09ca
go.mod: move to sigs.k8s.io golang package
...
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-06-01 17:35:45 +02:00
aackerman
54cd969594
Fixup default config generation to use pod and container instead of pod_name and container_name, those labels have been removed in kubernetes 1.16
2021-03-23 10:59:40 -05:00
paulfantom
cd55a67b89
*: move all imports to github.com/kubernetes-sigs/prometheus-adapter
...
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-02-22 15:49:03 +01:00
Solly Ross
6c8f44623e
Add tests for the resource metrics provider
...
This adds basic tests for the resource metrics provider, and fixes up
the default config slightly.
2018-10-03 11:05:43 -04:00
Solly Ross
c5801455ec
Introduce support for the resource metrics API
...
This introduces support for the resource metrics in the adapter.
The individual queries and window sizes are fully customizable via a new
config section. This uses just the generic machinery from
metrics-server to serve the API.
2018-10-03 11:05:43 -04:00
Solly Ross
40a9ee2474
Add a helper to generate legacy configuration
...
This moves the DefaultConfig method out into a helper to generate legacy
configuration. Passing in a config file is now required.
2018-06-27 16:56:20 -04:00