Skip to content

Commit b14f47a

Browse files
committed
IP binding address (#51) now configurable
Sensible defaults if stanzas missing from YAML (#50)
1 parent dce4156 commit b14f47a

File tree

15 files changed

+50
-41
lines changed

15 files changed

+50
-41
lines changed

cmd/mq_aws/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ about specific queues or the queue manager.
6464

6565
More information on the metrics collected through the publish/subscribe
6666
interface can be found in the [MQ KnowledgeCenter]
67-
(https://www.ibm.com/support/knowledgecenter/SSFKSJ_9.1.0/com.ibm.mq.mon.doc/mo00013_.htm)
67+
(https://www.ibm.com/support/knowledgecenter/SSFKSJ_latest/com.ibm.mq.mon.doc/mo00013_.htm)
6868
with further description in [an MQDev blog entry]
6969
(https://www.ibm.com/developerworks/community/blogs/messaging/entry/Statistics_published_to_the_system_topic_in_MQ_v9?lang=en)
7070

cmd/mq_aws/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func initConfig() {
7676
if config.cf.ConfigFile != "" {
7777
// Set defaults
7878
cfy.Global.UsePublications = true
79-
err := cf.ReadConfigFile(config.cf.ConfigFile, &cfy)
79+
err = cf.ReadConfigFile(config.cf.ConfigFile, &cfy)
8080
if err == nil {
8181
cf.CopyYamlConfig(&config.cf, cfy.Global, cfy.Connection, cfy.Objects)
8282
config.ci = cfy.Cloudwatch

cmd/mq_coll/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ about specific queues or the queue manager.
5656

5757
More information on the metrics collected through the publish/subscribe
5858
interface can be found in the [MQ KnowledgeCenter]
59-
(https://www.ibm.com/support/knowledgecenter/SSFKSJ_9.1.0/com.ibm.mq.mon.doc/mo00013_.htm)
59+
(https://www.ibm.com/support/knowledgecenter/SSFKSJ_latest/com.ibm.mq.mon.doc/mo00013_.htm)
6060
with further description in [an MQDev blog entry]
6161
(https://www.ibm.com/developerworks/community/blogs/messaging/entry/Statistics_published_to_the_system_topic_in_MQ_v9?lang=en)
6262

cmd/mq_coll/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
/*
4-
Copyright (c) IBM Corporation 2016
4+
Copyright (c) IBM Corporation 2016,2020
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -71,7 +71,7 @@ func initConfig() {
7171
if config.cf.ConfigFile != "" {
7272
// Set defaults
7373
cfy.Global.UsePublications = true
74-
err := cf.ReadConfigFile(config.cf.ConfigFile, &cfy)
74+
err = cf.ReadConfigFile(config.cf.ConfigFile, &cfy)
7575
if err == nil {
7676
cf.CopyYamlConfig(&config.cf, cfy.Global, cfy.Connection, cfy.Objects)
7777
config.interval = cfy.Collectd.Interval

cmd/mq_influx/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ about specific objects or the queue manager.
6060

6161
More information on the metrics collected through the publish/subscribe
6262
interface can be found in the [MQ KnowledgeCenter]
63-
(https://www.ibm.com/support/knowledgecenter/SSFKSJ_9.1.0/com.ibm.mq.mon.doc/mo00013_.htm)
63+
(https://www.ibm.com/support/knowledgecenter/SSFKSJ_latest/com.ibm.mq.mon.doc/mo00013_.htm)
6464
with further description in [an MQDev blog entry]
6565
(https://www.ibm.com/developerworks/community/blogs/messaging/entry/Statistics_published_to_the_system_topic_in_MQ_v9?lang=en)
6666

cmd/mq_influx/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func initConfig() error {
8080
if config.cf.ConfigFile != "" {
8181
// Set defaults
8282
cfy.Global.UsePublications = true
83-
err := cf.ReadConfigFile(config.cf.ConfigFile, &cfy)
83+
err = cf.ReadConfigFile(config.cf.ConfigFile, &cfy)
8484
if err == nil {
8585
cf.CopyYamlConfig(&config.cf, cfy.Global, cfy.Connection, cfy.Objects)
8686
config.ci = cfy.Influx

cmd/mq_json/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jq -c '.collectionTime.timeStamp as $t | .points[] |
103103
Once the monitor program has been started, you will see metrics being available.
104104
More information on the metrics collected through the publish/subscribe
105105
interface can be found in the [MQ KnowledgeCenter]
106-
(https://www.ibm.com/support/knowledgecenter/SSFKSJ_9.1.0/com.ibm.mq.mon.doc/mo00013_.htm)
106+
(https://www.ibm.com/support/knowledgecenter/SSFKSJ_latest/com.ibm.mq.mon.doc/mo00013_.htm)
107107
with further description in [an MQDev blog entry]
108108
(https://www.ibm.com/developerworks/community/blogs/messaging/entry/Statistics_published_to_the_system_topic_in_MQ_v9?lang=en)
109109

cmd/mq_json/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ func initConfig() error {
6464
if config.cf.ConfigFile != "" {
6565
// Set defaults
6666
cfy.Global.UsePublications = true
67-
err := cf.ReadConfigFile(config.cf.ConfigFile, &cfy)
67+
err = cf.ReadConfigFile(config.cf.ConfigFile, &cfy)
6868
if err == nil {
6969
cf.CopyYamlConfig(&config.cf, cfy.Global, cfy.Connection, cfy.Objects)
70-
config.interval = cfy.JSON.Interval
70+
config.interval = cf.CopyIfSet(config.interval, cfy.JSON.Interval)
7171
}
7272
}
7373
}

cmd/mq_opentsdb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ about specific object or the queue manager.
5757

5858
More information on the metrics collected through the publish/subscribe
5959
interface can be found in the [MQ KnowledgeCenter]
60-
(https://www.ibm.com/support/knowledgecenter/SSFKSJ_9.1.0/com.ibm.mq.mon.doc/mo00013_.htm)
60+
(https://www.ibm.com/support/knowledgecenter/SSFKSJ_latest/com.ibm.mq.mon.doc/mo00013_.htm)
6161
with further description in [an MQDev blog entry]
6262
(https://www.ibm.com/developerworks/community/blogs/messaging/entry/Statistics_published_to_the_system_topic_in_MQ_v9?lang=en)
6363

cmd/mq_opentsdb/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func initConfig() {
7777
if config.cf.ConfigFile != "" {
7878
// Set defaults
7979
cfy.Global.UsePublications = true
80-
err := cf.ReadConfigFile(config.cf.ConfigFile, &cfy)
80+
err = cf.ReadConfigFile(config.cf.ConfigFile, &cfy)
8181
if err == nil {
8282
cf.CopyYamlConfig(&config.cf, cfy.Global, cfy.Connection, cfy.Objects)
8383
config.ci = cfy.OpenTSDB

0 commit comments

Comments
 (0)