ashx在web.config中如何配置_如何在 Istio 1.6 中配置 Prometheus-Operator 和抓取指标

4f5c9e9926f93ccd54ddf15f8a7185bb.png

在 Istio1.4 及以上版本中,可观测性指标的创建、交换和抓取的方式已经发生改变。

以下内容讲述了我如何配置 Prometheus Operator 资源以从 Istio1.6 中抓取指标和安装最新版的 Grafana 仪表盘。

ServiceMonitor

Prometheus Operator 比默认的 Prometheus 安装更加动态。它增加了一些 CRD 以动态和透明地重新配置 Prometheus 集群。

ServiceMonitor 资源对象用于描述需要抓取哪些 Service 中的 Pod。

在 Istio1.6 + 版本中,我们需要监控两种类型的资源:Istio 控制平面资源和 Istio 代理的数据平面资源。

为此,我们创建了 2 个不同的 ServiceMonitor:

控制平面

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: prometheus-oper-istio-controlplane
  labels:
    release: prometheus
spec:
  jobLabel: istio
  selector:
    matchExpressions:
      - {
    key: istio, operator: In, values: [mixer,pilot,galley,cit
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值