Filter
All exporters support a name[]
URL parameter for querying only specific metric names. Examples:
/metrics?name[]=jvm_threads_current
will query the metric namedjvm_threads_current
./metrics?name[]=jvm_threads_current&name[]=jvm_threads_daemon
will query two metrics,jvm_threads_current
andjvm_threads_daemon
.
Add the following to the scape job configuration in prometheus.yml
to make the Prometheus server send the name[]
parameter:
params:
name[]:
- jvm_threads_current
- jvm_threads_daemon