Commit Graph

31 Commits

Author SHA1 Message Date
263379c072 Update dashboard metrics and enhance CPU statistics visualization
Some checks failed
CI / ci (push) Has been cancelled
- Expanded mock data to include additional host labels and updated CPU current and projected values for better representation.
- Modified JavaScript to conditionally display projected CPU statistics and standard deviation, improving user experience.
- Refactored chart configuration to dynamically handle datasets based on the presence of projected data.
- Updated HTML to include a new block for displaying standard deviation, enhancing clarity in CPU metrics presentation.
2026-02-12 13:56:05 +03:00
6a27fecb13 Add dashboard statistics module and refactor views for metrics handling
All checks were successful
CI / ci (push) Successful in 14s
- Introduced a new `stats.py` module to encapsulate dashboard statistics building and cache key constants.
- Refactored `views.py` to utilize the new `build_stats` function for constructing metrics context, improving code organization and readability.
- Updated Prometheus query handling to streamline metrics fetching with a new `fetch_dashboard_metrics` function.
- Enhanced test cases to reflect changes in metrics fetching and context building, ensuring accurate functionality.
- Added new HTML templates for displaying detailed resource allocation and flavor statistics on the dashboard.
2026-02-07 18:39:28 +03:00
9fa0a78eb6 Enhance Docker build workflow with registry token validation
All checks were successful
CI / ci (push) Successful in 15s
CI / ci (pull_request) Successful in 14s
- Added a check in docker-build.yml to ensure the REGISTRY_TOKEN is set before attempting to log in to the Gitea Container Registry.
- Included an error message to guide users in adding the necessary secret for successful authentication.
2026-02-07 18:14:44 +03:00
7347b4c042 Update README.md for improved clarity and structure
All checks were successful
CI / ci (push) Successful in 14s
- Revised project description to better highlight the purpose and features of the OpenStack Watcher dashboard.
- Added a table of contents for easier navigation.
- Expanded the features section to detail capabilities such as cluster overview, CPU & RAM usage, VM statistics, and audit recommendations.
- Clarified instructions regarding the `clouds.yaml` configuration file and its security implications.
- Improved formatting and consistency throughout the document.
2026-02-07 18:13:38 +03:00
84cd602cea Update Docker build workflow to enforce lowercase repository names
All checks were successful
CI / ci (push) Successful in 14s
CI / ci (pull_request) Successful in 14s
- Modified the Docker build process in docker-build.yml to convert the repository name to lowercase, ensuring consistent image naming conventions.
- This change helps prevent potential issues with case sensitivity in image tags when pushing to the registry.
2026-02-07 18:08:44 +03:00
0a3c0ac54d Update CI workflow to streamline security checks
All checks were successful
CI / ci (push) Successful in 14s
CI / ci (pull_request) Successful in 14s
- Removed the Safety security check from the CI workflow in ci.yml to simplify the process.
- Retained the installation of Ruff and Bandit for linting and security checks, ensuring continued code quality and security assessment.
2026-02-07 18:05:40 +03:00
876bfa9d2e Update Prometheus query function to include timeout parameter
Some checks failed
CI / ci (push) Has been cancelled
- Added a timeout parameter to the requests.get call in the query_prometheus function to enhance reliability and prevent hanging requests.
2026-02-07 18:03:55 +03:00
2a0e0c216a Refactor code for consistency and readability
Some checks failed
CI / ci (push) Failing after 14s
- Standardized string quotes across multiple files to use double quotes for consistency.
- Improved formatting of JSON dumps in mock data for better readability.
- Enhanced the structure of various functions and data definitions for clarity.
- Updated test cases to reflect changes in data structure and ensure accuracy.
2026-02-07 18:01:49 +03:00
02b38a25eb Refactor CI workflows and update Docker build process
Some checks failed
CI / ci (push) Failing after 1m5s
- Removed caching step for pip in ci.yml to streamline dependency installation.
- Added a blank line in docker-build.yml for improved readability and organization of job steps.
2026-02-07 17:57:11 +03:00
1baa6e7e6b Add initial project configuration and CI/CD workflows
Some checks failed
CI / ci (push) Has been cancelled
- Created pyproject.toml to define project metadata and dependencies for the watcher-visio dashboard.
- Added CI workflow in ci.yml for automated testing, linting, and security checks on push and pull request events.
- Introduced docker-build.yml for building and releasing Docker images, including steps for tagging, logging in to the registry, and generating release notes.
2026-02-07 17:49:58 +03:00
d61ea6eef8 Enhance index.html and JavaScript for improved flavor statistics display
- Updated index.html to include additional flavor statistics with dynamic data binding for second and third common flavors.
- Refactored JavaScript functions to handle multiple elements for flavor statistics, ensuring accurate updates and removal of loading animations.
- Improved user experience by providing clearer visual representation of flavor data on the dashboard.
2026-02-07 17:21:28 +03:00
fd03c22042 Add source status API and enhance dashboard with data source checks
- Introduced a new API endpoint `/api/source-status/` to return the status of Prometheus and OpenStack data sources.
- Implemented lightweight health check functions for both Prometheus and OpenStack.
- Updated the dashboard template to display the status of data sources dynamically.
- Added tests for the new API endpoint to ensure correct functionality and response handling.
- Configured a cache timeout for source status checks to improve performance.
2026-02-07 17:12:25 +03:00
917a7758bc Add DM Sans font integration and enhance dashboard context
- Added DM Sans font to the project, including multiple weights and styles for improved typography.
- Updated package.json and package-lock.json to include @fontsource/dm-sans dependency.
- Enhanced dashboard context to include current cluster CPU state, integrating new data into the context and API responses.
- Updated relevant templates and JavaScript to utilize the new current cluster data for better visualization and user experience.
2026-02-07 16:51:24 +03:00
0ecad9bd72 Refactor Dockerfile and enhance CSS for improved theme support
- Updated Dockerfile to standardize environment variable syntax and improve readability.
- Added new CSS variables for chart grid color and enhanced dark theme contrast for CPU chart statistics.
- Modified index.html to utilize new CSS variables for better theme adaptability and improved chart rendering.
2026-02-07 14:42:59 +03:00
642f2d2908 Refactor CPU distribution visualization in index.html
- Consolidated current and projected CPU distribution charts into a single chart for improved clarity.
- Updated chart IDs and labels to reflect the new combined data representation.
- Adjusted JavaScript logic to handle the new chart structure and updated statistics calculations accordingly.
2026-02-07 14:13:44 +03:00
9f3946a0bc Add PDF export functionality and favicon support
- Introduced a new script for exporting the dashboard as a PDF using html2canvas and jsPDF.
- Added a favicon.ico file and linked it in the base template.
- Updated the base template to include the new PDF export script and modified the button for PDF export functionality.
- Enhanced the index template to include an ID for the dashboard content for PDF generation.
2026-02-07 13:46:50 +03:00
6836e0535b Enhance README.md with comprehensive project documentation, including setup instructions, environment variable configuration, local and Docker running guidelines, API endpoints, and repository structure. This update aims to improve clarity for new users and contributors. 2026-02-07 11:05:04 +03:00
cb8ace803b Update Docker configuration and entrypoint script. Enhance .dockerignore to include additional files and directories for better management. Remove static file collection from entrypoint and add it to the Dockerfile build process for improved efficiency. 2026-02-07 11:02:05 +03:00
a6fa8325cd Update Docker configuration to change server port from 8000 to 8080 across Dockerfile and docker-compose files. Enhance CSS for improved dark theme contrast and readability with new color variables and styles. 2026-02-07 10:34:06 +03:00
51b02eb6a4 Refactor Dockerfile for improved build process, add CMD for running server, and update requirements.txt for consistency. Adjust URL patterns in dashboard and enhance base template with theme toggle functionality and print support. 2026-02-07 10:23:23 +03:00
48c9e4ddeb Implement gradient themes in CSS, enhance print functionality, and update card styles in templates. Add a PDF save button and improve layout for better accessibility and user experience. 2026-02-06 19:19:21 +03:00
38163210d6 Enhance UI with new font integration, improved accessibility focus styles, and refined card shadows for light theme. Update main content area background and adjust layout spacing in index template. 2026-02-06 18:54:29 +03:00
0151b9a01f Add dark theme support in CSS and fix neutral color variable in HTML template 2026-02-06 18:33:44 +03:00
30c08d497f Add API endpoints for stats and audits, implement data collection functions, and enhance index view with skeleton context 2026-02-06 17:21:00 +03:00
e3a9500352 Add tests for audits and flavor utilities, update .gitignore, and enhance CPU data handling 2026-02-06 16:29:34 +03:00
57a2933f28 Refactor Docker setup and add mock data support
- Updated .dockerignore and .gitignore for better file management.
- Introduced .env.example for environment variable configuration.
- Added docker-compose.dev.yml for development with mock data and live reload.
- Enhanced Dockerfile to include necessary dependencies and entrypoint script.
- Created mock_data.py to provide sample data for testing without OpenStack/Prometheus.
- Added unit tests for template filters in dashboard.
- Cleaned up various files for consistency and improved readability.
2026-02-06 16:12:21 +03:00
d197d1e5e2 finished all audits, first rc 2025-12-05 16:06:14 +03:00
e71fc95a21 Dockerfile changes 2025-12-03 12:05:00 +03:00
4e37cd1ef8 Stitching things up 2025-12-03 12:04:48 +03:00
79bad39bd9 Base design 2025-12-01 15:30:36 +03:00
a8473eec11 first commit 2025-11-28 00:20:23 +03:00