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

希望添加etcd和minio的采集 #116

Closed
qtblsk opened this issue Jul 23, 2022 · 5 comments
Closed

希望添加etcd和minio的采集 #116

qtblsk opened this issue Jul 23, 2022 · 5 comments

Comments

@qtblsk
Copy link

qtblsk commented Jul 23, 2022

希望添加etcd和minio的采集

@kongfei605
Copy link
Collaborator

可以用prometheus的方式抓取https://github.com/flashcatcloud/categraf/tree/main/prometheus 。etcd推荐用fd_sd_config 方式,配置完如果能整理一篇文章更好了,欢迎参与

@qtblsk
Copy link
Author

qtblsk commented Jul 23, 2022

vim prometheus.yml

  • job_name: "etcd"
    scheme: https
    scrape_interval: 15s
    metrics_path: /metrics
    tls_config:
    ca_file: /root/etcd/ca.pem
    cert_file: /root/etcd/etcd.pem
    key_file: /root/etcd/etcd-key.pem
    insecure_skip_verify: false
    static_configs:
    • targets: ["10.10.10.1:2379", "10.10.10.2:2379", "10.10.10.3:2379"]

curl -Lk --cert ./etcd.pem --key ./etcd-key.pem https://10.10.10.1:2379/metrics

这就是pull的模式了,在跨网环境还是统一用categraf来push更方便,希望尽快集成到categraf里面

@kongfei605
Copy link
Collaborator

kongfei605 commented Jul 24, 2022

没太明白,是因为权限限制 所以pull模式不行? categraf支持prometheus的抓取方式。 可以用categraf 跟dns 部署到一个网络环境,remote write到外部的prometheus

@qtblsk
Copy link
Author

qtblsk commented Jul 24, 2022

还是不太方便,希望categraf能内置etcd、minio、wireguard插件

@UlricQin
Copy link
Contributor

UlricQin commented Aug 2, 2022

etcd 直接暴露了 /metrics 接口,minio也直接暴露了/minio/v2/metrics/cluster接口,通过categraf的prometheus插件:https://github.com/flashcatcloud/categraf/tree/main/inputs/prometheus 直接采集即可

@UlricQin UlricQin closed this as completed Aug 2, 2022
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

3 participants