@@ -5,6 +5,7 @@ package main
5
5
6
6
import (
7
7
"fmt"
8
+ "log/slog"
8
9
"os"
9
10
"reflect"
10
11
"sort"
@@ -26,27 +27,27 @@ func main() {
26
27
27
28
collectors = append (
28
29
collectors ,
29
- exporter .NewDashboardCollector (nil , nil , nil , nil , config .Load ().Target ).Metrics ()... ,
30
+ exporter .NewDashboardCollector (slog . Default () , nil , nil , nil , config .Load ().Target ).Metrics ()... ,
30
31
)
31
32
32
33
collectors = append (
33
34
collectors ,
34
- exporter .NewSecurityGroupCollector (nil , nil , nil , nil , config .Load ().Target ).Metrics ()... ,
35
+ exporter .NewSecurityGroupCollector (slog . Default () , nil , nil , nil , config .Load ().Target ).Metrics ()... ,
35
36
)
36
37
37
38
collectors = append (
38
39
collectors ,
39
- exporter .NewServerCollector (nil , nil , nil , nil , config .Load ().Target ).Metrics ()... ,
40
+ exporter .NewServerCollector (slog . Default () , nil , nil , nil , config .Load ().Target ).Metrics ()... ,
40
41
)
41
42
42
43
collectors = append (
43
44
collectors ,
44
- exporter .NewSnapshotCollector (nil , nil , nil , nil , config .Load ().Target ).Metrics ()... ,
45
+ exporter .NewSnapshotCollector (slog . Default () , nil , nil , nil , config .Load ().Target ).Metrics ()... ,
45
46
)
46
47
47
48
collectors = append (
48
49
collectors ,
49
- exporter .NewVolumeCollector (nil , nil , nil , nil , config .Load ().Target ).Metrics ()... ,
50
+ exporter .NewVolumeCollector (slog . Default () , nil , nil , nil , config .Load ().Target ).Metrics ()... ,
50
51
)
51
52
52
53
metrics := make ([]metric , 0 )
0 commit comments