On 20.06.21 01:15, andig wrote:
> I need to collect anonymous HTTP statistics from user installations. For
> security reasons, I only want to collect metrics about HTTP requests for
> particular purpose, while having the entire set of metrics available
> locally.
What do you mean by "available locally"?
It sounds like you should expose all desired metrics normally and then
use metric relabel configs to drop metrics you don't want to ingest on
the Prometheus server, see
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
If you want to push selected metrics to the Pushgateway, you can
register the desired collectors with a custom registry and push that
one. However, note that this sounds like you are using the Pushgateway
for something that it is not meant for.
--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email]
bjo...@rabenste.in