From d49d236300f9e6fde3390329e978dba176d7a226 Mon Sep 17 00:00:00 2001 From: Eman Elsabban Date: Wed, 20 Mar 2024 07:21:10 -0700 Subject: [PATCH] Editing some of the messages from previous prs --- dev/config/MASTER.yaml | 2 +- requirements-minimal.txt | 2 +- tron/prom_metrics.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dev/config/MASTER.yaml b/dev/config/MASTER.yaml index 46b2dbbe2..a973a4dd1 100755 --- a/dev/config/MASTER.yaml +++ b/dev/config/MASTER.yaml @@ -1,4 +1,4 @@ -# Please visit for a guide on how to setup Tron for local development +# Please visit y/tron-development for a guide on how to setup Tron for local development state_persistence: name: "tron_state" table_name: "tmp-tron-state" diff --git a/requirements-minimal.txt b/requirements-minimal.txt index 71bbdd433..dc9bfb9f1 100644 --- a/requirements-minimal.txt +++ b/requirements-minimal.txt @@ -10,7 +10,7 @@ ipython Jinja2>=3.1.2 lockfile moto -prometheus-client==0.20.0 +prometheus-client psutil py-bcrypt pyasn1 diff --git a/tron/prom_metrics.py b/tron/prom_metrics.py index ae7310fa7..4a11bb8fd 100644 --- a/tron/prom_metrics.py +++ b/tron/prom_metrics.py @@ -1,6 +1,6 @@ from prometheus_client import Gauge -tron_cpu_gauge = Gauge("tron_k8s_cpus", "Measuring CPU for tron jobs on K8s") -tron_memory_gauge = Gauge("tron_k8s_mem", "Measuring memory for tron jobs on K8s") -tron_disk_gauge = Gauge("tron_k8s_disk", "Measuring disk for tron jobs on K8s") +tron_cpu_gauge = Gauge("tron_k8s_cpus", "Total number of CPUs allocated to Tron-launched containers") +tron_memory_gauge = Gauge("tron_k8s_mem", "Total amount of memory allocated to Tron-launched containers (in megabytes)") +tron_disk_gauge = Gauge("tron_k8s_disk", "Total amount of disk allocated to Tron-launched containers (in megabytes)")