-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Weifeng Wang <[email protected]> Update README.md Signed-off-by: Weifeng Wang <[email protected]>
- Loading branch information
Showing
9 changed files
with
385 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
|
||
# https://docs.docker.com/compose/multiple-compose-files/include/#include-and-overrides | ||
|
||
# https://github.com/qclaogui/codelab-monitoring/blob/main/docker-compose/common/config/agent-flow/modules/docker/README.md | ||
x-labels: &profiles-labels | ||
profiles.agent.grafana.com/cpu.scrape: true | ||
profiles.agent.grafana.com/memory.scrape: true | ||
profiles.agent.grafana.com/goroutine.scrape: true | ||
|
||
x-environment: &jaeger-environment | ||
JAEGER_AGENT_HOST: grafana-agent | ||
JAEGER_AGENT_PORT: 6831 | ||
JAEGER_SAMPLER_TYPE: const | ||
JAEGER_SAMPLER_PARAM: 1 | ||
|
||
services: | ||
# override compose.yaml included service grafana-agent's entrypoint to use monolithic-mode-all.river. default(metrics.river) | ||
grafana-agent: | ||
entrypoint: | ||
- /bin/grafana-agent | ||
- run | ||
- /etc/agent-config/monolithic-mode-all.river # Note: Agent use monolithic-mode-all.river | ||
- --server.http.listen-addr=0.0.0.0:12345 | ||
- --cluster.enabled=true | ||
- --cluster.join-addresses=grafana-agent-cluster:12345 | ||
- --disable-reporting=true | ||
|
||
# override compose.yaml included service loki's labels and environment to enabled profiles and traces data collection | ||
loki: | ||
labels: | ||
<<: *profiles-labels | ||
profiles.agent.grafana.com/service_name: loki | ||
logs.agent.grafana.com/log-format: json | ||
environment: | ||
<<: *jaeger-environment | ||
JAEGER_TAGS: app=loki | ||
|
||
# override compose.yaml included service grafana's labels and environment to enabled profiles data collection | ||
grafana: | ||
labels: | ||
<<: *profiles-labels | ||
profiles.agent.grafana.com/service_name: grafana | ||
profiles.agent.grafana.com/port: 6060 | ||
logs.agent.grafana.com/log-format: logfmt | ||
environment: | ||
- GF_LOG_LEVEL=warn | ||
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD:-admin_password} | ||
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor tracesEmbeddedFlameGraph traceqlSearch correlations metricsSummary traceToMetrics traceToProfiles | ||
- GF_DIAGNOSTICS_PROFILING_ENABLED=true | ||
- GF_DIAGNOSTICS_PROFILING_ADDR=0.0.0.0 | ||
- GF_DIAGNOSTICS_PROFILING_PORT=6060 | ||
|
||
# override compose.yaml included service tempo's labels and environment to enabled profiles and traces data collection | ||
tempo: | ||
labels: | ||
<<: *profiles-labels | ||
profiles.agent.grafana.com/service_name: tempo | ||
logs.agent.grafana.com/log-format: logfmt | ||
depends_on: | ||
minio: | ||
condition: service_healthy | ||
mimir: | ||
condition: service_healthy | ||
environment: | ||
<<: *jaeger-environment | ||
JAEGER_TAGS: app=tempo | ||
|
||
# override compose.yaml included service mimir's labels and environment to enabled profiles and traces data collection | ||
mimir: | ||
labels: | ||
<<: *profiles-labels | ||
profiles.agent.grafana.com/service_name: mimir | ||
logs.agent.grafana.com/log-format: logfmt | ||
environment: | ||
<<: *jaeger-environment | ||
JAEGER_TAGS: app=mimir | ||
|
||
# override compose.yaml included service pyroscope's labels and environment to enabled traces data collection | ||
pyroscope: | ||
labels: | ||
- logs.agent.grafana.com/log-format=logfmt | ||
environment: | ||
<<: *jaeger-environment | ||
JAEGER_TAGS: app=pyroscope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
services: | ||
pyroscope: | ||
depends_on: | ||
minio: | ||
condition: service_healthy | ||
image: ${PYROSCOPE_IMAGE:-docker.io/grafana/pyroscope:1.5.0} | ||
container_name: pyroscope | ||
volumes: | ||
- ../config/pyroscope:/etc/pyroscope | ||
command: | ||
- -config.file=/etc/pyroscope/monolithic-mode-profiles.yaml | ||
- -target=all | ||
- -config.expand-env=true | ||
# - -runtime-config.file=/etc/pyroscope/overrides.yaml | ||
healthcheck: | ||
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:4040/ready || exit 1" ] | ||
interval: 15s | ||
timeout: 10s | ||
retries: 5 | ||
# expose 34040 port so we can directly access pyroscope inside container | ||
ports: | ||
- "34040:4040" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
services: | ||
tempo: | ||
depends_on: | ||
minio: | ||
condition: service_healthy | ||
image: ${TEMPO_IMAGE:-docker.io/grafana/tempo:2.4.1} | ||
restart: always | ||
volumes: | ||
- ../config/tempo:/etc/tempo | ||
command: | ||
- -config.file=/etc/tempo/monolithic-mode-traces.yaml | ||
- -target=all | ||
- -config.expand-env=true | ||
healthcheck: | ||
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3200/ready || exit 1" ] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 10 | ||
# expose 33200 port so we can directly access tempo inside container | ||
ports: | ||
- "33200:3200" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Monolithic mode (单体模式) - All in one | ||
|
||
[compose.yaml](../../../compose.yaml) //TODO(qc) | ||
//TODO(qc) |
Oops, something went wrong.