Skip to content

Commit

Permalink
fix(docs): Move promtail configuration to the correct doc (#12737)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasslessParticle authored Apr 23, 2024
1 parent 210ea93 commit 1161846
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
7 changes: 7 additions & 0 deletions docs/sources/send-data/promtail/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ For more detailed information on configuring how to discover and scrape logs fro
targets, see [Scraping]({{< relref "./scraping" >}}). For more information on transforming logs
from scraped targets, see [Pipelines]({{< relref "./pipelines" >}}).

## Reload at runtime

Promtail can reload its configuration at runtime. If the new configuration
is not well-formed, the changes will not be applied.
A configuration reload is triggered by sending a `SIGHUP` to the Promtail process or
sending a HTTP POST request to the `/reload` endpoint (when the `--server.enable-runtime-reload` flag is enabled).

### Use environment variables in the configuration

You can use environment variable references in the configuration file to set values that need to be configurable during deployment.
Expand Down
7 changes: 0 additions & 7 deletions docs/sources/shared/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ is especially useful in making sure your config files and flags are being read a
`-log-config-reverse-order` is the flag we run Loki with in all our environments, the config entries are reversed so
that the order of configs reads correctly top to bottom when viewed in Grafana's Explore.

## Reload at runtime

Promtail can reload its configuration at runtime. If the new configuration
is not well-formed, the changes will not be applied.
A configuration reload is triggered by sending a `SIGHUP` to the Promtail process or
sending a HTTP POST request to the `/reload` endpoint (when the `--server.enable-runtime-reload` flag is enabled).

## Configuration file reference

To specify which configuration file to load, pass the `-config.file` flag at the
Expand Down
7 changes: 0 additions & 7 deletions docs/templates/configuration.template
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ is especially useful in making sure your config files and flags are being read a
`-log-config-reverse-order` is the flag we run Loki with in all our environments, the config entries are reversed so
that the order of configs reads correctly top to bottom when viewed in Grafana's Explore.

## Reload at runtime

Promtail can reload its configuration at runtime. If the new configuration
is not well-formed, the changes will not be applied.
A configuration reload is triggered by sending a `SIGHUP` to the Promtail process or
sending a HTTP POST request to the `/reload` endpoint (when the `--server.enable-runtime-reload` flag is enabled).

## Configuration file reference

To specify which configuration file to load, pass the `-config.file` flag at the
Expand Down

0 comments on commit 1161846

Please sign in to comment.