-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created Service and Deployment configuration for Prometheus sink
Signed-off-by: Kushal Shukla <[email protected]>
- Loading branch information
1 parent
f492ff2
commit e199dc3
Showing
2 changed files
with
44 additions
and
0 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
41 changes: 41 additions & 0 deletions
41
prombench/manifests/prombench/benchmark/7_prometheus_remote_write.yaml
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,41 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: prometheus-sink | ||
namespace: prombench-{{ .PR_NUMBER }} | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: sink | ||
template: | ||
metadata: | ||
namespace: prombench-{{ .PR_NUMBER }} | ||
labels: | ||
app: sink | ||
spec: | ||
containers: | ||
- name: prom-sink | ||
image: quay.io/bwplotka/sink:latest | ||
imagePullPolicy: Always | ||
ports: | ||
- name: sink-port | ||
containerPort: 9011 | ||
nodeSelector: | ||
node-name: nodes-{{ .PR_NUMBER }} | ||
isolation: none | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: prometheus-remote-write | ||
namespace: prombench-{{ .PR_NUMBER }} | ||
labels: | ||
app: remote-write | ||
spec: | ||
ports: | ||
- name: prometheus | ||
port: 80 | ||
targetPort: sink-port | ||
selector: | ||
app: sink |