mirror of https://github.com/milvus-io/milvus.git
Updated Monitoring and Alerting (markdown)
parent
7f1a9831f5
commit
b54c9cc923
|
@ -27,7 +27,7 @@ The ServiceMonitor Custom Resource Definition (CRD) enables you to declaratively
|
||||||
|
|
||||||
The following image illustrates Prometheus workflow.
|
The following image illustrates Prometheus workflow.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
|
@ -99,16 +99,16 @@ Download and import Milvus dashboard from the JSON file.
|
||||||
wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/monitor/grafana/milvus-dashboard.json
|
wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/monitor/grafana/milvus-dashboard.json
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### 2. View metrics
|
### 2. View metrics
|
||||||
|
|
||||||
Select the Milvus instance you want to monitor. Then you can see the Milvus components panel.
|
Select the Milvus instance you want to monitor. Then you can see the Milvus components panel.
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
# Create an Alert for Milvus Services
|
# Create an Alert for Milvus Services
|
||||||
|
|
||||||
|
@ -145,26 +145,26 @@ This tutorial assumes that you have Grafana installed and configured. If not, we
|
||||||
### 1. Add a new query
|
### 1. Add a new query
|
||||||
To add an alert for the memory usage of Milvus components, edit the Memory panel. Then, add a new query with the metric: `process_resident_memory_bytes{app_kubernetes_io_name="milvus", app_kubernetes_io_instance=~"my-release", namespace="default"}`
|
To add an alert for the memory usage of Milvus components, edit the Memory panel. Then, add a new query with the metric: `process_resident_memory_bytes{app_kubernetes_io_name="milvus", app_kubernetes_io_instance=~"my-release", namespace="default"}`
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### 2. Save the dashboard
|
### 2. Save the dashboard
|
||||||
Save the dashboard, and wait for a few minutes to see the alert.
|
Save the dashboard, and wait for a few minutes to see the alert.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Grafana alert query does not support template variables. Therefore, you should add a second query without any template variables in the labels. The second query is named as "A" by default. You can rename it by clicking on the dropdown.
|
Grafana alert query does not support template variables. Therefore, you should add a second query without any template variables in the labels. The second query is named as "A" by default. You can rename it by clicking on the dropdown.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### 3. Add alert notifications
|
### 3. Add alert notifications
|
||||||
To receive alert notifications, add a "notification channel". Then, specify the channel in the field "Send to".
|
To receive alert notifications, add a "notification channel". Then, specify the channel in the field "Send to".
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
If the alert is successfully created and triggered, you will receive the notification as shown in the screenshot below.
|
If the alert is successfully created and triggered, you will receive the notification as shown in the screenshot below.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
To delete an alert, go to the "Alert" panel and click the delete button.
|
To delete an alert, go to the "Alert" panel and click the delete button.
|
||||||
|
|
||||||

|

|
Loading…
Reference in New Issue