how to add includedNames query param to actuator Prometheus url in prometheus.yml

Viewed 8

how to add includedNames query param to actuator Prometheus url in prometheus.yml

in prometheus.yml

scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: "test"
    metrics_path: "/actuator/prometheus"
    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ["**.**.**.**:8090"]

  - job_name: node
    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

Ex: localhost:8090/actuator/prometheus?includedNames=system_load_average_1m

0 Answers
Related