Skip to content

Commit

Permalink
issue-753: update mysqld_exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
shunki-fujita committed Nov 13, 2024
1 parent dbd1351 commit 8c994ac
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 70 deletions.
1 change: 0 additions & 1 deletion containers/mysqld_exporter/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
*
!mysql84.patch
5 changes: 1 addition & 4 deletions containers/mysqld_exporter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
# Stage1: build from source
FROM ghcr.io/cybozu/golang:1.22-jammy AS build

ARG MYSQLD_EXPORTER_VERSION=v0.15.1

COPY mysql84.patch .
ARG MYSQLD_EXPORTER_VERSION=v0.16.0

RUN git clone -b ${MYSQLD_EXPORTER_VERSION} --depth 1 https://github.com/prometheus/mysqld_exporter \
&& patch -d mysqld_exporter -Np1 < mysql84.patch \
&& make -C mysqld_exporter build

# Stage2: setup runtime container
Expand Down
2 changes: 1 addition & 1 deletion containers/mysqld_exporter/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.15.1.2
0.16.0.1
63 changes: 0 additions & 63 deletions containers/mysqld_exporter/mysql84.patch

This file was deleted.

2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ const (
FluentBitImage = "ghcr.io/cybozu-go/moco/fluent-bit:3.1.7.1"

// ExporterImage is the image for mysqld_exporter sidecar container.
ExporterImage = "ghcr.io/cybozu-go/moco/mysqld_exporter:0.15.1.2"
ExporterImage = "ghcr.io/cybozu-go/moco/mysqld_exporter:0.16.0.1"
)

0 comments on commit 8c994ac

Please sign in to comment.