forked from elastic/e2e-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a28658d
commit 4f0c9ba
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: '3' | ||
services: | ||
vsphere: | ||
image: "nimmis/vcsim:${vsphereTag}" | ||
container_name: vsphere | ||
healthcheck: | ||
test: ["CMD", "curl", "--write-out", "'HTTP %{http_code}'", "--silent", "--output", "/dev/null", "http://vsphere:443/"] | ||
retries: 10 | ||
interval: 10s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
metricbeat.config: | ||
modules: | ||
path: ${path.config}/modules.d/*.yml | ||
# Reload module configs as they change: | ||
reload.enabled: false | ||
|
||
metricbeat.modules: | ||
- module: vsphere | ||
metricsets: | ||
- datastore | ||
- host | ||
- virtualmachine | ||
enabled: true | ||
period: 5s | ||
hosts: ["https://vsphere:443/sdk"] | ||
username: "user" | ||
password: "pass" | ||
insecure: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@vsphere | ||
Feature: As a Metricbeat developer I want to check that the vSphere module works as expected | ||
|
||
Scenario Outline: Check module is sending metrics to Elasticsearch | ||
Given vSphere "<vsphere_version>" is running for metricbeat "<metricbeat_version>" | ||
And metricbeat "<metricbeat_version>" is installed and configured for vSphere module | ||
Then there are no errors in the index | ||
Examples: | ||
| vsphere_version | metricbeat_version | | ||
| latest | 7.3.0 | | ||
| latest | 8.0.0-SNAPSHOT | |