[root@UR-20210425NAMA ~]# kubectl -n kubesphere-monitoring-system get pod
NAME READY STATUS RESTARTS AGE
alertmanager-main-0 2/2 Running 0 9d
kube-state-metrics-7f65879cfd-m6724 3/3 Running 0 5d13h
node-exporter-cw6dg 2/2 Running 0 67d
node-exporter-d4xm5 2/2 Running 3 67d
node-exporter-jjn4h 2/2 Running 0 67d
node-exporter-jn2bt 2/2 Running 0 67d
node-exporter-r4ht9 2/2 Running 0 67d
node-exporter-wwh7c 2/2 Running 2 67d
notification-manager-deployment-674dddcbd9-9vnw4 1/1 Running 0 5d13h
notification-manager-deployment-674dddcbd9-h2xb5 1/1 Running 0 10d
notification-manager-operator-7877c6574f-4wd2v 2/2 Running 14 5d13h
prometheus-k8s-0 3/3 Running 1 9d
prometheus-operator-7d7684fc68-7lppq 2/2 Running 0 5d13h
thanos-ruler-kubesphere-0 2/2 Running 0 9d
thanos-ruler-kubesphere-1 2/2 Running 0 5d4h
[root@UR-20210425NAMA ~]# kubectl -n kubesphere-monitoring-system get prometheusrule
NAME AGE
custom-alerting-rule-zpnmw 67d
prometheus-k8s-etcd-rules 96d
prometheus-k8s-rules 96d
[root@UR-20210425NAMA ~]#
[root@UR-20210425NAMA ~]# kubectl -n kubesphere-monitoring-system get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
alertmanager-main ClusterIP 172.26.94.130 <none> 9093/TCP 96d
alertmanager-operated ClusterIP None <none> 9093/TCP,9094/TCP,9094/UDP 96d
kube-state-metrics ClusterIP None <none> 8443/TCP,9443/TCP 96d
node-exporter ClusterIP None <none> 9100/TCP 96d
notification-manager-controller-metrics ClusterIP 172.26.201.224 <none> 8443/TCP 67d
notification-manager-svc ClusterIP 172.26.224.139 <none> 19093/TCP 67d
prometheus-k8s NodePort 172.26.128.137 <none> 9090:30439/TCP 96d
prometheus-operated ClusterIP None <none> 9090/TCP 96d
prometheus-operator ClusterIP None <none> 8443/TCP 96d
thanos-ruler-operated ClusterIP None <none> 10902/TCP,10901/TCP 67d
[root@UR-20210425NAMA ~]#
CRD资源
[root@UR-20210425NAMA ~]# kubectl get crd |grep coreos
alertmanagers.monitoring.coreos.com 2021-05-20T10:26:22Z
podmonitors.monitoring.coreos.com 2021-05-20T10:26:22Z
probes.monitoring.coreos.com 2021-06-18T14:55:50Z
prometheuses.monitoring.coreos.com 2021-05-20T10:26:23Z
prometheusrules.monitoring.coreos.com 2021-05-20T10:26:23Z
servicemonitors.monitoring.coreos.com 2021-05-20T10:26:24Z
thanosrulers.monitoring.coreos.com 2021-05-20T10:26:24Z
[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