padavan_exporter

module
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2024 License: GPL-3.0

README

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.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL