-
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.
Revert "remove common agent-collect-metrics.yaml"
This reverts commit 211c11c.
- Loading branch information
Showing
5 changed files
with
45 additions
and
114 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
docker-compose/common/compose-include/agent-collect-metrics.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,40 @@ | ||
|
||
services: | ||
grafana-agent: | ||
labels: | ||
logs.agent.grafana.com/log-format: logfmt | ||
depends_on: | ||
gateway: | ||
condition: service_healthy | ||
image: ${AGENT_IMAGE:-docker.io/grafana/agent:latest} | ||
volumes: | ||
- ../config/agent-flow:/etc/agent-config | ||
- /var/run/docker.sock:/var/run/docker.sock:ro | ||
- /:/rootfs:ro | ||
- /sys:/sys:ro | ||
- /var/lib/docker:/var/lib/docker:ro | ||
entrypoint: | ||
- /bin/grafana-agent | ||
- run | ||
- /etc/agent-config/metrics.river | ||
- --server.http.listen-addr=0.0.0.0:12345 | ||
- --cluster.enabled=true | ||
- --cluster.join-addresses=grafana-agent-cluster:12345 | ||
- --disable-reporting=true | ||
environment: | ||
- AGENT_MODE=flow | ||
- AGENT_CONFIG_FOLDER=/etc/agent-config | ||
healthcheck: | ||
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:12345/ready || exit 1" ] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 10 | ||
ports: | ||
- "12345:12345" | ||
# scale up support | ||
deploy: | ||
replicas: 1 | ||
networks: | ||
default: | ||
aliases: | ||
- grafana-agent-cluster |
3 changes: 0 additions & 3 deletions
3
docker-compose/common/compose-include/load-rules-to-mimir.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
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