Skip to content

PMM-12153 Upgrade mysqld exporter #500

PMM-12153 Upgrade mysqld exporter

PMM-12153 Upgrade mysqld exporter #500

GitHub Actions / golangci-lint failed Jan 24, 2025 in 1s

reviewdog [golangci-lint] report

reported by reviewdog 🐶

Findings (18)

mysqld_exporter.go|32 col 2| import 'github.com/alecthomas/kingpin/v2' is not allowed from list 'Main' (depguard)
mysqld_exporter.go|35 col 2| import 'github.com/prometheus/client_golang/prometheus/collectors/version' is not allowed from list 'Main' (depguard)
mysqld_exporter.go|37 col 2| import 'github.com/prometheus/common/promslog' is not allowed from list 'Main' (depguard)
mysqld_exporter.go|38 col 2| import 'github.com/prometheus/common/promslog/flag' is not allowed from list 'Main' (depguard)
mysqld_exporter.go|45 col 2| import 'github.com/percona/mysqld_exporter/config' is not allowed from list 'Main' (depguard)
probe.go|23 col 2| import 'github.com/percona/mysqld_exporter/collector' is not allowed from list 'Main' (depguard)
probe.go|24 col 2| import 'github.com/prometheus/client_golang/prometheus' is not allowed from list 'Main' (depguard)
probe.go|25 col 2| import 'github.com/prometheus/client_golang/prometheus/promhttp' is not allowed from list 'Main' (depguard)
mysqld_exporter_test.go|34 col 2| import 'github.com/google/go-cmp/cmp' is not allowed from list 'Main' (depguard)
mysqld_exporter_test.go|35 col 2| import 'github.com/percona/mysqld_exporter/collector' is not allowed from list 'Main' (depguard)
mysqld_exporter_test.go|36 col 2| import 'github.com/prometheus/common/promslog' is not allowed from list 'Main' (depguard)
collector/exporter.go|25 col 2| import 'github.com/alecthomas/kingpin/v2' is not allowed from list 'Main' (depguard)
collector/exporter.go|26 col 2| import 'github.com/go-sql-driver/mysql' is not allowed from list 'Main' (depguard)
collector/heartbeat.go|25 col 2| import 'github.com/alecthomas/kingpin/v2' is not allowed from list 'Main' (depguard)
collector/info_schema_innodb_sys_tablespaces.go|24 col 2| import 'github.com/blang/semver/v4' is not allowed from list 'Main' (depguard)
collector/instance.go|23 col 2| import 'github.com/blang/semver/v4' is not allowed from list 'Main' (depguard)
collector/binlog_test.go|23 col 2| import 'github.com/prometheus/common/promslog' is not allowed from list 'Main' (depguard)
collector/info_schema_innodb_sys_tablespaces_test.go|22 col 2| import 'github.com/blang/semver/v4' is not allowed from list 'Main' (depguard)

Filtered Findings (0)

Annotations

Check failure on line 32 in mysqld_exporter.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] mysqld_exporter.go#L32

import 'github.com/alecthomas/kingpin/v2' is not allowed from list 'Main' (depguard)
Raw output
mysqld_exporter.go:32:2: import 'github.com/alecthomas/kingpin/v2' is not allowed from list 'Main' (depguard)
	"github.com/alecthomas/kingpin/v2"
	^

Check failure on line 35 in mysqld_exporter.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] mysqld_exporter.go#L35

import 'github.com/prometheus/client_golang/prometheus/collectors/version' is not allowed from list 'Main' (depguard)
Raw output
mysqld_exporter.go:35:2: import 'github.com/prometheus/client_golang/prometheus/collectors/version' is not allowed from list 'Main' (depguard)
	versioncollector "github.com/prometheus/client_golang/prometheus/collectors/version"
	^

Check failure on line 37 in mysqld_exporter.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] mysqld_exporter.go#L37

import 'github.com/prometheus/common/promslog' is not allowed from list 'Main' (depguard)
Raw output
mysqld_exporter.go:37:2: import 'github.com/prometheus/common/promslog' is not allowed from list 'Main' (depguard)
	"github.com/prometheus/common/promslog"
	^

Check failure on line 38 in mysqld_exporter.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] mysqld_exporter.go#L38

import 'github.com/prometheus/common/promslog/flag' is not allowed from list 'Main' (depguard)
Raw output
mysqld_exporter.go:38:2: import 'github.com/prometheus/common/promslog/flag' is not allowed from list 'Main' (depguard)
	"github.com/prometheus/common/promslog/flag"
	^

Check failure on line 45 in mysqld_exporter.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] mysqld_exporter.go#L45

import 'github.com/percona/mysqld_exporter/config' is not allowed from list 'Main' (depguard)
Raw output
mysqld_exporter.go:45:2: import 'github.com/percona/mysqld_exporter/config' is not allowed from list 'Main' (depguard)
	"github.com/percona/mysqld_exporter/config"
	^

Check failure on line 23 in probe.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] probe.go#L23

