You can configure the statsd server by setting the following environment variables:
STATSD_FLUSH_INTERVAL_IN_MS: The interval in milliseconds to flush metrics to each backend. Default is 900000ms (15 minutes).
On a x86 chip
docker build -t dblworks/statsd:$TAGNAME .On a ARM chip (for a x86 target):
docker build -t dblworks/statsd:$TAGNAME . --platform linux/amd64docker push dblworks/statsd:$TAGNAMEdocker run dblworks/statsd:$TAGNAMEdocker build -t localhost/statsd .
git fetch --all --tags
LATEST_RELEASE="$(git describe --abbrev=0 --tags)"
AWS_REGION=eu-central-1
AWS_PROFILE=
AWS_ACCOUNT_ID=
aws ecr get-login-password --profile $AWS_PROFILE --region $AWS_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com
docker tag localhost/statsd $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/statsd:$LATEST_RELEASE
docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/statsd:$LATEST_RELEASEdocker build -t localhost/statsd .
git fetch --all --tags
LATEST_RELEASE="$(git describe --abbrev=0 --tags)"
docker login
docker tag localhost/statsd dblworks/statsd:$LATEST_RELEASE
docker push dblworks/statsd:$LATEST_RELEASEstatsd official docs: https://github.com/statsd/statsd