promtail: reduce labels to a minimum to improve loki
query performance https://grafana.com/docs/loki/latest/get-started/labels/ https://grafana.com/blog/2023/12/20/the-concise-guide-to-grafana-loki-everything-you-need-to-know-about-labels/
This commit is contained in:
parent
6dd0dc712c
commit
eda18f3a9e
1 changed files with 2 additions and 10 deletions
|
@ -33,16 +33,8 @@
|
|||
};
|
||||
relabel_configs = [
|
||||
{
|
||||
source_labels = [ "__journal__systemd_unit" ];
|
||||
target_label = "unit";
|
||||
}
|
||||
{
|
||||
source_labels = [ "__journal__systemd_user_unit" ];
|
||||
target_label = "user_unit";
|
||||
}
|
||||
{
|
||||
source_labels = [ "__journal_syslog_identifier" ];
|
||||
target_label = "identifier";
|
||||
source_labels = [ "__journal__systemd_unit" "__journal__systemd_user_unit" "__journal_syslog_identifier" ];
|
||||
target_label = "service";
|
||||
}
|
||||
{
|
||||
source_labels = [ "__journal_priority_keyword" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue