-
Notifications
You must be signed in to change notification settings - Fork 5
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 <qclaogui@gmail.com> From Agent to Alloy Signed-off-by: Weifeng Wang <qclaogui@gmail.com>
- Loading branch information
Showing
121 changed files
with
7,775 additions
and
3,654 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
22 changes: 11 additions & 11 deletions
22
...common/compose-include/grafana-agent.yaml → ...compose/common/compose-include/alloy.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 |
---|---|---|
@@ -1,38 +1,38 @@ | ||
|
||
services: | ||
grafana-agent: | ||
alloy: | ||
labels: | ||
logs.agent.grafana.com/log-format: logfmt | ||
depends_on: { gateway: { condition: service_healthy } } | ||
image: ${AGENT_IMAGE:-docker.io/grafana/agent:v0.40.3} | ||
image: ${ALLOY_IMAGE:-docker.io/grafana/alloy:v1.0.0} | ||
volumes: | ||
- ../config/agent-flow:/etc/agent-config | ||
- ../config/alloy:/etc/alloy | ||
- /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 | ||
- /bin/alloy | ||
- run | ||
- /etc/agent-config/metrics.river | ||
- /etc/alloy/metrics.alloy | ||
- --server.http.listen-addr=0.0.0.0:12345 | ||
- --cluster.enabled=true | ||
- --cluster.join-addresses=grafana-agent-cluster:12345 | ||
- --cluster.join-addresses=alloy-cluster:12345 | ||
- --disable-reporting=true | ||
- --stability.level=experimental | ||
- --storage.path=/var/lib/alloy/data | ||
environment: | ||
- AGENT_MODE=flow | ||
- AGENT_CONFIG_FOLDER=/etc/agent-config | ||
- ALLOY_CONFIG_FOLDER=/etc/alloy | ||
healthcheck: | ||
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:12345/ready || exit 1" ] | ||
interval: 5s | ||
timeout: 2s | ||
retries: 10 | ||
ports: | ||
- "12345:12345" | ||
# scale up support | ||
# - "12345-12348:12345" # Note: max replicas num is 3. | ||
deploy: | ||
replicas: 1 | ||
networks: | ||
default: | ||
aliases: | ||
- grafana-agent-cluster | ||
- alloy-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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
docker-compose/common/config/agent-flow/modules/docker/README.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.