feat(grafana_agent): attach hostname to logs and metrics

!1
This commit is contained in:
2023-09-25 16:46:21 +09:30
parent a26f887fa4
commit e3648324f2

View File

@ -47,6 +47,8 @@ data:
target_label: syslog_identifier
- target_label: "job_name"
replacement: "journal"
- target_label: hostname
replacement: "${HOSTNAME}"
pipeline_stages:
- json:
@ -320,6 +322,8 @@ data:
target_label: __path__
- target_label: "job_name"
replacement: "kubernetes_sd"
- target_label: hostname
replacement: "${HOSTNAME}"