You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/mq_opentsdb/config.go
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ var cfy mqExporterConfigYaml
52
52
/*
53
53
initConfig parses the command line parameters.
54
54
*/
55
-
funcinitConfig() {
55
+
funcinitConfig() error{
56
56
varerrerror
57
57
58
58
cf.InitConfig(&config.cf)
@@ -63,7 +63,7 @@ func initConfig() {
63
63
cf.AddParm(&config.ci.MaxPoints, 30, cf.CP_INT, "ibmmq.maxPoints", "opentsdb", "maxPoints", "Maximum number of points to include in each write to the server")
64
64
cf.AddParm(&config.ci.MetricPrefix, "ibmmq", cf.CP_STR, "ibmmq.seriesPrefix", "opentsdb", "seriesPrefix", "Prefix for all the MQ metric series")
65
65
66
-
cf.ParseParms()
66
+
err=cf.ParseParms()
67
67
68
68
iferr==nil {
69
69
ifconfig.cf.ConfigFile!="" {
@@ -81,6 +81,7 @@ func initConfig() {
81
81
}
82
82
}
83
83
}
84
+
84
85
iferr==nil {
85
86
cf.InitLog(config.cf)
86
87
}
@@ -103,4 +104,6 @@ func initConfig() {
103
104
log.Errorln("Warning: Data from 'RESET QSTATS' has been requested.")
104
105
log.Errorln("Ensure no other monitoring applications are also using that command.")
0 commit comments