Last active
January 4, 2018 21:46
-
-
Save richarddli/ed9477da044539e1c490a8a6c387efc3 to your computer and use it in GitHub Desktop.
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
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ambassador-monitor | |
labels: | |
service: ambassador-monitor | |
spec: | |
selector: | |
service: ambassador | |
type: ClusterIP | |
clusterIP: None | |
ports: | |
- name: prometheus-metrics | |
port: 9102 | |
targetPort: 9102 | |
protocol: TCP | |
--- | |
apiVersion: monitoring.coreos.com/v1 | |
kind: ServiceMonitor | |
metadata: | |
name: ambassador-monitor | |
labels: | |
ambassador: monitoring | |
spec: | |
selector: | |
matchLabels: | |
service: ambassador-monitor | |
endpoints: | |
- port: prometheus-metrics |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment