diff --git a/tests/prometheus.yml b/tests/prometheus.yml new file mode 100644 index 0000000..f35a55c --- /dev/null +++ b/tests/prometheus.yml @@ -0,0 +1,40 @@ +version: '2.1' +services: + onlyoffice-documentserver: + container_name: onlyoffice-documentserver + build: + context: ../. + depends_on: + - onlyoffice-statsd-exporter + environment: + - METRICS_ENABLED=${METRICS_ENABLED:-true} + - METRICS_HOST=${METRICS_HOST:-onlyoffice-statsd-exporter} + - METRICS_PORT=${METRICS_PORT:-9125} + - METRICS_PREFIX=${METRICS_PREFIX:-ds.} + stdin_open: true + restart: always + ports: + - '80:80' + + onlyoffice-statsd-exporter: + container_name: onlyoffice-statsd-exporter + image: prom/statsd-exporter + ports: + - '9102:9102' + - '9125:9125/tcp' + - '9125:9125/udp' + + onlyoffice-prometheus: + container_name: onlyoffice-prometheus + image: prom/prometheus + ports: + - '9090:9090' + volumes: + - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml + + grafana: + image: bitnami/grafana + ports: + - '3000:3000' + environment: + - 'GF_SECURITY_ADMIN_PASSWORD=admin' diff --git a/tests/prometheus/prometheus.yml b/tests/prometheus/prometheus.yml new file mode 100644 index 0000000..b3322d0 --- /dev/null +++ b/tests/prometheus/prometheus.yml @@ -0,0 +1,6 @@ +scrape_configs: + - job_name: 'statsd' + scrape_interval: 30s + static_configs: + - targets: + - onlyoffice-statsd-exporter:9102