Skip to content

Commit

Permalink
Add the job annotation to all alloy instances and ksm. (#1087)
Browse files Browse the repository at this point in the history
Make the job annotation configurable again

Signed-off-by: Pete Wall <[email protected]>
  • Loading branch information
petewall authored Jan 9, 2025
1 parent 5d348a1 commit 8ba4eb5
Show file tree
Hide file tree
Showing 47 changed files with 162 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,14 @@
}
}
},
"podAnnotations": {
"type": "object",
"properties": {
"k8s.grafana.com/logs.job": {
"type": "string"
}
}
},
"prometheusScrape": {
"type": "boolean"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ kube-state-metrics:
nodeSelector:
kubernetes.io/os: linux

# @ignored
podAnnotations:
k8s.grafana.com/logs.job: integrations/kubernetes/kube-state-metrics

# @ignored - Enable the release label
releaseLabel: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ discovery.relabel "filtered_pods" {

// set the job label from the k8s.grafana.com/logs.job annotation if it exists
rule {
source_labels = ["{{ include "pod_annotation" "k8s.grafana.com/logs.job" }}"]
source_labels = ["{{ include "pod_annotation" .Values.annotations.job }}"]
regex = "(.+)"
target_label = "job"
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions charts/k8s-monitoring/docs/examples/auth/oauth2/output.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions charts/k8s-monitoring/docs/examples/auth/sigv4/output.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions charts/k8s-monitoring/docs/examples/extra-rules/output.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions charts/k8s-monitoring/docs/examples/proxies/output.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8ba4eb5

Please sign in to comment.