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

Features/prometheus support #32

Merged
merged 46 commits into from
Sep 24, 2024
Merged

Conversation

codeperfectplus
Copy link
Owner

Change Log (Sep 19 - Sep 24, 2024)

  • Prometheus Integration:

    • Basic Prometheus endpoint created and optimized.
    • Added metrics for CPU temperature, frequency, and battery percentage.
    • Updated Prometheus for a central server and added support for monitoring multiple targets.
  • InfluxDB Support:

    • InfluxDB integration added, replacing SQLite for time-series metrics.
    • Installation scripts and InfluxDB configuration refactored.
  • UI and Graph Enhancements:

    • Improved the web page UI and graph visualizations.
    • Added experimental graphs and more line charts.
    • New features added for adding/removing targets.
    • Refactored chart creation with download and refresh buttons.
  • Authentication:

    • Basic authentication support added, with further improvements to the Prometheus configuration update function.
  • Bug Fixes and Refactoring:

    • Fixed message box display issue in setup script.
    • Refactored several scripts, including logging and API endpoints.
    • Addressed bugs related to Prometheus container updates and time interval changes.

- Refactor the `log_system_info` function to check if system info logging is enabled before scheduling the next log.
- Add a new function `is_logging_enabled` to check if system info logging is enabled in the general settings.
- Add a new function `schedule_next_log` to schedule the next logging event after a specified interval.
- Update the `log_system_info_to_db` function to also update Prometheus metrics with the latest system information.
- Add a new function `update_prometheus_metrics` to update Prometheus metrics with the latest system information.
- Add a new function `store_system_info_in_db` to store the collected system information into the database.
- Remove the unused `monitor_settings` function.

Fix memory info route and template

- Add the `dashboard_memory_usage` value to the `memory_info` dictionary in the `memory_usage` function.
- Update the `memory_info.html` template to include the `dashboard_memory` card component.

Remove unused code from Prometheus route

- Remove the unused code for collecting system metrics and updating Prometheus gauges.
@codeperfectplus codeperfectplus merged commit 9a47e88 into dev Sep 24, 2024
@codeperfectplus codeperfectplus deleted the features/prometheus_support branch September 24, 2024 14:40
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.

1 participant