Skip to content

Commit

Permalink
Change prometheus-nats-exporter to version 0.2.0 and add channelz and…
Browse files Browse the repository at this point in the history
… serverz to the arguments of the metrics container (#151)
  • Loading branch information
pslijkhuis authored and wallyqs committed Mar 27, 2019
1 parent 6ea6932 commit 6c9bad2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/example-nats-cluster-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ spec:
pod:
enableMetrics: true
metricsImage: "synadia/prometheus-nats-exporter"
metricsImageTag: "0.1.0"
metricsImageTag: "0.2.0"
2 changes: 1 addition & 1 deletion helm/nats-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,5 @@ metrics:
enabled: false
registry: "docker.io"
repository: "synadia/prometheus-nats-exporter"
tag: "0.1.0"
tag: "0.2.0"
pullPolicy: "IfNotPresent"
2 changes: 1 addition & 1 deletion pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const (
DefaultReloaderImageTag = "0.2.2-v1alpha2"
DefaultReloaderImagePullPolicy = "IfNotPresent"
DefaultMetricsImage = "synadia/prometheus-nats-exporter"
DefaultMetricsImageTag = "0.1.0"
DefaultMetricsImageTag = "0.2.0"
DefaultMetricsImagePullPolicy = "IfNotPresent"

// NatsBinaryPath is the path to the NATS binary inside the main container.
Expand Down
2 changes: 2 additions & 0 deletions pkg/util/kubernetes/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ func natsPodMetricsContainer(image, tag, pullPolicy string) v1.Container {
"-routez",
"-subz",
"-varz",
"-channelz",
"-serverz",
fmt.Sprintf("http://localhost:%d", constants.MonitoringPort)},
}
}
Expand Down

0 comments on commit 6c9bad2

Please sign in to comment.