You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-12 14:02:47 +03:00
fixed version parsing for Windows and EnterpriseDB (#151)
* fixed version parsing for Windows and EnterpriseDB * fixed formatting
This commit is contained in:
committed by
Will Rouesnel
parent
5b9fea01ee
commit
b0d5700ec0
@@ -80,7 +80,7 @@ func (cu *ColumnUsage) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
}
|
||||
|
||||
// Regex used to get the "short-version" from the postgres version field.
|
||||
var versionRegex = regexp.MustCompile(`^\w+ ((\d+)(\.\d+)?(\.\d+)?)\s`)
|
||||
var versionRegex = regexp.MustCompile(`^\w+ ((\d+)(\.\d+)?(\.\d+)?)`)
|
||||
var lowestSupportedVersion = semver.MustParse("9.1.0")
|
||||
|
||||
// Parses the version of postgres into the short version string we can use to
|
||||
|
Reference in New Issue
Block a user