From 7a596695b408f30482e73003b81bce0dacc63bec Mon Sep 17 00:00:00 2001 From: Noel Kwan Date: Mon, 6 May 2024 21:29:54 +0800 Subject: [PATCH 1/2] add monitoring --- standalone/grafana.ini | 11 +++++++++++ standalone/prometheus.yml | 41 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 standalone/grafana.ini create mode 100644 standalone/prometheus.yml diff --git a/standalone/grafana.ini b/standalone/grafana.ini new file mode 100644 index 000000000000..d387a15abb31 --- /dev/null +++ b/standalone/grafana.ini @@ -0,0 +1,11 @@ +# --- THIS FILE IS AUTO GENERATED BY RISEDEV --- +[server] +http_addr = 0.0.0.0 +http_port = 3001 + +[users] +default_theme = light + +[auth.anonymous] +enabled = true +org_role = Admin \ No newline at end of file diff --git a/standalone/prometheus.yml b/standalone/prometheus.yml new file mode 100644 index 000000000000..340e7d8a76a2 --- /dev/null +++ b/standalone/prometheus.yml @@ -0,0 +1,41 @@ +# --- THIS FILE IS AUTO GENERATED BY RISEDEV --- +global: + scrape_interval: 15s + evaluation_interval: 60s + external_labels: + rw_cluster: 20240506-185437 + + +scrape_configs: + - job_name: prometheus + static_configs: + - targets: ["127.0.0.1:9500"] + + - job_name: compute + static_configs: + - targets: ["127.0.0.1:1222"] + + - job_name: meta + static_configs: + - targets: ["127.0.0.1:1250"] + + - job_name: minio + metrics_path: /minio/v2/metrics/cluster + static_configs: + - targets: ["127.0.0.1:9301"] + + - job_name: compactor + static_configs: + - targets: ["127.0.0.1:1260"] + + - job_name: etcd + static_configs: + - targets: ["127.0.0.1:2379"] + + - job_name: frontend + static_configs: + - targets: ["127.0.0.1:2222"] + + - job_name: redpanda + static_configs: + - targets: [] From 2e4d78e677729cd104e6953c304cff59adc0bc22 Mon Sep 17 00:00:00 2001 From: Noel Kwan Date: Mon, 6 May 2024 21:36:14 +0800 Subject: [PATCH 2/2] clean --- standalone/grafana.ini | 1 - standalone/prometheus.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/standalone/grafana.ini b/standalone/grafana.ini index d387a15abb31..c05dee52e831 100644 --- a/standalone/grafana.ini +++ b/standalone/grafana.ini @@ -1,4 +1,3 @@ -# --- THIS FILE IS AUTO GENERATED BY RISEDEV --- [server] http_addr = 0.0.0.0 http_port = 3001 diff --git a/standalone/prometheus.yml b/standalone/prometheus.yml index 340e7d8a76a2..b35450351550 100644 --- a/standalone/prometheus.yml +++ b/standalone/prometheus.yml @@ -1,4 +1,3 @@ -# --- THIS FILE IS AUTO GENERATED BY RISEDEV --- global: scrape_interval: 15s evaluation_interval: 60s