[Feature request] set additional labels per log entry
Right now, labels can only be set during client initialization. It would be very useful if you could set additional labels to individual messages. e.g.:
loki.InfoWithLabelf("{worker_id=\"123\"}", "source = %s, time = %s, i = %d\n", source_name, tstamp, i)
Hi @yacut
Many thanks for the suggestion and also for the interest to the project.
Unfortunately currently I'm a little short on spare time to implement this feature, but I will be happy to merge a corresponding pull request.
Commenting in 2022 to say that this is still a relevant feature request. Thanks
I just submit a pr that allow pass a parameter to change label every time. Please check that and thank you so much. https://github.com/afiskon/promtail-client/pull/6