rycus86/prometheus_flask_exporter

View on GitHub
examples/sample-signals/docker-compose.yml

Summary

Maintainability
Test Coverage
version: '2'
services:

  # a sample app with metrics enabled
  app:
    build:
      context: app
    stop_signal: SIGKILL
    ports:
      - 5000:5000

  # dumb, random load generator
  generator:
    build:
      context: generator
    stop_signal: SIGKILL

  # the Prometheus server
  prometheus:
    image: prom/prometheus:v2.2.1
    volumes:
      - ./prometheus/config.yml:/etc/prometheus/prometheus.yml
    ports:
      - 9090:9090

  # Grafana for visualization
  grafana:
    image: grafana/grafana:5.1.0
    volumes:
      - ./grafana/config.ini:/etc/grafana/grafana.ini
      - ./grafana/datasource.yaml:/etc/grafana/provisioning/datasources/default.yaml
      - ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/default.yaml
      - ./grafana/dashboards:/var/lib/grafana/dashboards
    ports:
      - 3000:3000