Prometheus Adapter for Kubernetes Metrics APIs: Difference between revisions
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
helm install -n prometheus-adapter prometheus-adapter prometheus-community/prometheus-adapter | helm install -n prometheus-adapter prometheus-adapter prometheus-community/prometheus-adapter | ||
</syntaxhighlight> | |||
Test installation: | |||
<syntaxhighlight lang='bash'> | |||
kubectl get --raw /apis/custom.metrics.k8s.io/v1beta1 | jq | |||
</syntaxhighlight> | |||
<syntaxhighlight lang='json'> | |||
{ | |||
"kind": "APIResourceList", | |||
"apiVersion": "v1", | |||
"groupVersion": "custom.metrics.k8s.io/v1beta1", | |||
"resources": [] | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 05:20, 14 October 2020
External
Internal
Overview
The Prometheus adapter is a Kubernetes Aggregation Layer extension.
Installation
Install Prometheus first. Then:
kubectl create ns prometheus-adapter
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm search repo prometheus-community
helm install -n prometheus-adapter prometheus-adapter prometheus-community/prometheus-adapter
Test installation:
kubectl get --raw /apis/custom.metrics.k8s.io/v1beta1 | jq
{
"kind": "APIResourceList",
"apiVersion": "v1",
"groupVersion": "custom.metrics.k8s.io/v1beta1",
"resources": []
}