- targets:
    - '{{ press_app_server }}'
    - '{{ press_db_server }}'
    {%- if press_db_replica_server +%}
    - '{{ press_db_replica_server }}'
    {%- endif +%}
  labels:
    job: node
    __metrics_path__: /metrics/node

- targets:
    - '{{ press_app_server }}'
  labels:
    job: nginx
    __metrics_path__: /metrics/nginx

- targets:
    - '{{ press_app_server }}'
  labels:
    job: cadvisor
    __metrics_path__: /metrics/cadvisor

- targets:
    - '{{ press_db_server }}'
    {%- if press_db_replica_server +%}
    - '{{ press_db_replica_server }}'
    {%- endif +%}
  labels:
    job: mariadb
    __metrics_path__: /metrics/mariadb

- targets:
    - '{{ press_app_server }}'
  labels:
    job: docker
    __metrics_path__: /metrics/docker

- targets:
    - '{{ press_app_server }}'
  labels:
    job: gunicorn
    __metrics_path__: /metrics/gunicorn

- targets:
    - '{{ press_app_server }}'
  labels:
    job: process
    __metrics_path__: /metrics/process

- targets:
    - '{{ press_app_server }}'
  labels:
    job: rq
    __metrics_path__: /metrics/rq

- targets:
    - '{{ press_app_server }}'
  labels:
    job: redis
    __metrics_path__: /metrics/redis

- targets:
    - '{{ press_app_server }}'
  labels:
    job: press
    __metrics_path__: /metrics/press
