Coder Social home page Coder Social logo

padavan_exporter's Introduction

English | 简体中文

padavan_exporter

Build Quality Gate Status Go Report Card Docker Pulls

Prometheus Exporter for padavan metrics. Please do not spare any of your comments or suggestions. You can Discuss them in the Issue, or you can submit a Pull Request directly.

Collectors

Name Description
padavan_load1 CPU 1min load average.
padavan_load5 CPU 5min load average.
padavan_load15 CPU 15min load average.
node_cpu_seconds_total Seconds the cpus spent in each mode.
node_network_receive_bytes_total Network device statistic receive_bytes.
node_network_receive_compressed_total Network device statistic receive_compressed.
node_network_receive_errs_total Network device statistic receive_errs.
node_network_receive_fifo_total Network device statistic receive_fifo.
node_network_receive_frame_total Network device statistic receive_frame.
node_network_receive_multicast_total Network device statistic receive_multicast.
node_network_receive_packets_total Network device statistic receive_packets.
node_network_transmit_bytes_total Network device statistic transmit_bytes.
node_network_transmit_carrier_total Network device statistic transmit_carrier.
node_network_transmit_colls_total Network device statistic transmit_colls.
node_network_transmit_compressed_total Network device statistic transmit_compressed.
node_network_transmit_drop_total Network device statistic transmit_drop.
node_network_transmit_errs_total Network device statistic transmit_errs.
node_network_transmit_fifo_total Network device statistic transmit_fifo.
node_network_transmit_packets_total Network device statistic transmit_packets.

Usage

$ ./padavan_exporter --help
Flags:
  --help                        Show context-sensitive help (also try
                                --help-long and --help-man).
  --web.listen-address=":9100"  Address on which to expose metrics and web
                                interface
  --padavan.ssh.host="127.0.0.1:22"
                                Padavan ssh host
  --padavan.ssh.username="admin"
                                Padavan ssh username
  --padavan.ssh.password="admin"
                                Padavan ssh password
  --debug                       Debug mode

systemd

If you want to manager padavan_exporter by systemd, Refer This.

Docker Compose(Recommend)

Of course the best practice is Docker Compose. You can refer to the preset docker-compose.yml.

Grafana Preview

Add dashboard by url: https://grafana.com/grafana/dashboards/15978

asd

Known Issues

  1. When the hardware NAT is enabled, the packet forwarding does not pass through the CPU, and the network speed statistics are inaccurate. If the hardware NAT is turned off, the performance will be degraded.(Reference) ;
  2. Padavan's file system is immutable (TMPFS), so this program is currently running in SSH mode. That is, you need to run this program on other machines and connect to padavan through SSH;

Plans

  • Number of devices currently connected.

padavan_exporter's People

Contributors

bpazy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

padavan_exporter's Issues

容器偶发异常退出

报错日志:

time="2024-04-10T21:02:15Z" level=info msg="Connecting to 192.168.31.1:22"
2024-04-11T05:02:20.045912672+08:00 time="2024-04-10T21:02:20Z" level=fatal msg="create ssh client failed: dial tcp 192.168.31.1:22: i/o timeout"

这个exporter,是要docker-compose在哪个主机?

看日志,是要部署在padavan固件上,
但是,padavan不支持docker吧?

如果部署在去监控padavan的那个linux上,那我要去哪里修改ssh连接配置?谢谢。

[root@hp400g1 ~/docker-test/padavan_exporter]#docker-compose logs -f
Attaching to padavan_exporter_comfysub_1
comfysub_1 | time="2023-06-20T00:27:12Z" level=info msg="Connecting to 127.0.0.1:22"
comfysub_1 | time="2023-06-20T00:27:12Z" level=fatal msg="create ssh client failed: dial tcp 127.0.0.1:22: connect: connection refused"
comfysub_1 | time="2023-06-20T00:27:12Z" level=info msg="Connecting to 127.0.0.1:22"
comfysub_1 | time="2023-06-20T00:27:12Z" level=fatal msg="create ssh client failed: dial tcp 127.0.0.1:22: connect: connection refused"
comfysub_1 | time="2023-06-20T00:27:13Z" level=info msg="Connecting to 127.0.0.1:22"
comfysub_1 | time="2023-06-20T00:27:13Z" level=fatal msg="create ssh client failed: dial tcp 127.0.0.1:22: connect: connection refused"
comfysub_1 | time="2023-06-20T00:27:13Z" level=info msg="Connecting to 127.0.0.1:22"
comfysub_1 | time="2023-06-20T00:27:13Z" level=fatal msg="create ssh client failed: dial tcp 127.0.0.1:22: connect: connection refused"
comfysub_1 | time="2023-06-20T00:27:15Z" level=info msg="Connecting to 127.0.0.1:22"
comfysub_1 | time="2023-06-20T00:27:15Z" level=fatal msg="create ssh client failed: dial tcp 127.0.0.1:22: connect: connection refused"
comfysub_1 | time="2023-06-20T00:27:16Z" level=info msg="Connecting to 127.0.0.1:22"
comfysub_1 | time="2023-06-20T00:27:16Z" level=fatal msg="create ssh client failed: dial tcp 127.0.0.1:22: connect: connection refused"

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.