monasca-agent/docker/statsd
Pierre Riteau 7d21e505e8 Fix Docker builds
The default nodeset was just changed to focal [1], which in the absence
of the python-is-python3 package doesn't provide a python binary.

[1] https://review.opendev.org/c/opendev/base-jobs/+/789098

Change-Id: I70984db7af7ce5f7028077db4debcd2cd9bd7c45
2021-05-20 17:11:37 +02:00
..
agent.yaml.j2 Create Docker image from Monasca repos 2019-09-24 08:45:45 +00:00
build_image.sh Fix Docker builds 2021-05-20 17:11:37 +02:00
Dockerfile Create Docker image from Monasca repos 2019-09-24 08:45:45 +00:00
health_check.py Update hacking for Python3 2020-03-31 06:49:33 +00:00
README.rst Create Docker image from Monasca repos 2019-09-24 08:45:45 +00:00
start.sh Create Docker image from Monasca repos 2019-09-24 08:45:45 +00:00

Docker image for Monasca Statsd

The Monasca Statsd image is based on the monasca-base image.

Building monasca-base image

See https://github.com/openstack/monasca-common/tree/master/docker/README.rst

Building Monasca Statsd image

Example:

$ ./build_image.sh <repository_version> <upper_constains_branch> <common_version>

Everything after ./build_image.sh is optional and by default configured to get versions from Dockerfile. ./build_image.sh also contain more detailed build description.

Environment variables

Variable Default Description
STATSD_PORT 8125 The port for statsd
LOG_LEVEL WARN Log level for service
HOSTNAME_FROM_KUBERNETES false Determine node hostname from Kubernetes
STAY_ALIVE_ON_FAILURE false If true, container runs 2 hours after service fails
MONASCA_URL http://monasca:8070/v2.0 Versioned Monasca API URL
KEYSTONE_DEFAULTS_ENABLED true Use all OS defaults

Requirements from monasca-base image

health_check.py

This file will be used for checking the status of the Monasca API application.

Scripts

start.sh

In this starting script provide all steps that lead to the proper service start. Including usage of wait scripts and templating of configuration files. You also could provide the ability to allow running container after service died for easier debugging.

build_image.sh

Please read detailed build description inside the script.

Docker Compose

When you want to use docker-compose add it as a new service in your docker-compose.yml file Example:

  • monasca-statsd:
    • image: monasca/statsd:master

https://docs.openstack.org/designate/latest/contributor/metrics.html