Giter Club home page Giter Club logo

Comments (5)

kongfei605 avatar kongfei605 commented on August 10, 2024

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

from categraf.

qtblsk avatar qtblsk commented on August 10, 2024

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里面

from categraf.

kongfei605 avatar kongfei605 commented on August 10, 2024

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

from categraf.

qtblsk avatar qtblsk commented on August 10, 2024

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

from categraf.

UlricQin avatar UlricQin commented on August 10, 2024

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

from categraf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.