Commit baa08e47 authored by Anesa Fazlagić's avatar Anesa Fazlagić Committed by Miroslav Rouča
Browse files

added prometheus for the microservices in docker

parent b7c243d0
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
global:
  scrape_interval:     15s
  evaluation_interval: 15s

# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
  - job_name: 'prometheus job'

    static_configs:
      - targets: ['localhost:9090']

  - job_name: 'metrics for electricity microservice'
    metrics_path: '/actuator/prometheus'
    scrape_interval: 5s
    static_configs:
      - targets: ['smart-energy-management-system-core-service-1:8080']
 No newline at end of file
+16 −0
Original line number Diff line number Diff line
global:
  scrape_interval:     15s
  evaluation_interval: 15s

# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
  - job_name: 'prometheus job'

    static_configs:
      - targets: ['localhost:9091']

  - job_name: 'metrics for electricity microservice'
    metrics_path: '/actuator/prometheus'
    scrape_interval: 5s
    static_configs:
      - targets: ['smart-energy-management-system-electricity-price-service-1:8088']
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -30,3 +30,4 @@ management:
    web:
      exposure:
        include: '*'
+16 −0
Original line number Diff line number Diff line
global:
  scrape_interval:     15s
  evaluation_interval: 15s

# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
  - job_name: 'prometheus job'

    static_configs:
      - targets: ['localhost:9092']

  - job_name: 'metrics for electricity microservice'
    metrics_path: '/actuator/prometheus'
    scrape_interval: 5s
    static_configs:
      - targets: ['smart-energy-management-system-email-service-1:8081']
 No newline at end of file
+15 −0
Original line number Diff line number Diff line
global:
  scrape_interval:     15s

# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
  - job_name: 'prometheus job'

    static_configs:
      - targets: ['localhost:9093']

  - job_name: 'metrics for electricity microservice'
    metrics_path: '/actuator/prometheus'
    scrape_interval: 5s
    static_configs:
      - targets: ['localhost:8090']
 No newline at end of file