-
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.
add common grafana and grafana-agent
Signed-off-by: Weifeng Wang <[email protected]>
- Loading branch information
Showing
22 changed files
with
278 additions
and
374 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
32 changes: 0 additions & 32 deletions
32
docker-compose/common/compose-include/agent-collect-logs.yaml
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
docker-compose/common/compose-include/agent-collect-profiles.yaml
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
docker-compose/common/compose-include/agent-collect-traces.yaml
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -37,4 +37,4 @@ services: | |
networks: | ||
default: | ||
aliases: | ||
- grafana-agent-cluster | ||
- grafana-agent-cluster |
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,25 @@ | ||
|
||
services: | ||
grafana: | ||
labels: | ||
logs.agent.grafana.com/log-format: logfmt | ||
image: ${GRAFANA_IMAGE:-docker.io/grafana/grafana:10.4.1} | ||
command: | ||
- --config=/etc/grafana-config/grafana.ini | ||
volumes: | ||
- ../config/grafana/grafana.ini:/etc/grafana-config/grafana.ini | ||
- ../config/grafana/dashboards:/var/lib/grafana/dashboards | ||
- ../config/grafana/provisioning:/etc/grafana/provisioning | ||
- ../../../monitoring-mixins/agent-flow-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/agent-flow-mixin | ||
- ../../../monitoring-mixins/go-runtime-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/go-runtime-mixin | ||
- ../../../monitoring-mixins/loki-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/loki-mixin | ||
- ../../../monitoring-mixins/mimir-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/mimir-mixin | ||
- ../../../monitoring-mixins/pyroscope-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/pyroscope-mixin | ||
- ../../../monitoring-mixins/memcached-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/memcached-mixin | ||
# - ../../../monitoring-mixins/tempo-mixin/deploy/dashboards_out:/var/lib/grafana/dashboards/tempo-mixin | ||
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 | ||
ports: | ||
- "3000:3000" |
12 changes: 12 additions & 0 deletions
12
docker-compose/microservices-mode/logs/compose.override.yaml
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,12 @@ | ||
|
||
services: | ||
# override included service grafana-agent entrypoint | ||
grafana-agent: | ||
entrypoint: | ||
- /bin/grafana-agent | ||
- run | ||
- /etc/agent-config/logs.river # Note: Agent use logs.river | ||
- --server.http.listen-addr=0.0.0.0:12345 | ||
- --cluster.enabled=true | ||
- --cluster.join-addresses=grafana-agent-cluster:12345 | ||
- --disable-reporting=true |
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
11 changes: 11 additions & 0 deletions
11
docker-compose/microservices-mode/profiles/compose.override.yaml
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,11 @@ | ||
|
||
services: | ||
grafana-agent: # override included service grafana-agent entrypoint | ||
entrypoint: | ||
- /bin/grafana-agent | ||
- run | ||
- /etc/agent-config/profiles.river # Note: Agent use profiles.river | ||
- --server.http.listen-addr=0.0.0.0:12345 | ||
- --cluster.enabled=true | ||
- --cluster.join-addresses=grafana-agent-cluster:12345 | ||
- --disable-reporting=true |
Oops, something went wrong.