Commit a3aaf7bf authored by David H. Wilkins's avatar David H. Wilkins
Browse files

Added support for enabling prometheus for auto devops

- Values.prometheus.metrics variable enabled in the auto-deploy-app
  helm chart to annotate the service for prometheus auto-discovery

- use the AUTO_DEVOPS_PROMETHEUS_METRICS variable to control the
  annotations for auto scraping
parent c8069a6f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -168,6 +168,7 @@ function deploy() {
      --set postgresql.postgresPassword="$POSTGRES_PASSWORD" \
      --set postgresql.postgresDatabase="$POSTGRES_DB" \
      --set postgresql.imageTag="$POSTGRES_VERSION" \
      --set prometheus.metrics="$AUTO_DEVOPS_PROMETHEUS_METRICS" \
      --set application.initializeCommand="$DB_INITIALIZE" \
      --set ingress.modSecurity.enabled="$modsecurity_enabled" \
      --set ingress.modSecurity.secRuleEngine="$AUTO_DEVOPS_MODSECURITY_SEC_RULE_ENGINE" \
@@ -215,6 +216,7 @@ function deploy() {
      --set postgresql.postgresPassword="$POSTGRES_PASSWORD" \
      --set postgresql.postgresDatabase="$POSTGRES_DB" \
      --set postgresql.imageTag="$POSTGRES_VERSION" \
      --set prometheus.metrics="$AUTO_DEVOPS_PROMETHEUS_METRICS" \
      --set application.migrateCommand="$DB_MIGRATE" \
      --set ingress.modSecurity.enabled="$modsecurity_enabled" \
      --set ingress.modSecurity.secRuleEngine="$AUTO_DEVOPS_MODSECURITY_SEC_RULE_ENGINE" \