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

add generic stats graph munging support and make uptime display as days again #15097

Merged
merged 5 commits into from Aug 2, 2023

Conversation

VVelox
Copy link
Contributor

@VVelox VVelox commented Jun 11, 2023

This adds in munging to the generic stats graph.

Also revert uptime back to being days again and make it able to optionally show in graphs as either days or seconds via a new config def.

fixes #15091

DO NOT DELETE THE UNDERLYING TEXT

Please note

Please read this information carefully. You can run ./lnms dev:check to check your code before submitting.

  • Have you followed our code guidelines?
  • If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.
  • If my Pull Request makes discovery/polling/yaml changes, I have added/updated test data.

Testers

If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926
After you are done testing, you can remove the changes with ./scripts/github-remove. If there are schema changes, you can ask on discord how to revert.

Copy link
Member

@murrant murrant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the option and this looks good to me.

@VVelox
Copy link
Contributor Author

VVelox commented Jun 19, 2023

Remove the option and this looks good to me.

Awesome. Done! :)

Any reason we don't want it selectable or just wanting to avoid CPU overhead for something that is not going to be commonly used?

@VVelox VVelox changed the title add generic stats graph munging support and make uptime optional between seconds and days add generic stats graph munging support and make uptime display as days again Jun 19, 2023
@murrant murrant added the Graphs label Aug 2, 2023
@murrant
Copy link
Member

murrant commented Aug 2, 2023

@VVelox added settings is the death of LibreNMS (maintainability).

Basically, hidden options end up with unused code paths which is very bad for maintainability. Whenever, I could add an option I think: Is this necessary? Was this asked for? Could a good default just be better?

@murrant murrant merged commit 7505c89 into librenms:master Aug 2, 2023
9 checks passed
TheMysteriousX pushed a commit to TheMysteriousX/librenms that referenced this pull request Aug 9, 2023
…ys again (librenms#15097)

* add munging to generic stats graph include

* add graph_uptime_days config def

* make it optionally changable now

* style fix

* remove the graph_uptime_days option
@librenms-bot
Copy link

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/23-8-0-changelog/22078/1

peejaychilds pushed a commit to peejaychilds/librenms that referenced this pull request Oct 26, 2023
…ys again (librenms#15097)

* add munging to generic stats graph include

* add graph_uptime_days config def

* make it optionally changable now

* style fix

* remove the graph_uptime_days option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uptime - unreadable chart and percentiles
3 participants