Skip to content

Commit

Permalink
Update prometheus to rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
smarterclayton committed Nov 21, 2017
1 parent 5eb8353 commit b591821
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/prometheus/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ parameters:
value: openshift/oauth-proxy:v1.0.0
- description: The location of the prometheus image
name: IMAGE_PROMETHEUS
value: openshift/prometheus:v2.0.0-dev.3
value: openshift/prometheus:v2.0.0
- description: The location of the alertmanager image
name: IMAGE_ALERTMANAGER
value: openshift/prometheus-alertmanager:v0.9.1
Expand Down
2 changes: 1 addition & 1 deletion pkg/oc/bootstrap/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions test/extended/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,28 @@ var _ = g.Describe("[Feature:Prometheus][Conformance] Prometheus", func() {
p := expfmt.TextParser{}
metrics, err = p.TextToMetricFamilies(bytes.NewBufferString(results))
o.Expect(err).NotTo(o.HaveOccurred())

// original field in 2.0.0-beta
counts := findCountersWithLabels(metrics["tsdb_samples_appended_total"], labels{})
if len(counts) != 0 && counts[0] > 0 {
success = true
break
}
// 2.0.0-rc.0
counts = findCountersWithLabels(metrics["tsdb_head_samples_appended_total"], labels{})
if len(counts) != 0 && counts[0] > 0 {
success = true
break
}
// 2.0.0-rc.2
counts = findCountersWithLabels(metrics["prometheus_tsdb_head_samples_appended_total"], labels{})
if len(counts) != 0 && counts[0] > 0 {
success = true
break
}
time.Sleep(time.Second)
continue
}
o.Expect(success).To(o.BeTrue(), fmt.Sprintf("Did not find tsdb_samples_appended_total or tsdb_head_samples_appended_total in:\n%#v,", metrics))
o.Expect(success).To(o.BeTrue(), fmt.Sprintf("Did not find tsdb_samples_appended_total, tsdb_head_samples_appended_total, or prometheus_tsdb_head_samples_appended_total in:\n%#v,", metrics))

g.By("verifying the oauth-proxy reports a 403 on the root URL")
err := expectURLStatusCodeExec(ns, execPodName, fmt.Sprintf("https://%s:%d", host, statsPort), 403)
Expand Down
2 changes: 1 addition & 1 deletion test/extended/testdata/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b591821

Please sign in to comment.