Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ not include spaces or other special characters, as discussed above.
* Make sure your PATH includes routes to the Go compiler ($GOROOT/bin),
the Git client, and the C compiler.
* Change directory to the workspace you created earlier. (cd $GOPATH)
* Create the following gopath directory structure `src/github.com/ibm-messaging`
* Navigate to the directory you just created `$GOPATH/src/github.com/ibm-messaging`
* Use git to get a copy of the MQ components into a new directory in the
workspace. Use "src" as the destination, to get the directory created
workspace. Use "mq-golang" as the destination, to get the directory created
automatically; this path will then be searched by the Go compiler.

git clone http://github.com/ibm-messaging/mq-golang src
git clone http://github.com/ibm-messaging/mq-golang mq-golang

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

* Compile the components you are interested in. For example

go install ./src/cmd/mq_prometheus
go install ./mq-golang/cmd/mq_prometheus

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

Expand Down
3 changes: 2 additions & 1 deletion cmd/mq_aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ package main

import (
"flag"
"mqmetric"

"github.com/ibm-messaging/mq-golang/mqmetric"
)

type mqCloudWatchConfig struct {
Expand Down
5 changes: 3 additions & 2 deletions cmd/mq_aws/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ and update the various data points.
*/

import (
"time"

log "github.com/Sirupsen/logrus"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloudwatch"
"mqmetric"
"time"
"github.com/ibm-messaging/mq-golang/mqmetric"
)

type client struct {
Expand Down
5 changes: 3 additions & 2 deletions cmd/mq_aws/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ package main
*/

import (
log "github.com/Sirupsen/logrus"
"mqmetric"
"os"
"time"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
)

func initLog() {
Expand Down
3 changes: 2 additions & 1 deletion cmd/mq_coll/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ package main

import (
"flag"
"mqmetric"
"os"

"github.com/ibm-messaging/mq-golang/mqmetric"
)

type mqTTYConfig struct {
Expand Down
5 changes: 3 additions & 2 deletions cmd/mq_coll/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ and update the various data points.

import (
"fmt"
log "github.com/Sirupsen/logrus"
"mqmetric"
"strings"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
)

var (
Expand Down
5 changes: 3 additions & 2 deletions cmd/mq_coll/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ package main
*/

import (
log "github.com/Sirupsen/logrus"
"mqmetric"
"os"
"time"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
)

func initLog() {
Expand Down
5 changes: 3 additions & 2 deletions cmd/mq_influx/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ package main
import (
"bufio"
"flag"
log "github.com/Sirupsen/logrus"
"mqmetric"
"os"
"strings"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
)

type mqInfluxConfig struct {
Expand Down
5 changes: 3 additions & 2 deletions cmd/mq_influx/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ and update the various data points.
*/

import (
"time"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
client "github.com/influxdata/influxdb/client/v2"
"mqmetric"
"time"
)

var (
Expand Down
7 changes: 4 additions & 3 deletions cmd/mq_influx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ package main
*/

import (
log "github.com/Sirupsen/logrus"
"github.com/influxdata/influxdb/client/v2"
"mqmetric"
"os"
"time"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
client "github.com/influxdata/influxdb/client/v2"
)

func initLog() {
Expand Down
3 changes: 2 additions & 1 deletion cmd/mq_json/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ package main

import (
"flag"
"mqmetric"

"github.com/ibm-messaging/mq-golang/mqmetric"
)

type mqTTYConfig struct {
Expand Down
5 changes: 3 additions & 2 deletions cmd/mq_json/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ and update the various data points.

import (
"fmt"
log "github.com/Sirupsen/logrus"
"math"
"mqmetric"
"strings"
"time"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
)

var (
Expand Down
5 changes: 3 additions & 2 deletions cmd/mq_json/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ package main
*/

import (
log "github.com/Sirupsen/logrus"
"mqmetric"
"os"
"time"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
)

func initLog() {
Expand Down
5 changes: 3 additions & 2 deletions cmd/mq_opentsdb/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ package main
import (
"bufio"
"flag"
log "github.com/Sirupsen/logrus"
"mqmetric"
"os"
"strings"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
)

type mqOpenTSDBConfig struct {
Expand Down
5 changes: 3 additions & 2 deletions cmd/mq_opentsdb/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ and update the various data points.

import (
"bytes"
log "github.com/Sirupsen/logrus"
"io/ioutil"
"mqmetric"
"net/http"
"net/url"
"time"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
)

type client struct {
Expand Down
5 changes: 3 additions & 2 deletions cmd/mq_opentsdb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ package main
*/

import (
log "github.com/Sirupsen/logrus"
"mqmetric"
"os"
"time"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
)

func initLog() {
Expand Down
3 changes: 2 additions & 1 deletion cmd/mq_prometheus/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ import (
"bufio"
"flag"
"fmt"
"mqmetric"
"os"

"github.com/ibm-messaging/mq-golang/mqmetric"
)

type mqExporterConfig struct {
Expand Down
7 changes: 4 additions & 3 deletions cmd/mq_prometheus/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ and update the various Gauges.
*/

import (
log "github.com/Sirupsen/logrus"
"github.com/prometheus/client_golang/prometheus"
"mqmetric"
"strings"
"sync"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
"github.com/prometheus/client_golang/prometheus"
)

type exporter struct {
Expand Down
7 changes: 4 additions & 3 deletions cmd/mq_prometheus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ package main
*/

import (
log "github.com/Sirupsen/logrus"
"github.com/prometheus/client_golang/prometheus"
"mqmetric"
"net/http"
"os"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/mqmetric"
"github.com/prometheus/client_golang/prometheus"
)

func initLog() {
Expand Down
3 changes: 2 additions & 1 deletion cmd/samples/clientconn/clientconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ package main
import (
"bufio"
"fmt"
"ibmmq"
"os"
"time"

"github.com/ibm-messaging/mq-golang/ibmmq"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion cmd/samples/mqitest/mqitest.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ package main

import (
"fmt"
"ibmmq"
"os"
"strings"

"github.com/ibm-messaging/mq-golang/ibmmq"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions mqmetric/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ give a good demonstration of the process, which is followed here.
import (
"bufio"
"fmt"
log "github.com/Sirupsen/logrus"
"ibmmq"
"os"
"strings"

log "github.com/Sirupsen/logrus"
"github.com/ibm-messaging/mq-golang/ibmmq"
)

// MonElement describes the real metric element generated by MQ
Expand Down
2 changes: 1 addition & 1 deletion mqmetric/mqif.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ don't need to repeat common setups eg of MQMD or MQSD structures.

import (
log "github.com/Sirupsen/logrus"
"ibmmq"
"github.com/ibm-messaging/mq-golang/ibmmq"
)

var (
Expand Down