Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问k8s prometheus监控 对应的值 都是什么? #2

Open
arsenalpoll opened this issue Aug 26, 2019 · 2 comments
Open

请问k8s prometheus监控 对应的值 都是什么? #2

arsenalpoll opened this issue Aug 26, 2019 · 2 comments

Comments

@arsenalpoll
Copy link

up{endpoint="port",job="etcd",namespace="kube-system",service="etcd-k8s"} == 0
文件里面的 service 对应的是 pod名字吗?

@yanghongfei
Copy link
Owner

up{endpoint="port",job="etcd",namespace="kube-system",service="etcd-k8s"} == 0
文件里面的 service 对应的是 pod名字吗?

service 对应的肯定是service呀,pod是最小单元

@arsenalpoll
Copy link
Author

@yanghongfei 谢谢解答。已经明白了
另外还有一个问题是,prometheus时区不对的问题。这个如何更改?
在prometheus里面查询数据的时间比北京时间少8小时。我已经在yaml文件定义/etc/localtime
用命令 date 查看容器时间是对的,但是prometheus时间不对。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants