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

component: prometheus: enable/disable http jobs like rules #316

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 31, 2024

  1. component: prometheus: enable/disable http jobs like rules

    Jira: https://issues.redhat.com/browse/RHOAIENG-87
    
    Some jobs scrape http endpoint /probe (versus those which use
    kubernetes_sd_configs for example) and they start collect metrics as
    soon as they are configured. While enabled component's rules are
    deployed when deployement is available, it does not help since they
    fetch stale metrics from jobs.
    
    Configure them in the prometheus.yml file (field in mounted
    ConfigMap) similar way as `rules_files` are configured: put into
    separate data fields and substitute array of `scrape_configs` in
    prometheusContent unmarshaled map.
    
    Signed-off-by: Yauheni Kaliuta <[email protected]>
    ykaliuta committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    aa23e6f View commit details
    Browse the repository at this point in the history