Closed Nilesh-Shastri closed 3 months ago
You gave the answer already, it's part of the scrape config in Prometheus.
On Fri, 2 Aug 2024, 20:21 Nilesh-Shastri, @.***> wrote:
I am looking for adding user defined labels to mtail specific metrics.
For example, user must be able to add custom label (eg, server="srv1") to any mtail specific metrcu (eg, mtail_log_lines_total).
I understand that this is achievable by updating scrape config on Prometheus. Still interested to have that done using mtail.
Thanks in advance!
— Reply to this email directly, view it on GitHub https://github.com/google/mtail/issues/905, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXFX673AOTZILRMPLIYUYLZPNMRXAVCNFSM6AAAAABL4IOK3WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DINRUGU4DSOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks for your response, Jamie!
Is it OK to presume that there is no possibility of achieving that using mtail, and there are no plans to implement any such feature?
I have no plans to implement this.
There is of course no technical barrier to adding it, but I don't want to maintain more code when less will do, and when this is possible with other tools in the ecosystem.
I am looking for adding user defined labels to mtail specific metrics.
For example, the user must be able to add a custom label (eg, server="srv1") to any mtail specific metric (eg, mtail_log_lines_total).
I understand that this is achievable by updating scrape config on Prometheus. I'm still interested to have that done using mtail.
Thanks in advance!