From 8de78346dd687f80d749ffa54c5624f017c47adc Mon Sep 17 00:00:00 2001 From: Ali Afsharzadeh Date: Mon, 14 Oct 2024 09:15:01 +0330 Subject: [PATCH] Change total item per DB panel unit to short (#955) --- .github/workflows/release.yml | 17 +++++++++++++++-- contrib/grafana_prometheus_redis_dashboard.json | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 842b9ff3..90fc4b81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,7 @@ jobs: omitBodyDuringUpdate: true - docker-push-scratch-image-docker: + build-and-push-docker-images: runs-on: ubuntu-latest permissions: contents: read @@ -93,6 +93,19 @@ jobs: labels: ${{ steps.meta.outputs.labels }} build-args: "TAG=${{ github.ref_name }},SHA1=${{ github.sha }}" + - name: Docker meta for alpine + uses: docker/metadata-action@v5 + with: + # list of Docker images to use as base name for tags + images: | + oliver006/redis_exporter + ghcr.io/oliver006/redis_exporter + quay.io/oliver006/redis_exporter + flavor: | + latest=false + prefix= + suffix=alpine + - name: Build and push alpine image uses: docker/build-push-action@v6 with: @@ -100,6 +113,6 @@ jobs: target: alpine platforms: linux/amd64,linux/arm,linux/arm64 push: true - tags: ${{ steps.meta.outputs.tags }},alpine + tags: oliver006/redis_exporter:alpine,ghcr.io/oliver006/redis_exporter:alpine,quay.io/oliver006/redis_exporter:alpine,${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: "TAG=${{ github.ref_name }},SHA1=${{ github.sha }}" diff --git a/contrib/grafana_prometheus_redis_dashboard.json b/contrib/grafana_prometheus_redis_dashboard.json index 530f42e9..c61137e0 100644 --- a/contrib/grafana_prometheus_redis_dashboard.json +++ b/contrib/grafana_prometheus_redis_dashboard.json @@ -856,7 +856,7 @@ } ] }, - "unit": "none", + "unit": "short", "unitScale": true }, "overrides": [