Skip to content

Commit 7669a3e

Browse files
committed
updated
1 parent 7a192cd commit 7669a3e

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

docs/en/guides/20-cloud/20-manage/03-metrics.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,39 @@
11
---
22
title: Tracking Metrics with Prometheus
33
---
4+
import StepsWrap from '@site/src/components/StepsWrap';
5+
import StepContent from '@site/src/components/Steps/step-content';
46

57
[Prometheus](https://prometheus.io/) offers a robust solution for real-time monitoring, empowering you to track critical metrics and maintain system stability effectively. This topic guides you through the steps to integrate Prometheus with Databend Cloud and provides an overview of the available metrics.
68

79
## Integrating with Prometheus
810

911
Follow these steps to set up a Prometheus instance with Docker and integrate it with Databend Cloud:
1012

11-
### Step 1: Enable Tenant Metrics
13+
<StepsWrap>
14+
<StepContent number="1">
15+
16+
### Enable Tenant Metrics
1217

1318
To start tracking metrics, ensure that metrics are enabled for your Databend Cloud tenant. To enable this feature, submit a support ticket in Databend Cloud by navigating to **Support** > **Create New Ticket** and requesting metrics activation for your tenant.
1419

15-
### Step 2: Prepare a SQL User
20+
</StepContent>
21+
<StepContent number="2">
22+
23+
### Prepare a SQL User
1624

1725
Create a dedicated SQL user in Databend Cloud for Prometheus to access metrics. For example, you can create a SQL user named `metrics` with the password `metrics_password` using the following SQL statement:
1826

1927
```sql
2028
CREATE USER metrics IDENTIFIED BY 'metrics_password';
2129
```
2230

23-
### Step 3: Start Prometheus Using Docker
31+
</StepContent>
32+
<StepContent number="3">
2433

25-
1. On your local machine, create a **prometheus.yml** file to configure Prometheus for scraping metrics from Databend Cloud. Use the following template:
34+
### Start Prometheus Using Docker
35+
36+
1. On your local machine, create a file named **prometheus.yml** to configure Prometheus for scraping metrics from Databend Cloud. Use the following template:
2637

2738
```yaml title='prometheus.yml'
2839
scrape_configs:
@@ -70,6 +81,9 @@ You're all set! You can now query your tenant metrics directly from Prometheus.
7081

7182
![alt text](../../../../../static/img/documents/warehouses/metrics-2.png)
7283

84+
</StepContent>
85+
</StepsWrap>
86+
7387
## Available Metrics List
7488

7589
Please note that all metrics are prefixed with `databend_cloud_`.
670 Bytes
Loading
126 KB
Loading

0 commit comments

Comments
 (0)