Skip to content

Commit

Permalink
Remove stale note in loki.source.podlogs (#706) (#708)
Browse files Browse the repository at this point in the history
* Remove stale Note and minor tidy

* Remove stale note

* Update intro text

(cherry picked from commit 00b32ef)

Co-authored-by: Clayton Cornell <[email protected]>
  • Loading branch information
github-actions[bot] and clayton-cornell authored Apr 29, 2024
1 parent 811f960 commit 37496f6
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions docs/sources/reference/components/loki.source.podlogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ title: loki.source.podlogs

# loki.source.podlogs

`loki.source.podlogs` discovers `PodLogs` resources on Kubernetes and, using
the Kubernetes API, tails logs from Kubernetes containers of Pods specified by
the discovered them.
`loki.source.podlogs` discovers `PodLogs` resources on Kubernetes.
The `PodLogs` resources provide rules for which Kubernetes Pods to discover on your cluster.

`loki.source.podlogs` is similar to `loki.source.kubernetes`, but uses custom
resources rather than being fed targets from another component.
`loki.source.podlogs` uses the Kubernetes API to tail the logs from the discovered Kubernetes Pods.

{{< admonition type="note" >}}
Unlike `loki.source.kubernetes`, it is not possible to distribute responsibility of collecting logs across multiple {{< param "PRODUCT_NAME" >}}s.
To avoid collecting duplicate logs, only one {{< param "PRODUCT_NAME" >}} should be running a `loki.source.podlogs` component.
{{< /admonition >}}
`loki.source.podlogs` is similar to `loki.source.kubernetes`, but uses custom resources rather than being fed targets from another component.

{{< admonition type="note" >}}
Because `loki.source.podlogs` uses the Kubernetes API to tail logs, it uses more network traffic and CPU consumption of Kubelets than `loki.source.file`.
Expand Down Expand Up @@ -127,7 +122,7 @@ selector | [selector][] | Label selector fo
selector > match_expression | [match_expression][] | Label selector expression for which `PodLogs` to discover. | no
namespace_selector | [selector][] | Label selector for which namespaces to discover `PodLogs` in. | no
namespace_selector > match_expression | [match_expression][] | Label selector expression for which namespaces to discover `PodLogs` in. | no
clustering | [clustering][] | Configure the component for when {{< param "PRODUCT_NAME" >}} is running in clustered mode. | no
clustering | [clustering][] | Configure the component for when {{< param "PRODUCT_NAME" >}} is running in clustered mode. | no

The `>` symbol indicates deeper levels of nesting.
For example, `client > basic_auth` refers to a `basic_auth` block defined inside a `client` block.
Expand Down

0 comments on commit 37496f6

Please sign in to comment.