forked from fluent/fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filter_kubernetes: add workload scraping logics for kubernetes filter (…
- Loading branch information
Showing
28 changed files
with
926 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...runtime/data/kubernetes/log/options/options_use-kubelet-disabled-daemonset_fluent-bit.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"log":"Fluent Bit is logging\n","stream":"stdout","time":"2019-04-01T17:58:33.598656444Z"} |
1 change: 1 addition & 0 deletions
1
...untime/data/kubernetes/log/options/options_use-kubelet-disabled-deployment_fluent-bit.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"log":"Fluent Bit is logging\n","stream":"stdout","time":"2019-04-01T17:58:33.598656444Z"} |
1 change: 1 addition & 0 deletions
1
...untime/data/kubernetes/log/options/options_use-kubelet-disabled-replicaset_fluent-bit.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"log":"Fluent Bit is logging\n","stream":"stdout","time":"2019-04-01T17:58:33.598656444Z"} |
1 change: 1 addition & 0 deletions
1
.../runtime/data/kubernetes/log/options/options_use-kubelet-enabled-daemonset_fluent-bit.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"log":"Fluent Bit is logging\n","stream":"stdout","time":"2019-04-01T17:58:33.598656444Z"} |
1 change: 1 addition & 0 deletions
1
...runtime/data/kubernetes/log/options/options_use-kubelet-enabled-deployment_fluent-bit.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"log":"Fluent Bit is logging\n","stream":"stdout","time":"2019-04-01T17:58:33.598656444Z"} |
1 change: 1 addition & 0 deletions
1
...runtime/data/kubernetes/log/options/options_use-kubelet-enabled-replicaset_fluent-bit.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"log":"Fluent Bit is logging\n","stream":"stdout","time":"2019-04-01T17:58:33.598656444Z"} |
126 changes: 126 additions & 0 deletions
126
tests/runtime/data/kubernetes/meta/options_use-kubelet-disabled-daemonset.meta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
{ | ||
"apiVersion": "v1", | ||
"kind": "Pod", | ||
"metadata": { | ||
"annotations": { | ||
"prometheus.io/path": "/api/v1/metrics/prometheus", | ||
"prometheus.io/port": "2020", | ||
"prometheus.io/scrape": "true" | ||
}, | ||
"creationTimestamp": "2019-04-03T09:29:00Z", | ||
"labels": { | ||
"app.kubernetes.io/name": "fluent-bit" | ||
}, | ||
"name": "use-kubelet-disabled-daemonset", | ||
"namespace": "options", | ||
"resourceVersion": "74466568", | ||
"selfLink": "/api/v1/namespaces/core/pods/base", | ||
"uid": "e9f2963f-55f2-11e9-84c5-02e422b8a84a", | ||
"ownerReferences": [ | ||
{ | ||
"apiVersion": "apps/v1", | ||
"kind": "DaemonSet", | ||
"name": "my-daemonset", | ||
"uid": "abcd1234-5678-efgh-ijkl-9876mnopqrst", | ||
"controller": true, | ||
"blockOwnerDeletion": true | ||
} | ||
] | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"image": "fluent/fluent-bit", | ||
"imagePullPolicy": "Always", | ||
"name": "fluent-bit", | ||
"resources": {}, | ||
"stdin": true, | ||
"stdinOnce": true, | ||
"terminationMessagePath": "/dev/termination-log", | ||
"terminationMessagePolicy": "File", | ||
"tty": true, | ||
"volumeMounts": [ | ||
{ | ||
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", | ||
"name": "default-token-9ffht", | ||
"readOnly": true | ||
} | ||
] | ||
} | ||
], | ||
"dnsPolicy": "ClusterFirst", | ||
"nodeName": "ip-10-49-18-80.eu-west-1.compute.internal", | ||
"restartPolicy": "Never", | ||
"schedulerName": "default-scheduler", | ||
"securityContext": {}, | ||
"serviceAccount": "default", | ||
"serviceAccountName": "default", | ||
"terminationGracePeriodSeconds": 30, | ||
"tolerations": [ | ||
{ | ||
"effect": "NoExecute", | ||
"key": "node.kubernetes.io/not-ready", | ||
"operator": "Exists", | ||
"tolerationSeconds": 300 | ||
}, | ||
{ | ||
"effect": "NoExecute", | ||
"key": "node.kubernetes.io/unreachable", | ||
"operator": "Exists", | ||
"tolerationSeconds": 300 | ||
} | ||
], | ||
"volumes": [ | ||
{ | ||
"name": "default-token-9ffht", | ||
"secret": { | ||
"defaultMode": 420, | ||
"secretName": "default-token-9ffht" | ||
} | ||
} | ||
] | ||
}, | ||
"status": { | ||
"conditions": [ | ||
{ | ||
"lastProbeTime": null, | ||
"lastTransitionTime": "2019-04-03T09:29:00Z", | ||
"status": "True", | ||
"type": "Initialized" | ||
}, | ||
{ | ||
"lastProbeTime": null, | ||
"lastTransitionTime": "2019-04-03T09:29:06Z", | ||
"status": "True", | ||
"type": "Ready" | ||
}, | ||
{ | ||
"lastProbeTime": null, | ||
"lastTransitionTime": "2019-04-03T09:29:00Z", | ||
"status": "True", | ||
"type": "PodScheduled" | ||
} | ||
], | ||
"containerStatuses": [ | ||
{ | ||
"containerID": "docker://c9898099f6d235126d564ed38a020007ea7a6fac6e25e718de683c9dd0076c16", | ||
"image": "fluent/fluent-bit:latest", | ||
"imageID": "docker-pullable://fluent/fluent-bit@sha256:7ac0fd3569af866e9a6a22eb592744200d2dbe098cf066162453f8d0b06c531f", | ||
"lastState": {}, | ||
"name": "fluent-bit", | ||
"ready": true, | ||
"restartCount": 0, | ||
"state": { | ||
"running": { | ||
"startedAt": "2019-04-03T09:29:05Z" | ||
} | ||
} | ||
} | ||
], | ||
"hostIP": "10.49.18.80", | ||
"phase": "Running", | ||
"podIP": "100.116.192.42", | ||
"qosClass": "BestEffort", | ||
"startTime": "2019-04-03T09:29:00Z" | ||
} | ||
} |
Oops, something went wrong.