Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrape worker nodes logs #1495

Merged
merged 5 commits into from
Aug 2, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion _sub/monitoring/helm-grafana-agent/values/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,27 @@ logs:
enabled: true
cluster_events:
enabled: true
extraConfig: |
local.file_match "worker_nodes_logs" {
path_targets = [{
__address__ = "localhost",
__path__ = "/var/log/**",
__path_exclude__ = "/var/log/{pods,containers,journal}/**",
instance = constants.hostname,
job = "integrations/worker-node",
}]
}

loki.source.file "worker_nodes_logs" {
targets = local.file_match.worker_nodes_logs.targets
forward_to = [loki.process.worker_nodes_logs.receiver]
}

loki.process "worker_nodes_logs" {
forward_to = [
loki.process.logs_service.receiver,
]
}

alloy-events: {}
alloy-logs: {}
Expand Down Expand Up @@ -357,4 +378,4 @@ extraObjects:
matchLabels:
component: apiserver
provider: kubernetes
####
####
Loading