[root@UR-20210425NAMA ~]# kubectl -n kubesphere-monitoring-system get podNAME READY STATUS RESTARTS AGEalertmanager-main-0 2/2 Running 0 9dkube-state-metrics-7f65879cfd-m6724 3/3 Running 0 5d13hnode-exporter-cw6dg 2/2 Running 0 67dnode-exporter-d4xm5 2/2 Running 3 67dnode-exporter-jjn4h 2/2 Running 0 67dnode-exporter-jn2bt 2/2 Running 0 67dnode-exporter-r4ht9 2/2 Running 0 67dnode-exporter-wwh7c 2/2 Running 2 67dnotification-manager-deployment-674dddcbd9-9vnw4 1/1 Running 0 5d13hnotification-manager-deployment-674dddcbd9-h2xb5 1/1 Running 0 10dnotification-manager-operator-7877c6574f-4wd2v 2/2 Running 14 5d13hprometheus-k8s-0 3/3 Running 1 9dprometheus-operator-7d7684fc68-7lppq 2/2 Running 0 5d13hthanos-ruler-kubesphere-0 2/2 Running 0 9dthanos-ruler-kubesphere-1 2/2 Running 0 5d4h[root@UR-20210425NAMA ~]# kubectl -n kubesphere-monitoring-system get prometheusruleNAME AGEcustom-alerting-rule-zpnmw 67dprometheus-k8s-etcd-rules 96dprometheus-k8s-rules 96d[root@UR-20210425NAMA ~]#
[root@UR-20210425NAMA ~]# kubectl -n kubesphere-monitoring-system get svcNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEalertmanager-main ClusterIP 172.26.94.130 <none> 9093/TCP 96dalertmanager-operated ClusterIP None <none> 9093/TCP,9094/TCP,9094/UDP 96dkube-state-metrics ClusterIP None <none> 8443/TCP,9443/TCP 96dnode-exporter ClusterIP None <none> 9100/TCP 96dnotification-manager-controller-metrics ClusterIP 172.26.201.224 <none> 8443/TCP 67dnotification-manager-svc ClusterIP 172.26.224.139 <none> 19093/TCP 67dprometheus-k8s NodePort 172.26.128.137 <none> 9090:30439/TCP 96dprometheus-operated ClusterIP None <none> 9090/TCP 96dprometheus-operator ClusterIP None <none> 8443/TCP 96dthanos-ruler-operated ClusterIP None <none> 10902/TCP,10901/TCP 67d[root@UR-20210425NAMA ~]#
CRD资源
[root@UR-20210425NAMA ~]# kubectl get crd |grep coreosalertmanagers.monitoring.coreos.com 2021-05-20T10:26:22Zpodmonitors.monitoring.coreos.com 2021-05-20T10:26:22Zprobes.monitoring.coreos.com 2021-06-18T14:55:50Zprometheuses.monitoring.coreos.com 2021-05-20T10:26:23Zprometheusrules.monitoring.coreos.com 2021-05-20T10:26:23Zservicemonitors.monitoring.coreos.com 2021-05-20T10:26:24Zthanosrulers.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
