Commit 821bf75c authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Configura despliegue inicial

parent f82d95d0
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+0 −0

Empty file added.

.gitlab-ci.yml

0 → 100644
+20 −0
Original line number Diff line number Diff line
include:
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/deployment.yml'

stages:
  - deploy

variables:
  STACK: postgres
  IMAGE_NAME: wrouesnel/postgres_exporter
  IMAGE_TAG: latest

.deploy:
  script:
    - >
      deploy.sh IMAGE_NAME=${IMAGE_NAME} IMAGE_TAG=${IMAGE_TAG} DATA_SOURCE_NAME=${DATA_SOURCE_NAME}
      PG_EXPORTER_DISABLE_DEFAULT_METRICS=${PG_EXPORTER_DISABLE_DEFAULT_METRICS}
      PG_EXPORTER_DISABLE_SETTINGS_METRICS=${PG_EXPORTER_DISABLE_SETTINGS_METRICS}
      PG_EXPORTER_CONSTANT_LABELS=${PG_EXPORTER_CONSTANT_LABELS} LOG_LEVEL=${LOG_LEVEL}

deploy/.env

0 → 100644
+6 −0
Original line number Diff line number Diff line
DATA_SOURCE_NAME=postgresql://user:pass@hostname:5432/dbname
PG_EXPORTER_WEB_LISTEN_ADDRESS=9187
PG_EXPORTER_WEB_TELEMETRY_PATH=/metrics
PG_EXPORTER_DISABLE_DEFAULT_METRICS=false
PG_EXPORTER_DISABLE_SETTINGS_METRICS=false
LOG_LEVEL=warn
+1 −0
Original line number Diff line number Diff line
version: '3.5'
+8 −0
Original line number Diff line number Diff line
version: '3.5'

services:
  postgres-exporter:
    deploy:
      placement:
        constraints:
          - node.role == worker
Loading