Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Enable spark-operator prometheus metrics #737

Merged
merged 3 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions analytics/terraform/spark-k8s-operator/addons.tf
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,24 @@ module "eks_data_addons" {
rbac:
# -- Specifies whether to create RBAC resources for the controller.
create: false
prometheus:
metrics:
enable: true
port: 8080
portName: metrics
endpoint: /metrics
prefix: ""
# Prometheus pod monitor for controller pods
podMonitor:
# -- Specifies whether to create pod monitor.
create: true
labels: {}
# -- The label to use to retrieve the job name from
jobLabel: spark-operator-podmonitor
# -- Prometheus metrics endpoint properties. `metrics.portName` will be used as a port
podMetricsEndpoint:
scheme: http
interval: 5s
EOT
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ prometheus:
resources:
requests:
storage: 50Gi
# Find monitors in all namespaces
podMonitorSelectorNilUsesHelmValues: false
probeSelectorNilUsesHelmValues: false
ruleSelectorNilUsesHelmValues: false
serviceMonitorSelectorNilUsesHelmValues: false
# Scrape Cost metrics for Karpenter and Yunikorn add-ons
additionalScrapeConfigs:
- job_name: yunikorn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ prometheus:
resources:
requests:
storage: 50Gi
# Find monitors in all namespaces
podMonitorSelectorNilUsesHelmValues: false
probeSelectorNilUsesHelmValues: false
ruleSelectorNilUsesHelmValues: false
serviceMonitorSelectorNilUsesHelmValues: false
# Scrape Cost metrics for Karpenter and Yunikorn add-ons
additionalScrapeConfigs:
- job_name: yunikorn
Expand Down
Loading