Skip to content

Commit

Permalink
Relabel cluster to flink-cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
annagnd committed Mar 22, 2024
1 parent 4031515 commit a3b63cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/flink-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Intalls the Spotify-version of the Flink-on-K8S-Operator
name: flink-operator
version: 0.0.1
version: 0.1.0
appVersion: v0.3.0
sources:
- https://github.com/spotify/flink-on-k8s-operator/releases
Expand Down
2 changes: 1 addition & 1 deletion charts/flink-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flink-operator

![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![AppVersion: v0.3.0](https://img.shields.io/badge/AppVersion-v0.3.0-informational?style=flat-square)
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v0.3.0](https://img.shields.io/badge/AppVersion-v0.3.0-informational?style=flat-square)

Intalls the Spotify-version of the Flink-on-K8S-Operator

Expand Down
5 changes: 4 additions & 1 deletion charts/flink-operator/templates/podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ metadata:
name: {{ .Release.Name }}
spec:
podTargetLabels:
- cluster
- component
selector:
matchLabels:
app: flink
# Specify the port name of the exposed metric port
podMetricsEndpoints:
- port: prom
relabelings:
- action: replace
sourceLabels: [ __meta_kubernetes_pod_label_cluster ]
targetLabel: flink_cluster
{{ end -}}

0 comments on commit a3b63cd

Please sign in to comment.