helm install prometheus

Jmnote (토론 | 기여)님의 2024년 8월 12일 (월) 11:54 판 (→‎확인)

1 개요

helm install prometheus
  • namespace: default
  • RELEASE_NAME: prom

2 설치

$ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
"prometheus-community" has been added to your repositories
$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "prometheus-community" chart repository
Update Complete. ⎈Happy Helming!⎈
$ helm install prom prometheus-community/prometheus
NAME: prom
LAST DEPLOYED: Mon Aug 12 02:47:21 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
The Prometheus server can be accessed via port 80 on the following DNS name from within your cluster:
prom-prometheus-server.default.svc.cluster.local


Get the Prometheus server URL by running these commands in the same shell:
  export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=prometheus,app.kubernetes.io/instance=prom" -o jsonpath="{.items[0].metadata.name}")
  kubectl --namespace default port-forward $POD_NAME 9090


The Prometheus alertmanager can be accessed via port 9093 on the following DNS name from within your cluster:
prom-alertmanager.default.svc.cluster.local


Get the Alertmanager URL by running these commands in the same shell:
  export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=alertmanager,app.kubernetes.io/instance=prom" -o jsonpath="{.items[0].metadata.name}")
  kubectl --namespace default port-forward $POD_NAME 9093
...

The Prometheus PushGateway can be accessed via port 9091 on the following DNS name from within your cluster:
prom-prometheus-pushgateway.default.svc.cluster.local


Get the PushGateway URL by running these commands in the same shell:
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus-pushgateway,component=pushgateway" -o jsonpath="{.items[0].metadata.name}")
  kubectl --namespace default port-forward $POD_NAME 9091

For more information on running Prometheus, visit:
https://prometheus.io/

3 확인

$ helm list
NAME    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART                   APP VERSION
prom    default         1               2024-08-12 02:47:21.741740087 +0000 UTC deployed        prometheus-25.26.0      v2.54.0
$ kubectl get pods --namespace default -l "app.kubernetes.io/instance=prom"
NAME                                           READY   STATUS    RESTARTS   AGE
prom-alertmanager-0                            1/1     Running   0          3m7s
prom-kube-state-metrics-579795b97c-dgckf       1/1     Running   0          3m7s
prom-prometheus-node-exporter-dr985            1/1     Running   0          3m7s
prom-prometheus-node-exporter-mw968            1/1     Running   0          3m7s
prom-prometheus-pushgateway-778cbc4c94-5g7zj   1/1     Running   0          3m7s
prom-prometheus-server-d654b4667-vr7lh         2/2     Running   0          3m7s
$ kubectl get all -oyaml | grep -oP helm.sh/chart.* | sort | uniq
helm.sh/chart: alertmanager-1.12.0
helm.sh/chart: kube-state-metrics-5.25.1
helm.sh/chart: prometheus-25.26.0
helm.sh/chart: prometheus-node-exporter-4.37.1
helm.sh/chart: prometheus-pushgateway-2.14.0

4 같이 보기

5 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}