Skip to content
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

luci-app-statistics: integrate collectd-mod-sqm #4181

Closed
wants to merge 2 commits into from

Conversation

jnahmias
Copy link

@jnahmias jnahmias commented Jun 16, 2020

This PR integrates the SQM collectd plugin into luci-app-statistics. It provides for both the configuration of the module, and the generation & display of the graphs from the collected data.

cc: @ldir-EDB0

This patch makes it possible to enable and configure the SQM input
plugin for collectd from the Luci front-end. It also handles the
generation of the appropriate collectd configuration for the SQM
plugin using the generic Exec plugin.

Signed-off-by: Joe Nahmias <joe@nahmias.net>
Now that we can configure the SQM collectd plugin to run, this commit
backports the SQM & SQM-Cake graph creation and display code from
[master 9c4f345], while translating the javascript code to lua.

Signed-off-by: Joe Nahmias <joe@nahmias.net>
@jnahmias
Copy link
Author

jnahmias commented Jun 16, 2020

One note for testing: you will have to create a dummy sqm module so that the template code doesn't skip this plugin. For example, you can run: touch /usr/lib/collectd/sqm.so.
Hopefully, this will be added to the collectd-mod-sqm package in the near future, see
openwrt/packages#12546.

@jnahmias
Copy link
Author

jnahmias commented Sep 2, 2020

Bump - do you have any feedback on this PR? is a review needed by anyone in particular? is there anything else I need to do in order for this to be merged?
cc: @hnyman @ldir-EDB0 @feckert

@feckert
Copy link
Member

feckert commented Sep 3, 2020

The way I see it you want to add this to the openwrt-19.07 branch. But this branch is already released, so only bug fixes should be added here. Especially since the hack with the so file is not good.
This is already integrated in the master branch. The next release is in the pip so why not use the master?

@hnyman
Copy link
Contributor

hnyman commented Sep 3, 2020

The change required in collectd ("dummy sqm module") to make the LuCI stats menus work in 19.07 is the nasty part. That is the reason why I abandoned my own attempt earlier.

I say the NAK for 19.07. Great that you got it for yourself, but lets leave the hack out of 19.07.

@hnyman hnyman closed this Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release/19.07 (end-of-support) issue on branch 19.07
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants