From 2a4ebc5b08002ba1e170ddae86ef24ae87f0a749 Mon Sep 17 00:00:00 2001 From: Rafael Vasquez Date: Wed, 19 Apr 2023 12:30:43 -0400 Subject: [PATCH] Refactors and updates doc Signed-off-by: Rafael Vasquez --- config/{grafana => dashboard}/ModelMeshMetricsDashboard.json | 0 config/{grafana => prometheus}/servicemonitor.yaml | 0 docs/monitoring.md | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename config/{grafana => dashboard}/ModelMeshMetricsDashboard.json (100%) rename config/{grafana => prometheus}/servicemonitor.yaml (100%) diff --git a/config/grafana/ModelMeshMetricsDashboard.json b/config/dashboard/ModelMeshMetricsDashboard.json similarity index 100% rename from config/grafana/ModelMeshMetricsDashboard.json rename to config/dashboard/ModelMeshMetricsDashboard.json diff --git a/config/grafana/servicemonitor.yaml b/config/prometheus/servicemonitor.yaml similarity index 100% rename from config/grafana/servicemonitor.yaml rename to config/prometheus/servicemonitor.yaml diff --git a/docs/monitoring.md b/docs/monitoring.md index 6508238b..9876794e 100644 --- a/docs/monitoring.md +++ b/docs/monitoring.md @@ -144,7 +144,7 @@ Other configurable Prometheus specification fields are listed [here](https://git [ServiceMonitor](https://prometheus-operator.dev/docs/operator/design/#servicemonitor) is a custom resource definition provided by Prometheus Operator and is leveraged by ModelMesh for monitoring pods through the `modelmesh-serving` service. -Create a `ServiceMonitor` to monitor the `modelmesh-serving` service using the definition found [here](../config/grafana/servicemonitor.yaml). +Create a `ServiceMonitor` to monitor the `modelmesh-serving` service using the definition found [here](../config/prometheus/servicemonitor.yaml). ```bash kubectl apply -f servicemonitor.yaml @@ -159,7 +159,7 @@ If you have an alternative solution to collect the metrics, you can disable the ## Import the Grafana Dashboard -To access [Grafana](https://github.com/grafana/grafana) and visualize the Prometheus-monitored data, follow the instructions [here](https://github.com/prometheus-operator/kube-prometheus/blob/main/docs/access-ui.md#grafana) and import the [pre-built dashboard](/config/grafana/ModelMeshMetricsDashboard.json) we provide using [this guide](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/#import-a-dashboard). +To access [Grafana](https://github.com/grafana/grafana) and visualize the Prometheus-monitored data, follow the instructions [here](https://github.com/prometheus-operator/kube-prometheus/blob/main/docs/access-ui.md#grafana) and import the [pre-built dashboard](/config/dashboard/ModelMeshMetricsDashboard.json) we provide using [this guide](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/#import-a-dashboard). ## Troubleshooting