https://github.com/prometheus-community/helm-charts
just test
1.k8s test cluster
2.创建pv
#######/data 是###########hostPath
手动创建两个目录、创建2个pv
/var/lib/disk3/data/1
/var/lib/disk3/data/2
chown 1000:1000 -R /data/
启动问题(https://github.com/prometheus/prometheus/issues/5976)
3.k8s部署promethus
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm search prometheus
helm search repo prometheus-community
helm pull prometheus-community/prometheus
tar -xvf prometheus-13.3.3.tgz
helm install local-prometheus ./prometheus
...ok
==============================================
4.
kubectl expose service prometheus-pushgateway --name=prometheus-pushgateway-001 --port=9091 --type=NodePort
kubectl expose service prometheus-server --name=prometheus-server-001 --port=9090 --type=NodePort
5.(start a grpc server)
skywalking-custom-grpc-receiver-to-pushgateway
https://github.com/apache/skywalking/pull/2395
6.创建grafana简单部署,配置页面service_cpm{}