Skip to content

Commit 255978a

Browse files
committed
Updates grafana container
1 parent 630d7da commit 255978a

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

grafana/docker-compose.yaml

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ networks:
66
driver: bridge
77

88
services:
9-
fakeservice:
9+
fakeservice-go:
1010
build:
1111
context: ./fakeservice-go
1212
dockerfile: Dockerfile
@@ -23,7 +23,15 @@ services:
2323
- 9090:9090
2424
volumes:
2525
- /tmp/prometheus:/prometheus
26-
- ./prometheus.yaml:/etc/prometheus/prometheus.yaml
26+
- ./prometheus.yml:/etc/prometheus/prometheus.yml
27+
restart: always
28+
networks:
29+
- my-network
30+
alertmanager:
31+
image: prom/alertmanager:latest
32+
hostname: alertmanager
33+
ports:
34+
- 9093:9093
2735
restart: always
2836
networks:
2937
- my-network

grafana/grafana.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ content_types = text/html
770770
mode = console file
771771

772772
# Either "debug", "info", "warn", "error", "critical", default is "info"
773-
level = info
773+
level = debug
774774

775775
# optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
776776
filters =

grafana/prometheus.yaml grafana/prometheus.yml

+5
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ scrape_configs:
2727

2828
static_configs:
2929
- targets: ["localhost:9090"]
30+
31+
- job_name: "fakeservice-go"
32+
metrics_path: /metrics/
33+
static_configs:
34+
- targets: ["fakeservice-go:3001"]

grafana/readme.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Grafana
22

3+
## Grafana
4+
5+
## Prometheus
6+
7+
## Alertmanager
8+
9+
https://github.com/prometheus/alertmanager
10+
11+
https://hub.docker.com/r/prom/alertmanager
12+
313
## Grafana Agent
414

515
I started this container project with having a look at the Grafana agent. The agent collects metrics, logs and traces and submits it to the configured targets.

0 commit comments

Comments
 (0)