Skip to content

Commit 8b0c7b4

Browse files
authored
Merge pull request #7 from Gurram2001/1
Updated changes with ci-cd, dockerfile for monitroing
2 parents 60ec6f2 + d34599b commit 8b0c7b4

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

prometheus/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# prometheus/Dockerfile
2+
FROM prom/prometheus
3+
4+
COPY prometheus.yml /etc/prometheus/prometheus.yml
5+

prometheus/prometheus.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ./prometheus/prometheus.yml
2+
global:
3+
scrape_interval: 15s
4+
5+
scrape_configs:
6+
- job_name: 'flask-app'
7+
static_configs:
8+
- targets: ['web-app:5000']
9+
10+
- job_name: 'cadvisor'
11+
static_configs:
12+
- targets: ['cadvisor:9323']

0 commit comments

Comments
 (0)