-
Notifications
You must be signed in to change notification settings - Fork 95
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
Jobs and resources charts in dashboard page #378
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Increase RAM size and cores on emulated nodes - Enable metrics on tiny and emulator - Set select/cons_tres on emulator - Define a partition with DefMemPerCPU on tiny - Adopt new FireHPC syntax to define partition parameters - Rename slurm_partitions > node→nodes to reflect latest FireHPC expectations.
Create SSH tunnel to request metrics on prometheus running on emulated clusters in development environment, except on pocket cluster to test a cluster without metrics.
rezib
force-pushed
the
pr/feat-275
branch
6 times, most recently
from
November 7, 2024 15:58
7aebd56
to
f70729e
Compare
Closed
Add a boolean to indicate if metrics feature is enabled in agent /info endpoint, in complement of the cluster and infrastructure names.
Return boolean metrics feature flag of every clusters in gateway /clusters endpoint.
Manage query parameters forwarded to agent more generically in request_agent() instead of specifically in racksdb view.
This subdirectory will also hold all other upcoming metrics related modules.
Add dependency on charts.js and luxon adapter and draw charts with timeseries metrics.
Add possibility to query metrics from Prometheus in agent. This commit introduces slurmweb.metrics.db module with SlurmwebMetricsDB class designed to query nodes, cores and jobs metrics, with various range and resolution in PromQL (Prometheus Query Language) from a Prometheus database. This class is instanciated in agent application when metrics feature is enabled, its method are called by metrics view, accessible through /v<version>/metrics/<metric> API endpoint. Note that SlurmwebAppAgent.metrics attribute is renamed metrics_collector to avoid name conflict with new metrics_db attribute.
Proxy metrics requests to agent through /api/agents/<cluster>/metrics/<metric> enpoint.
Display charts of resources (nodes/cores) status and jobs queue in dashboard page based on metrics from Prometheus, when metrics feature is enabled. fix #275
Set jest-canvas-mock as a development dependency and use it to setup vitest to mock canvas element in NodeJS when running unit tests.
mockClusterDataPoller definition has been moved in common module for more factorization between tests.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tasks to finish this feature: