yudady / yudady.github.io

練習筆記項目
https://yudady.github.io
Apache License 2.0
0 stars 1 forks source link

devops - 數據監控 #2

Open yudady01 opened 2 years ago

yudady01 commented 2 years ago

action in k8s

Gather Metrics with Spring Boot using Prometheus & Grafana | VMware Tanzu Developer Center

kind: ServiceMonitor release: prometheus


apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: spring-prometheus-demo-service-monitor
spec:
  selector:
    matchLabels:
      app: spring-prometheus-demo
  endpoints:
  - port: http-traffic
    path: "/actuator/prometheus"

yudady01 commented 2 years ago

prometheus-operator/README.md at main · prometheus-operator/prometheus-operator

搬家了 最初作為此存儲庫的一部分開發的 helm 圖表已移至prometheus-community/kube-prometheus-stack

該存儲庫中構建的多個圖表已組合成一個圖表,該圖表安裝了 prometheus operator、prometheus、alertmanager、grafana 以及監控集群所需的大量導出器。

helm-charts/charts/kube-prometheus-stack at main · prometheus-community/helm-charts

Get Helm Repository Info helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update See helm repo for command documentation.

Install Helm Chart helm install [RELEASE_NAME] prometheus-community/kube-prometheus-stack See configuration below.

See helm install for command documentation.