-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from showuon/operatorMonitor
add prometheus integration for Flink operator
- Loading branch information
Showing
12 changed files
with
50 additions
and
12 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
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
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
15 changes: 15 additions & 0 deletions
15
prometheus-install/openshift_monitor_example/flink-operator-prometheus-service.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,15 @@ | ||
# The service is created for serviceMonitor use, to open the prometheus port for scraping | ||
# The flink kubernetes operator cannot config custom container port like FlinkDeployment does, so this service is needed. | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: flink-operator-prometheus-service | ||
labels: | ||
app: flink-operator-prometheus-service | ||
spec: | ||
ports: | ||
- port: 9249 | ||
targetPort: 9249 | ||
name: prom | ||
selector: | ||
app.kubernetes.io/name: flink-kubernetes-operator |
5 changes: 3 additions & 2 deletions
5
...all/podmonitor_example/flink-monitor.yaml → ...ft_monitor_example/flink-pod-monitor.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
13 changes: 13 additions & 0 deletions
13
prometheus-install/openshift_monitor_example/flink-service-monitor.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,13 @@ | ||
# Scraping for flink kubernetes operators | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: flink-service-monitor | ||
spec: | ||
endpoints: | ||
- interval: 10s | ||
port: prom | ||
scheme: http | ||
selector: | ||
matchLabels: | ||
app: flink-operator-prometheus-service |
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