scalyr / scalyr-agent-2

The source code for Scalyr Agent 2, the daemon process Scalyr customers run on their servers to collect metrics and logs.
Apache License 2.0
70 stars 60 forks source link

Options to omit labels in K8s pod logs #1260

Closed alesnovak-s1 closed 3 months ago

alesnovak-s1 commented 4 months ago

From documentation: | k8s_label_include_globs | Optional, (defaults to ['*']). Specifies a list of K8s labels to be added to logs. | | k8s_label_exclude_globs | Optional, (defaults to []]). Specifies a list of K8s labels to be ignored and not added to logs. |

Follows the same logic as label_include_globs and label_exclude_globs from the docker_monitor.

Implements: https://sentinelone.atlassian.net/browse/DTIN-3678

As part of this PR I've added some multiaccount documentation from the generated md file to the kubernetes_monitor.py mondule.

github-actions[bot] commented 4 months ago

Test Results

     20 files  ±  0       20 suites  ±0   32m 10s :stopwatch: +17s 1 488 tests +  3  1 468 :heavy_check_mark: +  3    20 :zzz: ±0  0 :x: ±0  7 111 runs  +15  6 886 :heavy_check_mark: +15  225 :zzz: ±0  0 :x: ±0 

Results for commit ee95888b. ± Comparison against base commit 089af0f1.

:recycle: This comment has been updated with latest results.