Is it safe to use the same stat_prefix or alt_stat_name?

26 views
Skip to first unread message

I Gusti Ngurah Putra Sattvika

unread,
Jan 14, 2025, 11:16:31 AM1/14/25
to envoy-users
Hi,

I'm running Envoy with some listeners and clusters which metrics I don't want to be exported (or scraped by Prometheus). My original approach was to use stats_matcher but decided against it after reading the warning in the documentation as well as issue #8771.

The approach I'm currently considering is to use the same stat_prefix and alt_stat_name values (e.g. "__drop_me__") for all listeners and clusters which metrics I don't want, which then can be dropped by Prometheus during metrics scraping with metric_relabel_configs.

However, I'm not sure how safe this approach is. Using the same stat_prefix or alt_stat_name seems to "combine" the statistics from multiple distinct resources so I'm concerned it may also affect code paths that depend on stat values like those described in #8771.


Thanks,
Putra Sattvika

Disclaimer

This email including its attachment(s) may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient (or authorized to receive for the recipient), you are hereby notified that any review, use, distribution or disclosure of the information in this email is strictly prohibited. If you receive this email in error, please contact the sender by replying  to this email and delete all copies of this message including its attachments (if any) immediately.


Reply all
Reply to author
Forward
0 new messages