-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prometheus-node-exporter-lua: hostad ubus stats #13606
prometheus-node-exporter-lua: hostad ubus stats #13606
Conversation
a4f0e88
to
06201c5
Compare
...ometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua
Outdated
Show resolved
Hide resolved
...ometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua
Show resolved
Hide resolved
Ah wait. There is to much code. |
06201c5
to
fd96829
Compare
Merge? ;) |
Do you want to look at lua bitop first ? |
It should be s/bit32/bit/g and.... done. You can even keep calling the local bit32 and just change the require to local bit32 = require "bit" and you should be good to go. |
fd96829
to
0299d10
Compare
Wait. Run-testing gives me |
If I remove my plugin, it will have that SIGKILL issue, too. So this is a bug that is not caused by my plugin. So merge. ;) |
edit: aside from the metric stuff, the other warnings seem legit. |
The warnings are not legitmate, as they're making assumptions that this is a internal project that should be bound by internal style guidelines. It's purely an implementation detail that this package has the code within the package. Style of this package should be completely in the hands of the package maintainers. |
@neheb is there a warning level instead of pass or fail for the linter ? |
That's a question for @aparcar . I've suggested an allow to fail option for the linter. |
Whups. Sry. I thought this would only be the metric warning. I will reduce line size. I have to learn to read more carefully. ;) |
87662be
to
c52f61c
Compare
There is already the hostapd_stations exporter, which uses hostapd-utils (more precisely hostapd-cli) to get client statistics. However, the ubus interface is permanently integrated under hostapd in OpenWrt. So this exporter needs one dependency less. For now it exports mainly the rrm statistics. Many people are interested in what your device supports. The exporter provides information about the radio-resource-managment extensions. Signed-off-by: Nick Hainke <[email protected]>
c52f61c
to
d34d788
Compare
@neheb Fixed the lint warnings. ;) Merge? |
LGTM |
I thought I did this. :/ |
There is already the hostapd_stations exporter, which uses hostapd-utils (more precisely hostapd-cli) to get client statistics. However, the ubus interface is permanently integrated under hostapd in OpenWrt. So this exporter needs one dependency less.
For now it exports mainly the rrm statistics. Many people are interested in what your device supports. The exporter provides information about the radio-resource-managment extensions.
Maintainer: @champtar
Compile tested: (put here arch, model, OpenWrt version)
Run tested: r14549+2-036221ce5a89