-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from nats-io/monitoring-metrics
Add monitoring port by default and metrics example
- Loading branch information
Showing
4 changed files
with
56 additions
and
4 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,43 @@ | ||
--- | ||
apiVersion: "streaming.nats.io/v1alpha1" | ||
kind: "NatsStreamingCluster" | ||
metadata: | ||
name: "example-stan" | ||
spec: | ||
# Number of nodes in the cluster | ||
size: 3 | ||
|
||
# NATS Streaming Server image to use, by default | ||
# the operator will use a stable version | ||
# | ||
image: "nats-streaming:0.12.2" | ||
|
||
# Service to which NATS Streaming Cluster nodes will connect. | ||
# | ||
natsSvc: "example-nats" | ||
|
||
config: | ||
debug: true | ||
trace: true | ||
raftLogging: true | ||
|
||
template: | ||
metadata: | ||
annotations: | ||
prometheus.io/scrape: "true" | ||
prometheus.io/port: "7777" | ||
spec: | ||
containers: | ||
|
||
# Need to list the first container for the server, the operator | ||
# will fill in the rest of the parameters. | ||
- name: "stan" | ||
|
||
# Define the sidecar container and the paths that should be polled. | ||
- name: "metrics" | ||
image: "synadia/prometheus-nats-exporter:0.2.0" | ||
args: ["-varz", "-channelz", "-serverz", "-DV", "http://localhost:8222"] | ||
ports: | ||
- name: "metrics" | ||
containerPort: 7777 | ||
protocol: TCP |
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
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
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