prometheus运算符中所有pod的container_fs_指标都归零

时间:2019-10-24 05:39:35

标签: kubernetes prometheus kubernetes-helm cadvisor

我正在使用稳定/ prometheus-operator来监视kubernetes集群。 但是磁盘指标对所有Pod都显示为零。有什么要解决的办法。 cadvisor端点在Prometheus中处于活动状态

image for prometheus screenshot

服务监控器配置

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  creationTimestamp: '2019-10-24T06:40:18Z'
  generation: 1
  labels:
    app: prometheus-operator-kubelet
    chart: prometheus-operator-6.18.0
    heritage: Tiller
    release: prometheus
  name: prometheus-prometheus-oper-kubelet
  namespace: default
  resourceVersion: '2595'
  selfLink: >-
    /apis/monitoring.coreos.com/v1/namespaces/default/servicemonitors/prometheus-prometheus-oper-kubelet
  uid: 5039932b-3224-4c24-ae13-d9a2b540c02b
spec:
  endpoints:
    - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
      honorLabels: true
      port: https-metrics
      scheme: https
      tlsConfig:
        caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
        insecureSkipVerify: true
    - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
      honorLabels: true
      path: /metrics/cadvisor
      port: https-metrics
      scheme: https
      tlsConfig:
        caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
        insecureSkipVerify: true
  jobLabel: k8s-app
  namespaceSelector:
    matchNames:
      - kube-system
  selector:
    matchLabels:
      k8s-app: kubelet

0 个答案:

没有答案