Skip to content
Snippets Groups Projects
Commit 65a0ac5d authored by Markus Klose's avatar Markus Klose
Browse files

Fixed prometheus.yml config path

parent b805dc58
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ COPY ["package.json", "package-lock.json*", "./"] ...@@ -10,7 +10,7 @@ COPY ["package.json", "package-lock.json*", "./"]
RUN npm install RUN npm install
# Bundle app source code inside the Docker Image # Bundle app source code inside the Docker Image
COPY . .
EXPOSE 3000 EXPOSE 3000
CMD [ "npm", "start" ] CMD [ "npm", "start" ]
\ No newline at end of file
...@@ -7,11 +7,12 @@ services: ...@@ -7,11 +7,12 @@ services:
ports: ports:
- "9090:9090" - "9090:9090"
volumes: volumes:
- /etc/prometheus:/etc/prometheus - ./prometheus:/etc/prometheus
- prometheus-data:/prometheus
restart: unless-stopped restart: unless-stopped
command: command:
- "--config.file=/etc/prometheus/prometheus.yml" - "--config.file=/etc/prometheus/prometheus.yml"
grafana: grafana:
image: grafana/grafana:latest image: grafana/grafana:latest
container_name: grafana container_name: grafana
...@@ -42,6 +43,8 @@ services: ...@@ -42,6 +43,8 @@ services:
volumes: volumes:
mongodb: mongodb:
prometheus:
prometheus-data: prometheus-data:
grafana-data: grafana-data:
grafana:
...@@ -17,4 +17,5 @@ scrape_configs: ...@@ -17,4 +17,5 @@ scrape_configs:
static_configs: static_configs:
- targets: ['localhost:9090'] - targets: ['localhost:9090']
- targets: ['localhost:3000']
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment