Skip to content

Commit 31b420e

Browse files
committed
code clean
Signed-off-by: Weifeng Wang <qclaogui@gmail.com> Imrpove Alloy integrations Signed-off-by: Weifeng Wang <qclaogui@gmail.com> go mod tidy Update README.md Update README.md Update self_hosted.alloy
1 parent 30cd419 commit 31b420e

File tree

35 files changed

+289
-167
lines changed

35 files changed

+289
-167
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
A simple command to run Grafana LGTMP Stack in Docker or Kubernetes.
99

10+
> **NOTE**:
11+
> This project is not intended for production use and is maintained on a best-effort basis.
12+
1013
## Usage
1114

1215
An simple use case `compose.yaml` like so:
@@ -110,7 +113,7 @@ The easiest way to run project locally is to use docker compose, these instructi
110113
111114
***Prerequisites:*** Make sure that you have Docker and Docker Compose installed
112115
113-
> Note:
116+
> **NOTE**:
114117
> `include` is available in Docker Compose version 2.20 and later, and Docker Desktop version 4.22 and later.
115118
116119
### [Monolithic mode (单体模式)](./docker-compose/monolithic-mode)

compose.override.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ services:
1616
loki:
1717
labels:
1818
<<: *profiles-labels
19-
profiles.grafana.com/service_name: loki
19+
logs.grafana.com/scrape: true
2020
metrics.grafana.com/scrape: true
21-
logs.grafana.com/log-format: json
21+
profiles.grafana.com/service_name: loki
2222
environment:
2323
<<: *jaeger-environment
2424
JAEGER_TAGS: app=loki
@@ -27,10 +27,10 @@ services:
2727
grafana:
2828
labels:
2929
<<: *profiles-labels
30+
logs.grafana.com/scrape: true
31+
metrics.grafana.com/scrape: true
3032
profiles.grafana.com/service_name: grafana
3133
profiles.grafana.com/port: 6060
32-
metrics.grafana.com/scrape: true
33-
logs.grafana.com/log-format: logfmt
3434
volumes:
3535
- ./monitoring-mixins/pyroscope-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/pyroscope-mixin
3636
- ./monitoring-mixins/loki-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/loki-mixin
@@ -45,9 +45,9 @@ services:
4545
tempo:
4646
labels:
4747
<<: *profiles-labels
48-
profiles.grafana.com/service_name: tempo
48+
logs.grafana.com/scrape: true
4949
metrics.grafana.com/scrape: true
50-
logs.grafana.com/log-format: logfmt
50+
profiles.grafana.com/service_name: tempo
5151
depends_on: { minio: { condition: service_healthy }, mimir: { condition: service_healthy } }
5252
environment:
5353
<<: *jaeger-environment
@@ -57,8 +57,9 @@ services:
5757
mimir:
5858
labels:
5959
<<: *profiles-labels
60+
logs.grafana.com/scrape: true
61+
metrics.grafana.com/scrape: true
6062
profiles.grafana.com/service_name: mimir
61-
logs.grafana.com/log-format: logfmt
6263
environment:
6364
<<: *jaeger-environment
6465
JAEGER_TAGS: app=mimir
@@ -75,8 +76,9 @@ services:
7576
# override compose.yaml included service pyroscope's labels and environment to enabled traces data collection
7677
pyroscope:
7778
labels:
79+
logs.grafana.com/scrape: true
7880
metrics.grafana.com/scrape: true
79-
logs.grafana.com/log-format: logfmt
81+
profiles.grafana.com/service_name: pyroscope
8082
environment:
8183
<<: *jaeger-environment
8284
JAEGER_TAGS: app=pyroscope

compose.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ services:
5252
- ./docker-compose/common/config/pyroscope/gateway_pyroscope.conf:/etc/nginx/templates/gateway_pyroscope.conf.template
5353
healthcheck:
5454
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1" ]
55-
interval: 5s
56-
timeout: 2s
57-
retries: 10
55+
interval: 3s
56+
timeout: 1s
57+
retries: 20

docker-compose/common/compose-include/alloy.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
services:
22
alloy:
3-
labels:
4-
logs.grafana.com/log-format: logfmt
53
depends_on: { gateway: { condition: service_healthy } }
64
image: ${ALLOY_IMAGE:-docker.io/grafana/alloy:v1.0.0}
75
configs:

docker-compose/common/compose-include/grafana.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ services:
2020
grafana:
2121
labels:
2222
metrics.grafana.com/scrape: false
23-
logs.grafana.com/log-format: logfmt
2423
image: ${GRAFANA_IMAGE:-docker.io/grafana/grafana:10.4.1}
2524
command:
2625
- --config=/etc/grafana-config/grafana.ini

docker-compose/common/compose-include/loki.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ services:
22
loki:
33
labels:
44
metrics.grafana.com/scrape: false
5-
logs.grafana.com/log-format: json
65
depends_on: { minio: { condition: service_healthy } }
76
image: ${LOKI_IMAGE:-docker.io/grafana/loki:3.0.0}
87
volumes:
@@ -13,9 +12,9 @@ services:
1312
- -config.expand-env=true
1413
healthcheck:
1514
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1" ]
16-
interval: 3s
17-
timeout: 2s
18-
retries: 10
15+
interval: 2s
16+
timeout: 1s
17+
retries: 15
1918
# expose 33100 port so we can directly access loki inside container
2019
ports:
2120
- "33100:3100"

docker-compose/common/compose-include/mimir.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
services:
33
mimir:
4+
labels:
5+
metrics.grafana.com/scrape: false
46
depends_on: { minio: { condition: service_healthy } }
57
image: ${MIMIR_IMAGE:-docker.io/grafana/mimir:2.12.0}
68
volumes:
@@ -11,9 +13,9 @@ services:
1113
- -config.expand-env=true
1214
healthcheck:
1315
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/ready || exit 1" ]
14-
interval: 3s
15-
timeout: 2s
16-
retries: 10
16+
interval: 2s
17+
timeout: 1s
18+
retries: 15
1719
# expose 38080 port so we can directly access mimir inside container
1820
ports:
1921
- "38080:8080"

docker-compose/common/compose-include/minio.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ services:
3232
- minio_data:/data:delegated
3333
healthcheck:
3434
test: ["CMD-SHELL", "mc ready local"]
35-
interval: 3s
36-
timeout: 2s
37-
retries: 10
35+
interval: 2s
36+
timeout: 1s
37+
retries: 15
3838
ports:
3939
- "9001:9001"
4040

docker-compose/common/compose-include/pyroscope.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ services:
44
metrics.grafana.com/scrape: false
55
depends_on: { minio: { condition: service_healthy } }
66
image: ${PYROSCOPE_IMAGE:-docker.io/grafana/pyroscope:1.5.0}
7-
container_name: pyroscope
87
volumes:
98
- ../config/pyroscope:/etc/pyroscope
109
- pyroscope_data:/data
@@ -15,9 +14,9 @@ services:
1514
# - -runtime-config.file=/etc/pyroscope/overrides.yaml
1615
healthcheck:
1716
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:4040/ready || exit 1" ]
18-
interval: 3s
19-
timeout: 2s
20-
retries: 10
17+
interval: 2s
18+
timeout: 1s
19+
retries: 15
2120
# expose 34040 port so we can directly access pyroscope inside container
2221
ports:
2322
- "34040:4040"

docker-compose/common/compose-include/tempo.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ services:
1313
- -config.expand-env=true
1414
healthcheck:
1515
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3200/ready || exit 1" ]
16-
interval: 3s
17-
timeout: 2s
18-
retries: 10
19-
start_period: 10s
16+
interval: 2s
17+
timeout: 1s
18+
retries: 15
19+
# start_period: 10s
2020
# expose 33200 port so we can directly access tempo inside container
2121
ports:
2222
- "33200:3200"

0 commit comments

Comments
 (0)