I already searched for it (HTTP API), but found no information about it.
However, under localhost: 9090 (insert metric at cursor) all metrics are
displayed.
Above the Execute button, the input field says Expession,
but i don't know how can formulate the query . No chance.
Do you have any idea??
Kind regards,
Thomas.
Christian Hoffmann schrieb am Sonntag, 16. August 2020 um 11:36:44 UTC+2:
> Hi,
>
> On 8/16/20 12:33 AM, Thomas Berger wrote:
> > with the exporters i get a large number of metrics.
> > However, I don't need all of them.
> > I don't want to save these and remove them from the DB.
> > This is described in the documentation with metric_relabel_configs.
> >
> > Example to remove all go:. * metrics:
> >
> > metric_relabel_configs:
> > - source_labels: [__name__]
> > regex: (go_.*)
> > action: drop
> >
> > My question:
> > Can I test the regex beforehand?
> > Is there a way to display all metrics by specifying this regex?
>
> I think you should be able to test this via a regular PromQL query. The
> metric name is stored in the magic label __name__:
>
> {__name__=~"go_.*"}
>
> Kind regards,
> Christian
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/3b135712-3056-401d-ae5e-c3cc27c689aen%40googlegroups.com.