You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Configures the discovery to look on the current machine. Must be either
# localhost or the hostname of the current computer.
targets:
- localhost
However, this is not enforced, and has no effect?
To Reproduce
Run promtail with a scrape_configs containing:
static_configs:
- targets:
- "foobar"
on a machine not named foobar 😄
Service Discovery shows __address__="foobar",
but logs are pushed to loki correctly. __address__ label is not visible inside grafana.
Expected behavior
??? Is this an unused config value when running static?
Does this have any effect?
Environment:
Promtail bare-metal on Windows 10, 1909
The text was updated successfully, but these errors were encountered:
__address__ and __host__ are not available those are labels used only during scrapping. You could still add them via relabelling or pipeline stage or even like @adityacs suggested.
And yes:
# Configures the discovery to look on the current machine. Must be either
# localhost or the hostname of the current computer.
targets:
- localhost
is not used in Loki and doesn't have side effects.
Feel free to send a PR to update the documentation.
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
stalebot
added
the
stale
A stale issue or PR that will automatically be closed.
label
Apr 27, 2020
Describe the bug
Documentation https://github.com/grafana/loki/blob/v1.3.0/docs/clients/promtail/configuration.md#static_config
states that in
static_config
:However, this is not enforced, and has no effect?
To Reproduce
Run promtail with a scrape_configs containing:
on a machine not named
foobar
😄Service Discovery shows
__address__="foobar"
,but logs are pushed to loki correctly.
__address__
label is not visible inside grafana.Expected behavior
??? Is this an unused config value when running static?
Does this have any effect?
Environment:
The text was updated successfully, but these errors were encountered: