diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2023-02-02 08:44:51 +0000 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2023-02-02 10:11:29 +0000 |
commit | c6eb02ae0f1b9b69a248621e68dbc7a481ce95b7 (patch) | |
tree | 070fbbc0685ff2d9dab5a94c9c5bf11d272ca721 /csit/docker-compose-all.yml | |
parent | 0700486a08b2bc08589f7e6b0be8338d6bbb4efa (diff) |
Add configurations to run SLAs validations on CSITs
Issue-ID: POLICY-4531
Change-Id: Idf69fe888828fabd4ec0cd3c18fea7aff96caac8
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit/docker-compose-all.yml')
-rw-r--r-- | csit/docker-compose-all.yml | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/csit/docker-compose-all.yml b/csit/docker-compose-all.yml index e64ac8a9..38a5de51 100644 --- a/csit/docker-compose-all.yml +++ b/csit/docker-compose-all.yml @@ -2,7 +2,7 @@ # ===========LICENSE_START==================================================== # Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved. # Modifications Copyright (C) 2021 Bell Canada. All rights reserved. -# Modification Copyright 2021-2022 Nordix Foundation. +# Modification Copyright 2021-2023 Nordix Foundation. # ============================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -365,3 +365,39 @@ services: -jar ./policy-clamp-backend.jar --spring.config.name=ClampBackend --spring.config.location=/opt/policy/clamp/config/ClampBackend.properties + prometheus: + image: prom/prometheus:v2.32.1 + container_name: prometheus + hostname: prometheus + ports: + - 30259:9090 + volumes: + - ./metrics/prometheus.yml:/etc/prometheus/prometheus.yml + grafana: + image: grafana/grafana-oss:8.3.4 + container_name: grafana + depends_on: + - prometheus + hostname: grafana + ports: + - 30269:3000 + volumes: + - ./metrics/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml + - ./metrics/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml + - ./metrics/dashboards:/var/lib/grafana/dashboards + node-exporter: + image: prom/node-exporter:latest + container_name: node-exporter + restart: unless-stopped + volumes: + - /proc:/host/proc:ro + - /sys:/host/sys:ro + - /:/rootfs:ro + command: + - '--path.procfs=/host/proc' + - '--path.rootfs=/rootfs' + - '--path.sysfs=/host/sys' + - '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)' + expose: + - 9100 + |