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

[metrics 2/x] Configure Prometheus Operator #687

Merged

Commits on Jul 29, 2024

  1. Add prometheus-operator/pkg/client dependency

    Package `github.com/prometheus-operator/prometheus-operator/pkg/client`
    can be used for testing purpose.
    
    Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
    zeeke committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    7d30a1c View commit details
    Browse the repository at this point in the history
  2. metrics: configure Prometheus operator

    Deploy the needed configuration to make the prometheus
    operator to find and scrape the sriov-network-metrics-exporter
    endpoints, including the ServiceMonitor, Role and RoleBinding.
    
    Resources are installed only if the Prometheus operator is installed.
    
    When useing `ServiceMonitors`, Prometheus Operator needs permissions
    to read Services,Endpoint and Pods in the monitored namespace (i.e. the SRIOV
    operator ns).
    
    Make the ServiceAccount subject configurable via environment variables.
    
    Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
    zeeke committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    3dff029 View commit details
    Browse the repository at this point in the history