k8s部署Prometheus

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{}
  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值