nemo_curator.metrics.utils
Module Contents
Functions
API
Extract all file paths from all file_sd_configs entries in the prometheus config.
Check if a process is running by reading its PID from a file and verifying it’s alive.
Resolve the metrics directory, defaulting to DEFAULT_NEMO_CURATOR_METRICS_PATH.
Generate and write Ray’s default Grafana dashboards to the dashboards directory.
Add the ray prometheus metrics service discovery to the prometheus config.
Download the prometheus tarball and extract it to the metrics directory.
Download the grafana tarball and extract it to the metrics directory.
Get the port number that Prometheus is running on by reading the port file.
Check if Grafana is currently running for this metrics instance.
Check if Prometheus is currently running for this metrics instance.
Launch the grafana server.
Remove the ray prometheus metrics service discovery from the prometheus config.
Run the prometheus server.
Write the grafana configs to the grafana directory.