Coder Social home page Coder Social logo

tonyskapunk / prometheus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from starsliao/prometheus

0.0 2.0 0.0 842 KB

Grafana Dashboards for Prometheus Exporter

Home Page: https://grafana.com/orgs/starsliao/dashboards

License: GNU General Public License v3.0

Python 100.00%

prometheus's Introduction

Blackbox Exporter 0.14 for Prometheus 监控展示看板

目前在使用的TCP,ICMP,HTTPS服务状态监控 Prometheus Blackbox Exporter,在一个看板里面展示,做了展示效果的优化,支持多服务同时展示,需要使用的可以参考下,记得根据自己的实际情况修改下变量。

记得安装饼图插件

Node Exporter 0.16 0.17 0.18 for Prometheus 监控展示看板

Grafana v5.4.2 + node_exporter 0.16 、node_exporter 0.17 、node_exporter 0.18 测试使用正常。

使用 Node Exporter v0.18,以实用为主,精简优化重要指标进行展示。
包含:CPU 内存 磁盘 IO 网络 流量 温度等监控指标。

截图

关注公众号【全栈运维开发 Python & Vue】获取更多...

注意事项:

需要安装饼图的插件:
grafana-cli plugins install grafana-piechart-panel
# 请确保安装后能正常添加饼图。

请根据实际情况在grafana该面板的设置中配置好变量后使用:

  • 必须:$node取值node_exporter的instance,IP+端口格式。该看板大部分查询关联了这个变量,请确保该变量有效
    • 注意:在Prometheus中使用count(node_exporter_build_info) by(instance,version)查询各node的instance格式和版本。
跟$name关联查询:
label_values(node_exporter_build_info{name='$name'},instance)

如果您无法获取$name,可修改成:
label_values(node_exporter_build_info,instance)

  • 重要:$maxmount用于根据$node来查询当前主机的最大分区挂载点。
query_result(topk(1,sort_desc (max(node_filesystem_size_bytes{instance=~'$node',fstype=~"ext4|xfs"}) by (mountpoint))))

  • 可选:$env自定义的各主机环境:
label_values(node_exporter_build_info,env)

  • 可选:$name自定义的主机名称。(跟$env关联):
label_values(node_exporter_build_info{env='$env'},name)

【update】:

2019/5/20
  1. 增加了服务器列表多选支持,曲线图可以展示多台服务器的数据。
  2. 优化了变量的展示效果。
  3. 优化了部分监控指标的描述说明,点击各图表左上角的“i”即可查看。
2019/1/9
  1. 修复了一个展示内存使用量不准确的bug。
  2. 增加了更新node_exporter和仪表板的外链。
  3. Grafana v5.4.2 + node_exporter 0.16 、node_exporter 0.17 测试使用正常。
11/16
  1. 增加了变量的说明。
  2. 优化了新安装看板后的展示速度。
11/15
  1. 增加各环境对服务器分组。
  2. 增加饼图,磁盘总空间。
  3. 增加当前打开文件描述符。
  4. 增加部分监控指标的描述。
  5. 优化部分指标的显示结果。
11/13
  1. 增加磁盘每秒的I/O操作耗费时间占比图形。

prometheus's People

Contributors

starsliao avatar

Watchers

James Cloos avatar  avatar

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.