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
Fix lint and fmt errors.
This commit is contained in:
@@ -133,10 +133,8 @@ func (s *pgSetting) normaliseUnit() (val float64, unit string, err error) {
|
|||||||
val *= math.Pow(2, 15)
|
val *= math.Pow(2, 15)
|
||||||
case "16MB":
|
case "16MB":
|
||||||
val *= math.Pow(2, 24)
|
val *= math.Pow(2, 24)
|
||||||
}
|
|
||||||
case "32MB":
|
case "32MB":
|
||||||
val *= math.Pow(2, 25)
|
val *= math.Pow(2, 25)
|
||||||
}
|
|
||||||
case "64MB":
|
case "64MB":
|
||||||
val *= math.Pow(2, 26)
|
val *= math.Pow(2, 26)
|
||||||
}
|
}
|
||||||
|
@@ -92,7 +92,7 @@ var fixtures = []fixture{
|
|||||||
d: "Desc{fqName: \"pg_settings_16_mb_real_fixture_metric_bytes\", help: \"Foo foo foo [Units converted to bytes.]\", constLabels: {}, variableLabels: []}",
|
d: "Desc{fqName: \"pg_settings_16_mb_real_fixture_metric_bytes\", help: \"Foo foo foo [Units converted to bytes.]\", constLabels: {}, variableLabels: []}",
|
||||||
v: 5.0331648e+07,
|
v: 5.0331648e+07,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
p: pgSetting{
|
p: pgSetting{
|
||||||
name: "32_mb_real_fixture_metric",
|
name: "32_mb_real_fixture_metric",
|
||||||
setting: "3.0",
|
setting: "3.0",
|
||||||
@@ -108,7 +108,7 @@ var fixtures = []fixture{
|
|||||||
d: "Desc{fqName: \"pg_settings_32_mb_real_fixture_metric_bytes\", help: \"Foo foo foo [Units converted to bytes.]\", constLabels: {}, variableLabels: []}",
|
d: "Desc{fqName: \"pg_settings_32_mb_real_fixture_metric_bytes\", help: \"Foo foo foo [Units converted to bytes.]\", constLabels: {}, variableLabels: []}",
|
||||||
v: 1.00663296e+08,
|
v: 1.00663296e+08,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
p: pgSetting{
|
p: pgSetting{
|
||||||
name: "64_mb_real_fixture_metric",
|
name: "64_mb_real_fixture_metric",
|
||||||
setting: "3.0",
|
setting: "3.0",
|
||||||
|
Reference in New Issue
Block a user