Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

请问怎么监控多个region的各实例 #6

Open
rambolijian opened this issue Mar 28, 2019 · 7 comments
Open

请问怎么监控多个region的各实例 #6

rambolijian opened this issue Mar 28, 2019 · 7 comments

Comments

@rambolijian
Copy link

No description provided.

@aylei
Copy link
Owner

aylei commented Mar 28, 2019

启动多个 aliyun-exporter 实例

@rambolijian
Copy link
Author

以端口区分,然后配置一个prometheus,grafana去收集和展示对吗

@aylei
Copy link
Owner

aylei commented Mar 28, 2019

可以用端口区分, k8s 或 docker-compose 也可以直接起多个不同的 aliyun-exporter 服务

@rambolijian
Copy link
Author

多谢,docker-compose起多个,不就是多套prometheus嘛,一个region对应一个prometheus了,是这么理解嘛

@aylei
Copy link
Owner

aylei commented Mar 28, 2019

不是, 仅仅是多定义几个 aliyun-exporter, 比如 aliyun-exporter1, aliyun-exporter2

可以参考 tidb-compose 的例子: https://github.com/pingcap/tidb-docker-compose/blob/master/docker-compose.yml

@rambolijian
Copy link
Author

多谢eylei,想请问下docker-compose/exporter/aliyun-exporter.yml中这么多metrics,随便自己取名的?还是和哪里关联的,我知道有这么多metrics,谢谢

@aylei
Copy link
Owner

aylei commented Mar 30, 2019

参考 README 中的 Metrics Meta 一节:

Metrics Meta

aliyun-exporter shipped with a simple site hosting the metrics meta from the CloudMonitor API. You can visit the metric meta in localhost:9525 after launching the exporter.

  • host:port will host all the available monitor projects
  • host:port/projects/{project} will host the metrics meta of a certain project
  • host:port/yaml/{project} will host a config YAML of the project's metrics

you can easily navigate in this pages by hyperlink.

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

No branches or pull requests

2 participants