Skip to content

Commit 6c4cc8d

Browse files
fix dependencies and naming after repo location change (#19)
1 parent 1e3a8c0 commit 6c4cc8d

27 files changed

+40
-40
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GOLINTER = golangci-lint
1010
BIN_DIR = $(WORKDIR)/bin
1111
TARGET = target
1212
TARGET_DIR = $(WORKDIR)/$(TARGET)
13-
INTEGRATION := vmware-vsphere
13+
INTEGRATION := vsphere
1414
SHORT_INTEGRATION := vsphere
1515
BINARY_NAME = nri-$(INTEGRATION)
1616

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ If you have the source code and Go toolchain installed, you can build and run th
2222
$ make test
2323
$ make compile-all
2424
```
25-
The command above executes the tests for the vSphere integration and builds an executable file named `nri-vmware-vsphere` under `bin/{architecture}`.
25+
The command above executes the tests for the vSphere integration and builds an executable file named `nri-vsphere` under `bin/{architecture}`.
2626

2727
2. Run the executable with the following arguments:
2828
```bash
29-
$ ./bin/darwin/nri-vmware-vsphere --url 127.0.0.1:8989/sdk --user user --pass pass --validate_ssl false
29+
$ ./bin/darwin/nri-vsphere --url 127.0.0.1:8989/sdk --user user --pass pass --validate_ssl false
3030
```
31-
To learn more about the usage of `./bin/darwin/nri-vmware-vsphere`, pass the `-help` argument.
31+
To learn more about the usage of `./bin/darwin/nri-vsphere`, pass the `-help` argument.
3232
```bash
33-
$ ./bin/darwin/nri-vmware-vsphere -help
33+
$ ./bin/darwin/nri-vsphere -help
3434
```
3535

3636
External dependencies are managed via govendor.
3737

3838
## Contributing code
3939

40-
We welcome code contributions (in the form of pull requests) from our user community. Before submitting a pull request, please review [these guidelines](https://github.com/newrelic/nri-vmware-vsphere/blob/master/CONTRIBUTING.md).
40+
We welcome code contributions (in the form of pull requests) from our user community. Before submitting a pull request, please review [these guidelines](https://github.com/newrelic/nri-vsphere/blob/master/CONTRIBUTING.md).
4141

4242
Following these helps us efficiently review and incorporate your contribution and avoid breaking your code with future changes to the agent.
4343

THIRD_PARTY_NOTICES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In the event that a required notice is missing or incorrect, please notify us
88
by e-mailing [[email protected]](mailto:[email protected]).
99

1010
For any licenses that require the disclosure of source code, the source code
11-
can be found at https://github.com/newrelic/nri-vmware-vsphere.
11+
can be found at https://github.com/newrelic/nri-vsphere.
1212

1313
## Contents
1414

cmd/nri-vmware-vsphere/nri-vmware-vsphere.go cmd/nri-vsphere/nri-vsphere.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import (
77
"strings"
88
"sync"
99

10-
"github.com/newrelic/nri-vmware-vsphere/internal/client"
11-
"github.com/newrelic/nri-vmware-vsphere/internal/collect"
12-
"github.com/newrelic/nri-vmware-vsphere/internal/integration"
13-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
14-
"github.com/newrelic/nri-vmware-vsphere/internal/outputs"
15-
"github.com/newrelic/nri-vmware-vsphere/internal/process"
10+
"github.com/newrelic/nri-vsphere/internal/client"
11+
"github.com/newrelic/nri-vsphere/internal/collect"
12+
"github.com/newrelic/nri-vsphere/internal/integration"
13+
"github.com/newrelic/nri-vsphere/internal/load"
14+
"github.com/newrelic/nri-vsphere/internal/outputs"
15+
"github.com/newrelic/nri-vsphere/internal/process"
1616
"github.com/vmware/govmomi/view"
1717
)
1818

config/vsphere-config-win.yml.sample

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
integrations:
2-
- name: com.newrelic.vmware-vsphere
2+
- name: com.newrelic.vsphere
33
exec:
4-
- C:\Program Files\New Relic\newrelic-infra\newrelic-integrations\bin\nri-vmware-vsphere.exe
4+
- C:\Program Files\New Relic\newrelic-infra\newrelic-integrations\bin\nri-vsphere.exe
55
# vSphere API connection data (Vcenter or ESXi servers)
66
- --url
77
- https://192.168.0.210/sdk

config/vsphere-config.yml.sample

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
integrations:
2-
- name: com.newrelic.vmware-vsphere
2+
- name: com.newrelic.vsphere
33
exec:
4-
- /var/db/newrelic-infra/newrelic-integrations/bin/nri-vmware-vsphere
4+
- /var/db/newrelic-infra/newrelic-integrations/bin/nri-vsphere
55
# vSphere API connection data (Vcenter or ESXi servers)
66
- --url
77
- https://192.168.0.210/sdk

integration-test/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ RUN git clone https://github.com/vmware/govmomi.git
77
WORKDIR /go/src/github.com/vmware/govmomi/vcsim
88
RUN make all
99

10-
WORKDIR /go/src/github.com/newrelic/nri-vmware-vsphere/
10+
WORKDIR /go/src/github.com/newrelic/nri-vsphere/
1111
COPY . .
1212

13-
#Compiling nri-vmware-vsphere, it will avaible at /go/src/github.com/newrelic/nri-vmware-vsphere/bin/linux/nri-vmware-vsphere
13+
#Compiling nri-vsphere, it will avaible at /go/src/github.com/newrelic/nri-vsphere/bin/linux/nri-vsphere
1414
RUN make compile-linux
1515

integration-test/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ services:
88
dockerfile: ./integration-test/Dockerfile
99
ports:
1010
- "8989:8989"
11-
entrypoint: "/go/src/github.com/vmware/govmomi/vcsim/vcsim -l :8989 -load /go/src/github.com/newrelic/nri-vmware-vsphere/integration-test/my-vcenter"
11+
entrypoint: "/go/src/github.com/vmware/govmomi/vcsim/vcsim -l :8989 -load /go/src/github.com/newrelic/nri-vsphere/integration-test/my-vcenter"
1212

integration-test/expectedOutput/default

+1-1
Large diffs are not rendered by default.

integration-test/nri-vmware-vspere_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func exectuteIntegration() ([]byte, []byte) {
5252
var cmdLine []string
5353
cmdLine = append(cmdLine, "exec", "-i")
5454
cmdLine = append(cmdLine, "vmware-integration-with-mock")
55-
cmdLine = append(cmdLine, "/go/src/github.com/newrelic/nri-vmware-vsphere/bin/nri-vmware-vsphere",
55+
cmdLine = append(cmdLine, "/go/src/github.com/newrelic/nri-vsphere/bin/nri-vsphere",
5656
"-user", "user",
5757
"-pass", "pass",
5858
"-url", "127.0.0.1:8989/sdk",

internal/collect/clusters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package collect
55

66
import (
77
"context"
8-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
8+
"github.com/newrelic/nri-vsphere/internal/load"
99
"github.com/vmware/govmomi/vim25/mo"
1010
)
1111

internal/collect/datacenters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package collect
66
import (
77
"context"
88

9-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
9+
"github.com/newrelic/nri-vsphere/internal/load"
1010
"github.com/vmware/govmomi/vim25/mo"
1111
)
1212

internal/collect/datastores.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package collect
66
import (
77
"context"
88

9-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
9+
"github.com/newrelic/nri-vsphere/internal/load"
1010
"github.com/vmware/govmomi/vim25/mo"
1111
)
1212

internal/collect/hosts.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package collect
66
import (
77
"context"
88

9-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
9+
"github.com/newrelic/nri-vsphere/internal/load"
1010
"github.com/vmware/govmomi/vim25/mo"
1111
)
1212

internal/collect/networks.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package collect
66
import (
77
"context"
88

9-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
9+
"github.com/newrelic/nri-vsphere/internal/load"
1010
"github.com/vmware/govmomi/vim25/mo"
1111
)
1212

internal/collect/resourcepools.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package collect
66
import (
77
"context"
88

9-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
9+
"github.com/newrelic/nri-vsphere/internal/load"
1010
"github.com/vmware/govmomi/vim25/mo"
1111
)
1212

internal/collect/vms.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package collect
66
import (
77
"context"
88

9-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
9+
"github.com/newrelic/nri-vsphere/internal/load"
1010
"github.com/vmware/govmomi/vim25/mo"
1111
)
1212

internal/integration/integration.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package integration
66
import (
77
"os"
88

9-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
9+
"github.com/newrelic/nri-vsphere/internal/load"
1010
"github.com/sirupsen/Logrus"
1111
)
1212

internal/load/load.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ type Config struct {
4444
func NewConfig() *Config {
4545
return &Config{
4646
Logrus: logrus.New(),
47-
IntegrationName: "com.newrelic.vmware-vsphere",
48-
IntegrationNameShort: "vmware-vsphere",
47+
IntegrationName: "com.newrelic.vsphere",
48+
IntegrationNameShort: "vsphere",
4949
IntegrationVersion: "Unknown-SNAPSHOT",
5050
StartTime: time.Now().UnixNano() / int64(time.Millisecond),
5151
IsVcenterAPIType: false,

internal/outputs/infra.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99

1010
Integration "github.com/newrelic/infra-integrations-sdk/integration"
11-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
11+
"github.com/newrelic/nri-vsphere/internal/load"
1212
)
1313

1414
// InfraIntegration Creates Infrastructure SDK Integration

internal/process/cluster.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package process
55

66
import (
77
"github.com/newrelic/infra-integrations-sdk/data/metric"
8-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
8+
"github.com/newrelic/nri-vsphere/internal/load"
99
)
1010

1111
func createClusterSamples(config *load.Config, timestamp int64) {

internal/process/datacenter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package process
55

66
import (
77
"github.com/newrelic/infra-integrations-sdk/data/metric"
8-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
8+
"github.com/newrelic/nri-vsphere/internal/load"
99
)
1010

1111
func createDatacenterSamples(config *load.Config, timestamp int64) {

internal/process/datastores.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"fmt"
88

99
"github.com/newrelic/infra-integrations-sdk/data/metric"
10-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
10+
"github.com/newrelic/nri-vsphere/internal/load"
1111
"github.com/vmware/govmomi/vim25/types"
1212
)
1313

internal/process/hosts.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package process
55

66
import (
77
"github.com/newrelic/infra-integrations-sdk/data/metric"
8-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
8+
"github.com/newrelic/nri-vsphere/internal/load"
99
"strconv"
1010
)
1111

internal/process/process.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010

1111
"github.com/newrelic/infra-integrations-sdk/data/metric"
12-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
12+
"github.com/newrelic/nri-vsphere/internal/load"
1313
)
1414

1515
const (

internal/process/resourcepool.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package process
55

66
import (
77
"github.com/newrelic/infra-integrations-sdk/data/metric"
8-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
8+
"github.com/newrelic/nri-vsphere/internal/load"
99
)
1010

1111
func createResourcePoolSamples(config *load.Config, timestamp int64) {

internal/process/vms.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"fmt"
88

99
"github.com/newrelic/infra-integrations-sdk/data/metric"
10-
"github.com/newrelic/nri-vmware-vsphere/internal/load"
10+
"github.com/newrelic/nri-vsphere/internal/load"
1111
)
1212

1313
func createVirtualMachineSamples(config *load.Config, timestamp int64) {

0 commit comments

Comments
 (0)