Skip to content

Commit

Permalink
feat: Enable spark-operator prometheus metrics (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanty authored Jan 31, 2025
1 parent e7d6fb4 commit c573036
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
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

0 comments on commit c573036

Please sign in to comment.