{"id":15690411,"url":"https://github.com/bpazy/padavan_exporter","last_synced_at":"2025-05-07T03:25:27.009Z","repository":{"id":59044371,"uuid":"284268961","full_name":"Bpazy/padavan_exporter","owner":"Bpazy","description":"Prometheus exporter for padavan metrics","archived":false,"fork":false,"pushed_at":"2025-05-06T13:58:30.000Z","size":113,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T15:05:42.090Z","etag":null,"topics":["exporter","metrics","padavan","prometheus"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bpazy.png","metadata":{"files":{"readme":"README-zh_CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":"Bpazy/padavan_exporter","otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2020-08-01T13:50:10.000Z","updated_at":"2025-05-06T13:58:34.000Z","dependencies_parsed_at":"2024-05-22T16:09:27.435Z","dependency_job_id":"5c84adfd-b519-43d7-922d-2e7f836589ae","html_url":"https://github.com/Bpazy/padavan_exporter","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fpadavan_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fpadavan_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fpadavan_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fpadavan_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bpazy","download_url":"https://codeload.github.com/Bpazy/padavan_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252805437,"owners_count":21807000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exporter","metrics","padavan","prometheus"],"created_at":"2024-10-03T18:09:03.701Z","updated_at":"2025-05-07T03:25:26.997Z","avatar_url":"https://github.com/Bpazy.png","language":"Go","funding_links":["https://issuehunt.io/r/Bpazy/padavan_exporter"],"categories":[],"sub_categories":[],"readme":"[English](./README.md) | 简体中文\n\u003ch1 align=\"center\"\u003epadavan_exporter\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n![Build](https://github.com/Bpazy/padavan_exporter/workflows/Build/badge.svg)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Bpazy_padavan_exporter\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=Bpazy_padavan_exporter)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Bpazy/padavan_exporter)](https://goreportcard.com/report/github.com/Bpazy/padavan_exporter)\n[![Docker Pulls](https://img.shields.io/docker/pulls/bpazy/padavan_exporter)](https://hub.docker.com/r/bpazy/padavan_exporter)\n\n这是适用于老毛子固件系统指标的 Prometheus Exporter。请不要吝啬您的任何意见或建议，你可以在 Issue 中讨论她们，也可以直接提交你的 Pull Request.\n\u003c/div\u003e\n\n## Collectors\n| Name                                   | Description                 |\n|----------------------------------------|-----------------------------|\n| padavan_load1                          | CPU 1min 平均负载.              | \n| padavan_load5                          | CPU 5min 平均负载.              | \n| padavan_load15                         | CPU 15min 平均负载.             | \n| node_cpu_seconds_total                 | 在每种模式下花费的CPU秒数              |\n| node_network_receive_bytes_total    | 网络接口接收到的字节总数。                                 |\n| node_network_receive_compressed_total| 网络接口接收到的压缩包总数。                               |\n| node_network_receive_errs_total     | 网络接口检测到的接收错误总数。                             |\n| node_network_receive_fifo_total     | 网络接口接收时FIFO缓冲区错误的总数。                       |\n| node_network_receive_frame_total    | 网络接口接收到的帧对齐错误总数。                           |\n| node_network_receive_multicast_total| 网络接口接收到的组播包总数。                              |\n| node_network_receive_packets_total  | 网络接口接收到的数据包总数。                              |\n| node_network_transmit_bytes_total   | 网络接口发送的字节总数。                                  |\n| node_network_transmit_carrier_total | 网络接口传输时检测到的载波错误总数。                       |\n| node_network_transmit_colls_total   | 网络接口传输时检测到的碰撞总数。                           |\n| node_network_transmit_compressed_total | 网络接口发送的压缩包总数。                              |\n| node_network_transmit_drop_total    | 网络接口传输时丢弃的数据包总数。                           |\n| node_network_transmit_errs_total    | 网络接口检测到的传输错误总数。                             |\n| node_network_transmit_fifo_total    | 网络接口传输时FIFO缓冲区错误的总数。                       |\n| node_network_transmit_packets_total | 网络接口发送的数据包总数。                                |\n| node_memory_buffers_bytes     | 内存信息 Buffers_bytes.    |\n| node_memory_cached_bytes     | 内存信息 field Cached_bytes.    |\n| node_memory_free_bytes     | 剩余内存 in bytes.    |\n| node_memory_total_bytes     | 总内存 in bytes.    |\n| node_netstat_Icmp6_InErrors     | 由于错误未能成功接收的 ICMPv6 消息数量。                                 |\n| node_netstat_Icmp6_InMsgs       | 成功接收的 ICMPv6 消息数量。                                             |\n| node_netstat_Icmp6_OutMsgs      | 成功发送的 ICMPv6 消息数量。                                             |\n| node_netstat_Icmp_InErrors      | 由于错误未能成功接收的 ICMP 消息数量。                                   |\n| node_netstat_Icmp_InMsgs        | 成功接收的 ICMP 消息数量。                                               |\n| node_netstat_Icmp_OutMsgs       | 成功发送的 ICMP 消息数量。                                               |\n| node_netstat_Ip6_InOctets       | IPv6 上的传入字节数/数据包数量。                                         |\n| node_netstat_Ip6_OutOctets      | IPv6 上的传出字节数/数据包数量。                                         |\n| node_netstat_IpExt_InOctets     | 网络接口上传入的字节数/数据包数量，包含 IPv4。                           |\n| node_netstat_IpExt_OutOctets    | 网络接口上传出的字节数/数据包数量，包含 IPv4。                           |\n| node_netstat_Ip_Forwarding      | 是否启用了 IP 转发，启用 (1) 或未启用 (0)。                              |\n| node_netstat_TcpExt_ListenDrops | TCP 监听队列丢弃的数量。                                                 |\n| node_netstat_TcpExt_ListenOverflows | TCP 监听队列溢出的数量。                                             |\n| node_netstat_TcpExt_SyncookiesFailed | 由于无效 SYN cookies 而失败的 TCP 连接数量。                        |\n| node_netstat_TcpExt_SyncookiesRecv | 接收到的带有 SYN cookies 的 TCP 连接数量。                               |\n| node_netstat_TcpExt_SyncookiesSent | 发送的 TCP SYN cookies 数量。                                           |\n| node_netstat_TcpExt_TCPTimeouts | TCP 超时的数量。                                                        |\n| node_netstat_Tcp_ActiveOpens    | 主动打开的 TCP 连接数量。                                                |\n| node_netstat_Tcp_CurrEstab      | 当前已建立的 TCP 连接数量。                                              |\n| node_netstat_Tcp_InErrs         | 包含错误的接收到的 TCP 段数量。                                          |\n| node_netstat_Tcp_InSegs         | 接收到的 TCP 段数量。                                                    |\n| node_netstat_Tcp_OutRsts        | 发送的带有 RST 标志的 TCP 段数量。                                       |\n| node_netstat_Tcp_OutSegs        | 发送出的 TCP 段数量。                                                    |\n| node_netstat_Tcp_PassiveOpens   | 被动打开的 TCP 连接数量。                                                |\n| node_netstat_Tcp_RetransSegs    | 重传的 TCP 段数量。                                                      |\n| node_netstat_Udp6_InDatagrams   | 接收到的 UDP6 数据报数量。                                               |\n| node_netstat_Udp6_InErrors      | 由于原因不明（非目的端口无应用程序）未能投递的 UDP6 数据报数量。         |\n| node_netstat_Udp6_NoPorts       | 接收到的目的端口无应用程序的 UDP6 数据报数量。                           |\n| node_netstat_Udp6_OutDatagrams  | 发送的 UDP6 数据报数量。                                                 |\n| node_netstat_Udp6_RcvbufErrors  | UDP6 收到的接收缓冲区错误数量。                                          |\n| node_netstat_Udp6_SndbufErrors  | UDP6 发送缓冲区错误的数量。                                              |\n| node_netstat_Udp_InDatagrams    | 接收到的 UDP 数据报数量。                                                |\n| node_netstat_Udp_InErrors       | 由于原因不明（非目的端口无应用程序）未能投递的 UDP 数据报数量。          |\n| node_netstat_Udp_NoPorts        | 接收到的目的端口无应用程序的 UDP 数据报数量。                            |\n| node_netstat_Udp_OutDatagrams   | 发送的 UDP 数据报数量。                                                  |\n| node_netstat_Udp_RcvbufErrors   | UDP 收到的接收缓冲区错误数量。                                           |\n| node_netstat_Udp_SndbufErrors   | UDP 发送缓冲区错误的数量。                                               |\n\n## 使用方法\n```shell\n$ ./padavan_exporter --help\nFlags:\n  --help                        Show context-sensitive help (also try\n                                --help-long and --help-man).\n  --web.listen-address=\":9100\"  Address on which to expose metrics and web\n                                interface\n  --padavan.ssh.host=\"127.0.0.1:22\"\n                                Padavan ssh host\n  --padavan.ssh.username=\"admin\"\n                                Padavan ssh username\n  --padavan.ssh.password=\"admin\"\n                                Padavan ssh password\n  --debug                       Debug mode\n```\n\n### systemd\n如果你想要通过 systemd 来管理 padavan_exporter，请参考 [这篇文章](https://blog.csdn.net/hanziyuan08/article/details/107749078) 。\n\n### Docker Compose（推荐）\n当然更好的方式是使用 Docker Compose，你可以参考本项目预置的 [docker-compose.yml](./docker-compose.yml) 文件。\n\n### Grafana 面板\n通过这个 文件 导入 Dashboard: [15978_rev3.json](./15978_rev3.json)\n\n通过这个 URL 导入 Dashboard: https://grafana.com/grafana/dashboards/15978\n\n![image](https://github.com/Bpazy/padavan_exporter/assets/9838749/d5769689-47a6-41bd-b859-d168fd19ec50)\n\n\n\n## 已知问题\n1. 当开启硬件 NAT 时，包转发不经过 CPU，网速统计数据不准确。若关闭硬件 NAT 则会导致性能下降[（参考论坛）](https://www.right.com.cn/forum/thread-4043290-1-1.html) ；\n2. Padavan 的文件系统是不可更改的（ tmpfs ），所以本程序目前运行在 ssh 方式。即需要在其他机器运行本程序，并通过 ssh 连接到 Padavan；\n\n## 支持计划\n- [ ] 当前连接设备数\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpazy%2Fpadavan_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpazy%2Fpadavan_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpazy%2Fpadavan_exporter/lists"}