Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
ca669ff
PMM-3702 Bump Go version.
rnovikovP Mar 27, 2019
e62c701
Merge pull request #18 from percona/PMM-3702-Bump-Go-version
idexter Mar 28, 2019
2df9583
README fix.
Jul 10, 2019
6d64500
PMM-4010 Update Travis CI config. (#28)
AlekSi Nov 5, 2019
7956cc9
PMM-3298 Fix crash. (#31)
AlekSi Nov 28, 2019
80355c9
PMM-4474 Add extra labels. (#32)
AlekSi Dec 4, 2019
03bab8a
PMM-5058 Update node_exporter-like metrics. (#33)
AlekSi Dec 11, 2019
0421680
PMM-4010 Updated travis.yml
percona-csalguero Dec 16, 2019
ade0b0a
PMM-1772 Use stable instances for tests. (#34)
AlekSi Dec 17, 2019
2ef6d29
PMM-5085 Last tweaks. (#36)
AlekSi Dec 18, 2019
2688e80
PMM-5192 Remove go1.12 from .travis.yml
artemgavrilov Feb 7, 2020
db4ca34
PMM-4145 Add RDS disable metric collection. (#41)
askomorokhov Mar 19, 2020
8be3972
PMM-5723 Reviewdog checks. (#42)
BupycHuk May 28, 2020
81809c7
Add proxy configuration to the transport
ahyield May 27, 2020
8ce49ef
Prepare a new release. (#44)
AlekSi Jun 2, 2020
85d2064
PMM-6120 Use go 1.14 (#45)
askomorokhov Jun 30, 2020
602ae46
PMM-6213 Remove go 1.13 from travis. (#46)
askomorokhov Jul 14, 2020
cfd2682
PMM-6756 Added go 1.15.x. (#48)
yareach Dec 6, 2020
3cc0fc8
Overcome the limitation of 100 dbinstances (#47)
vlinevych Jan 7, 2021
798ca5d
ci: rotate integration keys (#52)
Apr 27, 2021
faea4e0
Delete .travis.yml
denisok Jun 2, 2021
c0d2255
PMM-7602 Add GitHub Action (#53)
askomorokhov Jun 3, 2021
fdaf28e
PPMM-7961 Updated exporter_shared (#59)
percona-csalguero Jun 29, 2021
b935979
PMM-7902 Remove Go 1.15 (#60)
BupycHuk Jul 5, 2021
f277ef5
Add docker multistage build (#61)
askomorokhov Jul 8, 2021
ef4de27
bring back maxInterval=60 sec (#63)
askomorokhov Jul 21, 2021
abe6afa
PMM-8207 Cleanup. (#57)
askomorokhov Aug 11, 2021
afae98f
add the ReplicaLag metric (#51)
blovett Sep 14, 2021
f0fe26b
Update README.md (#65)
rnovikovP Sep 28, 2021
920a285
PMM-6013 change default branch to main (#67)
nikita-b Oct 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
65 changes: 65 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Go

on: [push, pull_request]

jobs:
test:
name: Test
strategy:
matrix:
go-version:
- 1.16
include:
- go-version: tip
os: ubuntu-latest
may-fail: true
runs-on: ubuntu-latest
# The environment this job references
environment:
name: CI
steps:
- name: Set up Go release
if: matrix.go-version != 'tip'
uses: percona-platform/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Set up Go tip
if: matrix.go-version == 'tip'
env:
# to avoid error due to `go version` accepting -v flag with an argument since 1.15
GOFLAGS: ""
run: |
git clone --depth=1 https://go.googlesource.com/go $HOME/gotip
cd $HOME/gotip/src
./make.bash
echo "GOROOT=$HOME/gotip" >> $GITHUB_ENV
echo "$HOME/gotip/bin" >> $GITHUB_PATH
- name: Checkout code
uses: percona-platform/checkout@v2
- name: Build
run: make build
- name: Run checks
run: |
go build -modfile=tools/go.mod -o bin/golangci-lint github.com/golangci/golangci-lint/cmd/golangci-lint
go build -modfile=tools/go.mod -o bin/reviewdog github.com/reviewdog/reviewdog/cmd/reviewdog
bin/golangci-lint run -c=.golangci-required.yml --out-format=line-number | env REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }} bin/reviewdog -f=golangci-lint -level=error -reporter=github-pr-check
bin/golangci-lint run -c=.golangci.yml --out-format=line-number | env REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }} bin/reviewdog -f=golangci-lint -level=error -reporter=github-pr-review
- name: Run Tests
env:
AWS_ACCESS_KEY: AKIAZPBRO3QWCEHJTL35
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
run: make test-race
- name: Run Codecov
run: make codecov
- name: Build tarball
run: make tarball
- name: Build tarball
run: make docker
- name: Run debug commands on failure
if: ${{ failure() }}
run: |
env
go version
go env
pwd
git status
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
/.idea/
/.vscode/
rds_exporter
config.yml
bin/
coverage.txt
13 changes: 13 additions & 0 deletions .golangci-required.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
# The most valuable linters; they are required to pass for PR to be merged.
linters:
disable-all: true
enable:
- depguard
- goimports
- ineffassign
- govet
- staticcheck

issues:
exclude-use-default: false
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ linters-settings:
check-exported: true

unparam:
algo: rta
check-exported: true

linters:
Expand Down
4 changes: 3 additions & 1 deletion .promu.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
go:
cgo: false
repository:
path: github.com/percona/rds_exporter
build:
flags: -a -tags netgo
ldflags: |
Expand All @@ -11,7 +13,7 @@ build:
tarball:
files:
- LICENSE
- config.yml
# - config.yml
crossbuild:
platforms:
- linux/amd64
Expand Down
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]
Nothing yet.


## [0.7.0] - 2020-06-02
### Added
- `disable_basic_metrics` and `disable_enhanced_metrics` configuration options.

### Changed
- Major changes in `node_exporter`-like metrics. See [PR #33](https://github.com/percona/rds_exporter/pull/33)
and [here](https://github.com/percona/rds_exporter#metrics).
- `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` environment variables are honored now
([PR #43](https://github.com/percona/rds_exporter/pull/43) by [@ahmgeek](https://github.com/ahmgeek)).
- Tests and linting improvements.


## [0.6.0] - 2019-12-04
- Initial tagged release.


[Unreleased]: https:/github.com/percona/rds_exporter/compare/v0.7.0...main
[0.7.0]: https://github.com/percona/rds_exporter/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/percona/rds_exporter/releases/tag/v0.6.0
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
FROM golang:1.16 as build

COPY . /usr/src/rds_exporter

RUN cd /usr/src/rds_exporter && make build

FROM alpine:latest

COPY rds_exporter /bin/
COPY config.yml /etc/rds_exporter/config.yml
COPY --from=build /usr/src/rds_exporter/rds_exporter /bin/
# COPY config.yml /etc/rds_exporter/config.yml

RUN apk update && \
apk add ca-certificates && \
Expand Down
Loading