This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 083e9140a1 HDDS-10433. Add Prometheus scrape target for Datanodes in 
Compose v2 (#6288)
083e9140a1 is described below

commit 083e9140a17d1572a9b42c0e6740f15e2317e187
Author: Ritesh H Shukla <[email protected]>
AuthorDate: Wed Feb 28 14:15:37 2024 -0800

    HDDS-10433. Add Prometheus scrape target for Datanodes in Compose v2 (#6288)
---
 .../dist/src/main/compose/ozone/prometheus.yml     | 24 ++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/hadoop-ozone/dist/src/main/compose/ozone/prometheus.yml 
b/hadoop-ozone/dist/src/main/compose/ozone/prometheus.yml
index 4e512201d2..a88c30d57f 100644
--- a/hadoop-ozone/dist/src/main/compose/ozone/prometheus.yml
+++ b/hadoop-ozone/dist/src/main/compose/ozone/prometheus.yml
@@ -14,8 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 global:
-  scrape_interval:     15s # By default, scrape targets every 15 seconds.
-
+  scrape_interval: 15s # By default, scrape targets every 15 seconds.
 scrape_configs:
   - job_name: ozone
     metrics_path: /prom
@@ -32,7 +31,9 @@ scrape_configs:
         - "s3g:9878"
        labels:
          component: s3g
-     - targets:
+     - targets: # During compose bring up the number of datanodes can be 
specific, adding 10 nodes to account for that.
+        # Duplicate datanodes are specified here to account for compose v1 vs 
v2 differences.
+        # compose v1
         - "ozone_datanode_1:9882"
         - "ozone_datanode_2:9882"
         - "ozone_datanode_3:9882"
@@ -43,5 +44,20 @@ scrape_configs:
         - "ozone_datanode_8:9882"
         - "ozone_datanode_9:9882"
         - "ozone_datanode_10:9882"
+        # compose v2
+        - "ozone-datanode-1:9882"
+        - "ozone-datanode-2:9882"
+        - "ozone-datanode-3:9882"
+        - "ozone-datanode-4:9882"
+        - "ozone-datanode-5:9882"
+        - "ozone-datanode-6:9882"
+        - "ozone-datanode-7:9882"
+        - "ozone-datanode-8:9882"
+        - "ozone-datanode-9:9882"
+        - "ozone-datanode-10:9882"
+       labels:
+         component: datanode
+     - targets:
+         - "recon:9888"
        labels:
-         component: datanode
\ No newline at end of file
+         component: recon
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to