Skip to content

dbl-works/statsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StatsD

Dockerhub

Configuration

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).

Building

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/amd64

Publishing

docker push dblworks/statsd:$TAGNAME

Running

docker run dblworks/statsd:$TAGNAME

Deployment

Using AWS ECR as container registry

docker 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_RELEASE

Push to Dockerhjub

docker 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_RELEASE

Further Reads

statsd official docs: https://github.com/statsd/statsd

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •