Skip to content

Commit f0f3300

Browse files
authored
Merge pull request #43 from parrobe/master
Add full repository details in go import statements for easier building
2 parents a8f57c3 + a0c1987 commit f0f3300

File tree

23 files changed

+66
-43
lines changed

23 files changed

+66
-43
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@ not include spaces or other special characters, as discussed above.
9292
* Make sure your PATH includes routes to the Go compiler ($GOROOT/bin),
9393
the Git client, and the C compiler.
9494
* Change directory to the workspace you created earlier. (cd $GOPATH)
95+
* Create the following gopath directory structure `src/github.com/ibm-messaging`
96+
* Navigate to the directory you just created `$GOPATH/src/github.com/ibm-messaging`
9597
* Use git to get a copy of the MQ components into a new directory in the
96-
workspace. Use "src" as the destination, to get the directory created
98+
workspace. Use "mq-golang" as the destination, to get the directory created
9799
automatically; this path will then be searched by the Go compiler.
98100

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

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

113115
* Compile the components you are interested in. For example
114116

115-
go install ./src/cmd/mq_prometheus
117+
go install ./mq-golang/cmd/mq_prometheus
116118

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

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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ 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"
27+
client "github.com/influxdata/influxdb/client/v2"
2728
)
2829

2930
func initLog() {

0 commit comments

Comments
 (0)