Giter VIP home page Giter VIP logo

nebula-stats-exporter's Introduction

非 k8s 环境下部署监控使用文档

配置nebula-stats-exporter

在config.yaml中的nebulaItems下添加监控的nebula组件,instanceName用于标识组件名称,endpointIP用于指定该组件的 IP 地址, endpointPort用于指定该组件的 http 端口,nebulaType用于指定该组件的服务类型: metad、storaged 或者 graphd.
如果你是rpm方式部署nebula,那么endpointIP请填写主机IP地址,如果你是docker方式部署nebula,那么endpointIP请填写容器IP地址.

配置示例文件可参考deploy/bare-metal/config.yaml

nebulaItems:
  - instanceName: metad-0
    endpointIP: 192.168.8.102 # nebula component ip address
    endpointPort: 12000
    nebulaType: metad

运行 nebula-stats-exporter

直接运行:

-v参数指定docker运行时需要挂载的本地目录,-v /root/nebula:/config,将存放config.yaml的/root/nebula挂载到容器/config下.

docker run -d --restart=always -p 9100:9100 -v {absolute directory of config.yaml}:/config \
 vesoft/nebula-stats-exporter:v0.0.2  --bare-metal --bare-metal-config-path=/config/config.yaml

配置 prometheus

在prometheus.yaml中配置好nebula-stats-exporter的metrics endpoint,这里需要使用静态配置.

配置示例文件可参考deploy/bare-metal/prometheus.yaml

global:
  scrape_interval:     5s
  evaluation_interval: 5s
scrape_configs:
  - job_name: 'prometheus'
    static_configs:
      - targets: ['localhost:9090']
  - job_name: 'nebula-stats-exporter'
    static_configs:
      - targets: ['192.168.0.103:9100'] # nebula-stats-exporter metrics endpoints

然后运行 prometheus:

docker run -d --name=prometheus --restart=always \
-p 9090:9090 -v {absolute directory of prometheus.yaml}:/etc/prometheus/ prom/prometheus

配置 grafana

先启动 grafana:

docker run -d -p 3000:3000 grafana/grafana

然后将 grafana.json 导入到nebula的dashboard中。

nebula-stats-exporter's People

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.