1. [root@UR-20210425NAMA ~]# kubectl -n kubesphere-monitoring-system get pod
    2. NAME READY STATUS RESTARTS AGE
    3. alertmanager-main-0 2/2 Running 0 9d
    4. kube-state-metrics-7f65879cfd-m6724 3/3 Running 0 5d13h
    5. node-exporter-cw6dg 2/2 Running 0 67d
    6. node-exporter-d4xm5 2/2 Running 3 67d
    7. node-exporter-jjn4h 2/2 Running 0 67d
    8. node-exporter-jn2bt 2/2 Running 0 67d
    9. node-exporter-r4ht9 2/2 Running 0 67d
    10. node-exporter-wwh7c 2/2 Running 2 67d
    11. notification-manager-deployment-674dddcbd9-9vnw4 1/1 Running 0 5d13h
    12. notification-manager-deployment-674dddcbd9-h2xb5 1/1 Running 0 10d
    13. notification-manager-operator-7877c6574f-4wd2v 2/2 Running 14 5d13h
    14. prometheus-k8s-0 3/3 Running 1 9d
    15. prometheus-operator-7d7684fc68-7lppq 2/2 Running 0 5d13h
    16. thanos-ruler-kubesphere-0 2/2 Running 0 9d
    17. thanos-ruler-kubesphere-1 2/2 Running 0 5d4h
    18. [root@UR-20210425NAMA ~]# kubectl -n kubesphere-monitoring-system get prometheusrule
    19. NAME AGE
    20. custom-alerting-rule-zpnmw 67d
    21. prometheus-k8s-etcd-rules 96d
    22. prometheus-k8s-rules 96d
    23. [root@UR-20210425NAMA ~]#
    1. [root@UR-20210425NAMA ~]# kubectl -n kubesphere-monitoring-system get svc
    2. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
    3. alertmanager-main ClusterIP 172.26.94.130 <none> 9093/TCP 96d
    4. alertmanager-operated ClusterIP None <none> 9093/TCP,9094/TCP,9094/UDP 96d
    5. kube-state-metrics ClusterIP None <none> 8443/TCP,9443/TCP 96d
    6. node-exporter ClusterIP None <none> 9100/TCP 96d
    7. notification-manager-controller-metrics ClusterIP 172.26.201.224 <none> 8443/TCP 67d
    8. notification-manager-svc ClusterIP 172.26.224.139 <none> 19093/TCP 67d
    9. prometheus-k8s NodePort 172.26.128.137 <none> 9090:30439/TCP 96d
    10. prometheus-operated ClusterIP None <none> 9090/TCP 96d
    11. prometheus-operator ClusterIP None <none> 8443/TCP 96d
    12. thanos-ruler-operated ClusterIP None <none> 10902/TCP,10901/TCP 67d
    13. [root@UR-20210425NAMA ~]#

    CRD资源

    1. [root@UR-20210425NAMA ~]# kubectl get crd |grep coreos
    2. alertmanagers.monitoring.coreos.com 2021-05-20T10:26:22Z
    3. podmonitors.monitoring.coreos.com 2021-05-20T10:26:22Z
    4. probes.monitoring.coreos.com 2021-06-18T14:55:50Z
    5. prometheuses.monitoring.coreos.com 2021-05-20T10:26:23Z
    6. prometheusrules.monitoring.coreos.com 2021-05-20T10:26:23Z
    7. servicemonitors.monitoring.coreos.com 2021-05-20T10:26:24Z
    8. thanosrulers.monitoring.coreos.com 2021-05-20T10:26:24Z
    9. [root@UR-20210425NAMA ~]#

    https://prometheus-operator.dev
    https://github.com/kubernetes-monitoring/kubernetes-mixin
    https://github.com/prometheus-operator/kube-prometheus
    https://github.com/prometheus-operator/prometheus-operator