diff --git a/.github/workflows/production-deploy.yml b/.github/workflows/production-deploy.yml index ebba5f2..636c6c6 100644 --- a/.github/workflows/production-deploy.yml +++ b/.github/workflows/production-deploy.yml @@ -91,12 +91,15 @@ jobs: DB_USERNAME: ${{ secrets.DB_USERNAME }} DB_PASSWORD: ${{ secrets.DB_PASSWORD }} GRAFANA_PASSWORD: ${{ secrets.GRAFANA_PASSWORD }} + MYSQL_EXPORTER_PASSWORD: ${{ secrets.MYSQL_EXPORTER_PASSWORD }} + with: host: ${{ secrets.SSH_HOST_01 }} username: ${{ secrets.SSH_USER }} key: ${{ secrets.SSH_PRIVATE_KEY }} script_stop: true - envs: NLB_ID,ACCESS_TOKEN_SECRET_KEY,REFRESH_TOKEN_SECRET_KEY,DB_URL,DB_USERNAME,DB_PASSWORD,GRAFANA_PASSWORD + envs: NLB_ID,ACCESS_TOKEN_SECRET_KEY,REFRESH_TOKEN_SECRET_KEY,DB_URL,DB_USERNAME,DB_PASSWORD,GRAFANA_PASSWORD,MYSQL_EXPORTER_PASSWORD + script: | cd ~/snackgame-server/repo git fetch origin main diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 27a440f..97a8bf6 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -25,9 +25,16 @@ management: endpoints: web: exposure: - include: "health,prometheus,loggers" + include: "health,prometheus, loggers" endpoint: health: show-details: never prometheus: - enabled: true \ No newline at end of file + enabled: true + metrics: + tags: + application: snackgame + environment: dev + distribution: + percentiles-histogram: + http.server.requests: true \ No newline at end of file diff --git a/src/main/resources/application-production.yml b/src/main/resources/application-production.yml index b381aef..d373d53 100644 --- a/src/main/resources/application-production.yml +++ b/src/main/resources/application-production.yml @@ -40,4 +40,7 @@ management: metrics: tags: application: snackgame - environment: production \ No newline at end of file + environment: production + distribution: + percentiles-histogram: + http.server.requests: true \ No newline at end of file