From c09baa11cc616df64be3279dcbbb508ebe7ea170 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 | 18 ++++++++++++++++-- .../grafana_prometheus_redis_dashboard.json | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 842b9ff3..1ed9b907 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,20 @@ jobs: labels: ${{ steps.meta.outputs.labels }} build-args: "TAG=${{ github.ref_name }},SHA1=${{ github.sha }}" + - name: Docker meta for alpine + id: meta + 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 +114,6 @@ jobs: target: alpine platforms: linux/amd64,linux/arm,linux/arm64 push: true - tags: ${{ steps.meta.outputs.tags }},alpine + tags: 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": [