Filter
All exporters support a name[] URL parameter for querying only specific metric names. Examples:
/metrics?name[]=jvm_threads_currentwill query the metric namedjvm_threads_current./metrics?name[]=jvm_threads_current&name[]=jvm_threads_daemonwill query two metrics,jvm_threads_currentandjvm_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