在我的装有Fedora30的笔记本电脑上,我安装并运行了Performance Co-Pilot (PCP)守护进程,并从golang-github-prometheus-prometheus-1.8.0-4.fc30.x86_64包中安装了Prometheus。在PCP收集器的配置中,我指定了以下指标名称空间: # Performance Metrics Domain Specifications
#
# This file is automatically generated during the build
# Name Id IPC IPC Params
我在Kubernetes服务的default名称空间上安装了一个python应用程序。它使用starlette_exporter并将/metrics端点暴露给普罗米修斯。当我访问1.2.3.4/metrics端点时,我看到: ...
process_open_fds 21.0
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1.048576e+06
# HELP starlette_request_duration_seco
我有一个关于Grafana的问题。我如何在GKE上使用退出普罗米修斯deamonset for Grafana。我不想再为Grafana再部署一次Prometheus。在启动GKE集群后,我提出了这个问题。我检查了kube-system命名空间,发现已经部署了Prometheus deamonset。
$ kubectl get daemonsets -n kube-system
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR
我已经使用这个在kubernetes集群节点之一上配置了Prometheus。之后,我添加了以下prometheus.yml文件。我可以列出节点和apiserver,但是对于pod,所有的pod都显示为down和error:
Get "https:// xx.xx.xx:443 /metrics": dial tcp xx.xx.xx:443: connect: connection refused and for some pods the status is unknown.
有人能告诉我我哪里做错了吗?
Cat prometheus.yml
global:
s