Skip to content

Commit

Permalink
docs: simplify example
Browse files Browse the repository at this point in the history
  • Loading branch information
evenyag committed Aug 13, 2024
1 parent d03af66 commit 48d89c0
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Please ensure the following configuration before importing the dashboard into Gr

__1. Prometheus scrape config__

Assign `greptime_pod` label to each host target. We use this label to identify each node instance.
Configure Prometheus to scrape the cluster.

```yml
# example config
Expand All @@ -34,27 +34,15 @@ Assign `greptime_pod` label to each host target. We use this label to identify e
scrape_configs:
- job_name: metasrv
static_configs:
- targets: ['<ip>:<port>']
labels:
greptime_pod: metasrv
- targets: ['<metasrv-ip>:<port>']

- job_name: datanode
static_configs:
- targets: ['<ip>:<port>']
labels:
greptime_pod: datanode1
- targets: ['<ip>:<port>']
labels:
greptime_pod: datanode2
- targets: ['<ip>:<port>']
labels:
greptime_pod: datanode3
- targets: ['<datanode0-ip>:<port>', '<datanode1-ip>:<port>', '<datanode2-ip>:<port>']

- job_name: frontend
static_configs:
- targets: ['<ip>:<port>']
labels:
greptime_pod: frontend
- targets: ['<frontend-ip>:<port>']
```
__2. Grafana config__
Expand Down

0 comments on commit 48d89c0

Please sign in to comment.