Skip to content

Commit 3c288c4

Browse files
committed
rename
1 parent 5c6e879 commit 3c288c4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cmd/postgres_exporter/pg_version.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ import (
1616
"github.com/blang/semver"
1717
)
1818

19-
type VersionQueries struct {
19+
type VersionQ struct {
2020
Version string `yaml:"version"`
2121
ver semver.Version
2222
Query string `yaml:"query"`
2323
}
2424

25-
func (v *VersionQueries) parseVerTolerant() error {
25+
func (v *VersionQ) parseVerTolerant() error {
2626
bcVer, err := semver.ParseTolerant(v.Version)
2727
if err != nil {
2828
return err

cmd/postgres_exporter/postgres_exporter.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ type Mapping map[string]MappingOptions
119119

120120
// nolint: golint
121121
type UserQuery struct {
122-
Query string `yaml:"query"`
123-
Metrics []Mapping `yaml:"metrics"`
124-
VersionQueries []VersionQueries `yaml:"versionQueries"`
125-
Master bool `yaml:"master"` // Querying only for master database
126-
CacheSeconds uint64 `yaml:"cache_seconds"` // Number of seconds to cache the namespace result metrics for.
127-
RunOnServer string `yaml:"runonserver"` // Querying to run on which server version
122+
Query string `yaml:"query"`
123+
Metrics []Mapping `yaml:"metrics"`
124+
VersionQueries []VersionQ `yaml:"versionQueries"`
125+
Master bool `yaml:"master"` // Querying only for master database
126+
CacheSeconds uint64 `yaml:"cache_seconds"` // Number of seconds to cache the namespace result metrics for.
127+
RunOnServer string `yaml:"runonserver"` // Querying to run on which server version
128128
}
129129

130130
// nolint: golint

0 commit comments

Comments
 (0)