Skip to content

Commit 691ea52

Browse files
authored
Merge pull request #36 from sdmarshall79/dev
Fix imports for mqmetric and ibmmq
2 parents a8f57c3 + c4f8728 commit 691ea52

File tree

23 files changed

+62
-43
lines changed

23 files changed

+62
-43
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ the Git client, and the C compiler.
9696
workspace. Use "src" as the destination, to get the directory created
9797
automatically; this path will then be searched by the Go compiler.
9898

99-
git clone http://github.com/ibm-messaging/mq-golang src
99+
git clone https://github.com/ibm-messaging/mq-golang.git src/github.com/ibm-messaging/mq-golang
100100

101101
* Use Go to download prerequisite components for any monitors you are interested
102102
in running. The logrus package is required for all of the monitors; but not
@@ -112,7 +112,7 @@ all of the monitors require further downloads.
112112

113113
* Compile the components you are interested in. For example
114114

115-
go install ./src/cmd/mq_prometheus
115+
go install ./src/github.com/ibm-messaging/mq-golang/cmd/mq_prometheus
116116

117117
At this point, you should have a compiled copy of the code in $GOPATH/bin.
118118

@@ -138,4 +138,3 @@ For feedback and issues relating specifically to this package, please use the [G
138138
Contributions to this package can be accepted under the terms of the IBM Contributor License Agreement,
139139
found in the [CLA file](CLA.md) of this repository. When submitting a pull request, you must include a statement stating
140140
you accept the terms in the CLA.
141-

cmd/mq_aws/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ package main
2020

2121
import (
2222
"flag"
23-
"mqmetric"
23+
24+
"github.com/ibm-messaging/mq-golang/mqmetric"
2425
)
2526

2627
type mqCloudWatchConfig struct {

cmd/mq_aws/exporter.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ and update the various data points.
2626
*/
2727

2828
import (
29+
"time"
30+
2931
log "github.com/Sirupsen/logrus"
3032
"github.com/aws/aws-sdk-go/aws"
3133
"github.com/aws/aws-sdk-go/aws/session"
3234
"github.com/aws/aws-sdk-go/service/cloudwatch"
33-
"mqmetric"
34-
"time"
35+
"github.com/ibm-messaging/mq-golang/mqmetric"
3536
)
3637

3738
type client struct {

cmd/mq_aws/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ package main
1919
*/
2020

2121
import (
22-
log "github.com/Sirupsen/logrus"
23-
"mqmetric"
2422
"os"
2523
"time"
24+
25+
log "github.com/Sirupsen/logrus"
26+
"github.com/ibm-messaging/mq-golang/mqmetric"
2627
)
2728

2829
func initLog() {

cmd/mq_coll/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ package main
2020

2121
import (
2222
"flag"
23-
"mqmetric"
2423
"os"
24+
25+
"github.com/ibm-messaging/mq-golang/mqmetric"
2526
)
2627

2728
type mqTTYConfig struct {

cmd/mq_coll/exporter.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ and update the various data points.
2626

2727
import (
2828
"fmt"
29-
log "github.com/Sirupsen/logrus"
30-
"mqmetric"
3129
"strings"
30+
31+
log "github.com/Sirupsen/logrus"
32+
"github.com/ibm-messaging/mq-golang/mqmetric"
3233
)
3334

3435
var (

cmd/mq_coll/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ package main
1919
*/
2020

2121
import (
22-
log "github.com/Sirupsen/logrus"
23-
"mqmetric"
2422
"os"
2523
"time"
24+
25+
log "github.com/Sirupsen/logrus"
26+
"github.com/ibm-messaging/mq-golang/mqmetric"
2627
)
2728

2829
func initLog() {

cmd/mq_influx/config.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ package main
2121
import (
2222
"bufio"
2323
"flag"
24-
log "github.com/Sirupsen/logrus"
25-
"mqmetric"
2624
"os"
2725
"strings"
26+
27+
log "github.com/Sirupsen/logrus"
28+
"github.com/ibm-messaging/mq-golang/mqmetric"
2829
)
2930

3031
type mqInfluxConfig struct {

cmd/mq_influx/exporter.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ and update the various data points.
2626
*/
2727

2828
import (
29+
"time"
30+
2931
log "github.com/Sirupsen/logrus"
32+
"github.com/ibm-messaging/mq-golang/mqmetric"
3033
client "github.com/influxdata/influxdb/client/v2"
31-
"mqmetric"
32-
"time"
3334
)
3435

3536
var (

cmd/mq_influx/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ package main
1919
*/
2020

2121
import (
22-
log "github.com/Sirupsen/logrus"
23-
"github.com/influxdata/influxdb/client/v2"
24-
"mqmetric"
2522
"os"
2623
"time"
24+
25+
log "github.com/Sirupsen/logrus"
26+
"github.com/ibm-messaging/mq-golang/mqmetric"
2727
)
2828

2929
func initLog() {

0 commit comments

Comments
 (0)