Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Pérez-Aradros Herce committed Jan 8, 2019
1 parent c2fc75e commit 86bc56a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion metricbeat/module/prometheus/_meta/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM prom/prometheus:v1.5.1
FROM prom/prometheus:v2.6.0
HEALTHCHECK --interval=1s --retries=90 CMD nc -w 1 localhost 9090 </dev/null
EXPOSE 9090
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,15 @@ import (

"github.com/elastic/beats/libbeat/tests/compose"
mbtest "github.com/elastic/beats/metricbeat/mb/testing"

"github.com/stretchr/testify/assert"
)

// These tests are running with prometheus metrics as an example as this container is already available
// Every prometheus exporter should work here.

func TestFetch(t *testing.T) {
compose.EnsureUp(t, "prometheus")

ms := mbtest.NewReportingMetricSetV2(t, getConfig())
err := mbtest.WriteEventsReporterV2(ms, t, "")
if !assert.NoError(t, err) {
t.FailNow()
}
}

func TestData(t *testing.T) {
compose.EnsureUp(t, "prometheus")

ms := mbtest.NewReportingMetricSetV2(t, getConfig())
err := mbtest.WriteEventsReporterV2(ms, t, "")
if err != nil {
t.Fatal("write", err)
t.Fatal(err)
}
}

Expand Down

0 comments on commit 86bc56a

Please sign in to comment.