Skip to content

charts/vertical-pod-autoscaler ServiceMonitor Support #251

@ianarsenault

Description

Feature Request: ServiceMonitor Support

Background

VPA components expose Prometheus metrics on /metrics endpoints, but currently require manual Prometheus configuration
to scrape. ServiceMonitors would enable automatic metric collection in Prometheus Operator environments.

Implementation Requirements

  • Add serviceMonitor configuration blocks to values.yaml for all three components
  • Create ServiceMonitor template files (recommender, updater, admission-controller)
  • Update README.md with ServiceMonitor configuration options
  • Add conditional logic to only create ServiceMonitors when enabled

Benefits

  • Automatic metric collection for VPA operational monitoring
  • Integration with existing Grafana dashboards
  • Enable VPA-specific alerting rules for OpsGenie
  • Better visibility into VPA performance across customer environments

Acceptance Criteria

  • ServiceMonitors are opt-in (disabled by default)
  • Support custom labels and scrape intervals
  • Follow existing chart patterns and naming conventions
  • Include usage examples in documentation

Labels: enhancement, monitoring, prometheus

Priority: medium (nice-to-have for operational visibility)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions