Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: chrismark <chrismarkou92@gmail.com>
  • Loading branch information
ChrsMark committed Feb 27, 2020
1 parent 6681e57 commit 98bdfe2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"openmetrics": {
"labels": {
"device": "br-33d819d5f834",
"device": "br-0cb306323b90",
"job": "openmetrics"
},
"metrics": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"openmetrics": {
"labels": {
"device": "br-33d819d5f834",
"instance": "127.0.0.1:51093",
"device": "br-0cb306323b90",
"instance": "127.0.0.1:51316",
"job": "openmetrics"
},
"metrics": {
Expand All @@ -36,11 +36,12 @@
},
"openmetrics": {
"labels": {
"instance": "127.0.0.1:51093",
"job": "prometheus"
"device": "br-38425a39f36b",
"instance": "127.0.0.1:51316",
"job": "openmetrics"
},
"metrics": {
"up": 1
"node_network_carrier": 0
}
},
"service": {
Expand All @@ -60,8 +61,8 @@
},
"openmetrics": {
"labels": {
"device": "br-425cb4c454a6",
"instance": "127.0.0.1:51093",
"device": "br-38feb0aad6ab",
"instance": "127.0.0.1:51316",
"job": "openmetrics"
},
"metrics": {
Expand All @@ -85,8 +86,8 @@
},
"openmetrics": {
"labels": {
"device": "br-0cb306323b90",
"instance": "127.0.0.1:51093",
"device": "br-425cb4c454a6",
"instance": "127.0.0.1:51316",
"job": "openmetrics"
},
"metrics": {
Expand All @@ -110,8 +111,8 @@
},
"openmetrics": {
"labels": {
"device": "br-38425a39f36b",
"instance": "127.0.0.1:51093",
"device": "br-10229e3512d9",
"instance": "127.0.0.1:51316",
"job": "openmetrics"
},
"metrics": {
Expand All @@ -135,8 +136,8 @@
},
"openmetrics": {
"labels": {
"device": "br-210476dc4ef8",
"instance": "127.0.0.1:51093",
"device": "br-33d819d5f834",
"instance": "127.0.0.1:51316",
"job": "openmetrics"
},
"metrics": {
Expand All @@ -160,8 +161,8 @@
},
"openmetrics": {
"labels": {
"device": "br-3a285aa5e58c",
"instance": "127.0.0.1:51093",
"device": "br-210476dc4ef8",
"instance": "127.0.0.1:51316",
"job": "openmetrics"
},
"metrics": {
Expand All @@ -185,12 +186,11 @@
},
"openmetrics": {
"labels": {
"device": "br-10229e3512d9",
"instance": "127.0.0.1:51093",
"job": "openmetrics"
"instance": "127.0.0.1:51316",
"job": "prometheus"
},
"metrics": {
"node_network_carrier": 0
"up": 1
}
},
"service": {
Expand All @@ -211,7 +211,7 @@
"openmetrics": {
"labels": {
"device": "br-4e623477470e",
"instance": "127.0.0.1:51093",
"instance": "127.0.0.1:51316",
"job": "openmetrics"
},
"metrics": {
Expand All @@ -235,8 +235,8 @@
},
"openmetrics": {
"labels": {
"device": "br-38feb0aad6ab",
"instance": "127.0.0.1:51093",
"device": "br-3a285aa5e58c",
"instance": "127.0.0.1:51316",
"job": "openmetrics"
},
"metrics": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ package collector
import (
"testing"

"github.com/elastic/beats/libbeat/logp"
mbtest "github.com/elastic/beats/metricbeat/mb/testing"
)

func TestEventMapping(t *testing.T) {
logp.TestingSetup()
_ "github.com/elastic/beats/x-pack/metricbeat/module/openmetrics"
)

func TestData(t *testing.T) {
mbtest.TestDataFiles(t, "openmetrics", "collector")
}

0 comments on commit 98bdfe2

Please sign in to comment.