import 'github.com/percona/mysqld_exporter/collector' is not allowed from list 'Main' (depguard)
Raw output
probe.go:23:2: import 'github.com/percona/mysqld_exporter/collector' is not allowed from list 'Main' (depguard)
	"github.com/percona/mysqld_exporter/collector"
	^

Check failure on line 24 in probe.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] probe.go#L24

import 'github.com/prometheus/client_golang/prometheus' is not allowed from list 'Main' (depguard)
Raw output
probe.go:24:2: import 'github.com/prometheus/client_golang/prometheus' is not allowed from list 'Main' (depguard)
	"github.com/prometheus/client_golang/prometheus"
	^

Check failure on line 25 in probe.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] probe.go#L25

import 'github.com/prometheus/client_golang/prometheus/promhttp' is not allowed from list 'Main' (depguard)
Raw output
probe.go:25:2: import 'github.com/prometheus/client_golang/prometheus/promhttp' is not allowed from list 'Main' (depguard)
	"github.com/prometheus/client_golang/prometheus/promhttp"
	^

Check failure on line 34 in mysqld_exporter_test.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] mysqld_exporter_test.go#L34

import 'github.com/google/go-cmp/cmp' is not allowed from list 'Main' (depguard)
Raw output
mysqld_exporter_test.go:34:2: import 'github.com/google/go-cmp/cmp' is not allowed from list 'Main' (depguard)
	"github.com/google/go-cmp/cmp"
	^

Check failure on line 35 in mysqld_exporter_test.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] mysqld_exporter_test.go#L35

import 'github.com/percona/mysqld_exporter/collector' is not allowed from list 'Main' (depguard)
Raw output
mysqld_exporter_test.go:35:2: import 'github.com/percona/mysqld_exporter/collector' is not allowed from list 'Main' (depguard)
	"github.com/percona/mysqld_exporter/collector"
	^

Check failure on line 36 in mysqld_exporter_test.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] mysqld_exporter_test.go#L36

import 'github.com/prometheus/common/promslog' is not allowed from list 'Main' (depguard)
Raw output
mysqld_exporter_test.go:36:2: import 'github.com/prometheus/common/promslog' is not allowed from list 'Main' (depguard)
	"github.com/prometheus/common/promslog"
	^

Check failure on line 25 in collector/exporter.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] collector/exporter.go#L25

import 'github.com/alecthomas/kingpin/v2' is not allowed from list 'Main' (depguard)
Raw output
collector/exporter.go:25:2: import 'github.com/alecthomas/kingpin/v2' is not allowed from list 'Main' (depguard)
	"github.com/alecthomas/kingpin/v2"
	^

Check failure on line 26 in collector/exporter.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] collector/exporter.go#L26

import 'github.com/go-sql-driver/mysql' is not allowed from list 'Main' (depguard)
Raw output
collector/exporter.go:26:2: import 'github.com/go-sql-driver/mysql' is not allowed from list 'Main' (depguard)
	"github.com/go-sql-driver/mysql"
	^

Check failure on line 25 in collector/heartbeat.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] collector/heartbeat.go#L25

import 'github.com/alecthomas/kingpin/v2' is not allowed from list 'Main' (depguard)
Raw output
collector/heartbeat.go:25:2: import 'github.com/alecthomas/kingpin/v2' is not allowed from list 'Main' (depguard)
	"github.com/alecthomas/kingpin/v2"
	^

Check failure on line 24 in collector/info_schema_innodb_sys_tablespaces.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] collector/info_schema_innodb_sys_tablespaces.go#L24

import 'github.com/blang/semver/v4' is not allowed from list 'Main' (depguard)
Raw output
collector/info_schema_innodb_sys_tablespaces.go:24:2: import 'github.com/blang/semver/v4' is not allowed from list 'Main' (depguard)
	"github.com/blang/semver/v4"
	^

Check failure on line 23 in collector/instance.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] collector/instance.go#L23

import 'github.com/blang/semver/v4' is not allowed from list 'Main' (depguard)
Raw output
collector/instance.go:23:2: import 'github.com/blang/semver/v4' is not allowed from list 'Main' (depguard)
	"github.com/blang/semver/v4"
	^

Check failure on line 23 in collector/binlog_test.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] collector/binlog_test.go#L23

import 'github.com/prometheus/common/promslog' is not allowed from list 'Main' (depguard)
Raw output
collector/binlog_test.go:23:2: import 'github.com/prometheus/common/promslog' is not allowed from list 'Main' (depguard)
	"github.com/prometheus/common/promslog"
	^

Check failure on line 22 in collector/info_schema_innodb_sys_tablespaces_test.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] collector/info_schema_innodb_sys_tablespaces_test.go#L22

import 'github.com/blang/semver/v4' is not allowed from list 'Main' (depguard)
Raw output
collector/info_schema_innodb_sys_tablespaces_test.go:22:2: import 'github.com/blang/semver/v4' is not allowed from list 'Main' (depguard)
	"github.com/blang/semver/v4"
	^