Created
June 28, 2019 17:15
-
-
Save DazWilkin/72209b998d776355e1aad92c738d5b10 to your computer and use it in GitHub Desktop.
Particle, Cloud Functions & Prometheus
This file contains hidden or 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: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
project: particle.io | |
name: pushgateway | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
project: particle.io | |
app: pushgateway | |
template: | |
metadata: | |
labels: | |
project: particle.io | |
app: pushgateway | |
spec: | |
containers: | |
- name: pushgateway | |
image: prom/pushgateway:v0.8.0 | |
imagePullPolicy: IfNotPresent | |
... | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
project: particle.io | |
name: pushgateway | |
spec: | |
selector: | |
project: particle.io | |
app: pushgateway | |
ports: | |
- name: http | |
port: 9091 | |
type: LoadBalancer | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment