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

[4.x] Add metrics options and dark mode config #795

Merged
merged 5 commits into from
Mar 18, 2020

Conversation

bert-w
Copy link
Contributor

@bert-w bert-w commented Mar 13, 2020

I wanted to have some more control over how the Metrics graphs were shown. It turns out only the last 24 snapshots are saved, so when creating a snapshot every 5 minutes that would result in (just) 2 hours of data. With the new metrics.trim_snapshots.job option, you are able to keep an x amount of snapshots, thus increasing the amount of points on the graph and showing you a bigger timespan.

The following screenshots show the new metrics, with about 200 plot points (which is working on my machine without performance impact). Notice changed colors and the new date format.
dark
light

In addition, I added the 'theme' => 'light' config, because I think this file should be the place to define such options (not in the service provider).

Feedback is very welcome.

@driesvints driesvints changed the title Add metrics options and dark mode config (2) [4.x] Add metrics options and dark mode config Mar 16, 2020
@taylorotwell taylorotwell merged commit f3b5fc2 into laravel:4.x Mar 18, 2020
@bert-w bert-w deleted the metrics-options branch March 20, 2020 13:16
@driesvints
Copy link
Member

This PR kind of broke how Horizon::night() works, which can't force night mode anymore.

@driesvints
Copy link
Member

See #818

@driesvints driesvints mentioned this pull request Apr 2, 2020
@bert-w
Copy link
Contributor Author

bert-w commented Apr 2, 2020

Hmm so the Horizon.php class is probably constructed after the Horizon::night() call has taken place.

@themsaid
Copy link
Member

themsaid commented Apr 2, 2020

Hey @bert-w

I've reverted that part in your PR. Please submit a new PR that works if you want.

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

Successfully merging this pull request may close these issues.

4 participants