prometheus-adapter

module
v0.0.0-...-d0c64be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2019 License: Apache-2.0

README

Prometheus Adapter for Kubernetes Metrics APIs

This repository contains an implementation of the Kubernetes resource metrics, custom metrics, and external metrics API.

This adapter is therefore suitable for use with the autoscaling/v2 Horizontal Pod Autoscaler in Kubernetes 1.14+. It can also replace the metrics server on clusters that already run Prometheus and collect the appropriate metrics.

Go Report Card Build Status

FAQ

Bumping k8s dependencies
  1. Bump the corresponding versions in go.mod
$ cat go.mod
...
replace (
	k8s.io/apimachinery kubernetes-1.14.2
	k8s.io/client-go v11.0.0
)
...
  1. Execute:
$ go mod vendor

Directories

Path Synopsis
pkg
apis/metrics/v1
Package v1 is the v1 version of the API.
Package v1 is the v1 version of the API.
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/metrics/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/metrics/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL