Skip to content

Commit

Permalink
Make prom-statsd-sink more useful, so we can ditch ambassador-rbac-pr…
Browse files Browse the repository at this point in the history
…ometheus

Signed-off-by: Flynn <[email protected]>
  • Loading branch information
Flynn committed Dec 14, 2021
1 parent 6cb6aaf commit c5e36ba
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions deployments/statsd-sink/prometheus/prom-statsd-sink.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
---
apiVersion: extensions/v1beta1
# This ConfigMap needs to be edited to define Prometheus mappings.
# See https://getambassador.io/docs/emissary/latest/topics/running/statistics/envoy-statsd/
# for more information.
apiVersion: v1
kind: ConfigMap
metadata:
name: ambassador-statsd-config
data:
exporterConfiguration: ''
---
# This Deployment keeps the StatsD exporter running.
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
name: statsd-sink
spec:
replicas: 1
strategy: {}
selector:
matchLabels:
service: statsd-sink
template:
metadata:
creationTimestamp: null
Expand All @@ -16,12 +30,21 @@ spec:
containers:
- name: statsd-sink
image: prom/statsd-exporter:v0.8.1
args:
- --statsd.listen-udp=":8125"
resources: {}
args: ["--statsd.listen-udp=:8125", "--statsd.mapping-config=/statsd-exporter/mapping-config.yaml"]
volumeMounts:
- name: stats-exporter-mapping-config
mountPath: /statsd-exporter/
readOnly: true
volumes:
- name: stats-exporter-mapping-config
configMap:
name: ambassador-statsd-config
items:
- key: exporterConfiguration
path: mapping-config.yaml
restartPolicy: Always
status: {}
---
# Finally, this Service defines ports in use by StatsD.
apiVersion: v1
kind: Service
metadata:
Expand Down

0 comments on commit c5e36ba

Please sign in to comment.