rsyslog/tests/mmkubernetes-cache-expire.out.expected
Rich Megginson 8b92ea1bd9 mmkubernetes - support for metadata cache expiration
New parameters for mmkubernetes (module and action):

* `cacheexpireinterval`
If `cacheexpireinterval` is -1, then do not check for cache expiration.
If `cacheexpireinterval` is 0, then check for cache expiration.
If `cacheexpireinterval` is greater than 0, check for cache expiration
if the last time we checked was more than this many seconds ago.

* `cacheentryttl` - maximum age in seconds for cache entries

New statistics counters:

* `podcachenumentries` - the number of entries in the pod metadata cache.
* `namespacecachenumentries` - the number of entries in the namespace
  metadata cache.
* `podcachehits` - the number of times a requested entry was found in the
  pod metadata cache.
* `namespacecachehits` - the number of times a requested entry was found
  in the namespace metadata cache.
* `podcachemisses` - the number of times a requested entry was not found
  in the pod metadata cache, and had to be requested from Kubernetes.
* `namespacecachemisses` - the number of times a requested entry was not
  found in the namespace metadata cache, and had to be requested from
  Kubernetes.
2019-04-01 11:53:29 -06:00

110 lines
3.0 KiB
Plaintext

[{
"kubernetes": {
"namespace_id": "namespace-name1-id",
"namespace_labels": {
"label_1_key": "label 1 value",
"label_with_empty_value": "",
"label_2_key": "label 2 value"
},
"creation_timestamp": "2018-04-09T21:56:39Z",
"pod_id": "pod-name1-id",
"labels": {
"custom_label": "pod-name1-label-value",
"deploymentconfig": "pod-name1-dc",
"component": "pod-name1-component",
"label_with_empty_value": "",
"deployment": "pod-name1-deployment"
},
"pod_name": "pod-name1",
"namespace_name": "namespace-name1",
"container_name": "container-name1",
"master_url": "http://localhost:{k8s_srv_port}"
},
"docker": {
"container_id": "id1"
},
"testid": 1,
"message": "msg1"
},{
"kubernetes": {
"namespace_id": "namespace-name1-id",
"namespace_labels": {
"label_1_key": "label 1 value",
"label_with_empty_value": "",
"label_2_key": "label 2 value"
},
"creation_timestamp": "2018-04-09T21:56:39Z",
"pod_id": "pod-name1-id",
"labels": {
"custom_label": "pod-name1-label-value",
"deploymentconfig": "pod-name1-dc",
"component": "pod-name1-component",
"label_with_empty_value": "",
"deployment": "pod-name1-deployment"
},
"pod_name": "pod-name1",
"namespace_name": "namespace-name1",
"container_name": "container-name1",
"master_url": "http://localhost:{k8s_srv_port}"
},
"docker": {
"container_id": "id1"
},
"testid": 2,
"message": "msg2"
},{
"kubernetes": {
"namespace_id": "namespace-name1-id",
"namespace_labels": {
"label_1_key": "label 1 value",
"label_with_empty_value": "",
"label_2_key": "label 2 value"
},
"creation_timestamp": "2018-04-09T21:56:39Z",
"pod_id": "pod-name1-id",
"labels": {
"custom_label": "pod-name1-label-value",
"deploymentconfig": "pod-name1-dc",
"component": "pod-name1-component",
"label_with_empty_value": "",
"deployment": "pod-name1-deployment"
},
"pod_name": "pod-name1",
"namespace_name": "namespace-name1",
"container_name": "container-name1",
"master_url": "http://localhost:{k8s_srv_port}"
},
"docker": {
"container_id": "id1"
},
"testid": 3,
"message": "msg3"
},{
"kubernetes": {
"namespace_id": "namespace-name1-id",
"namespace_labels": {
"label_1_key": "label 1 value",
"label_with_empty_value": "",
"label_2_key": "label 2 value"
},
"creation_timestamp": "2018-04-09T21:56:39Z",
"pod_id": "pod-name1-id",
"labels": {
"custom_label": "pod-name1-label-value",
"deploymentconfig": "pod-name1-dc",
"component": "pod-name1-component",
"label_with_empty_value": "",
"deployment": "pod-name1-deployment"
},
"pod_name": "pod-name1",
"namespace_name": "namespace-name1",
"container_name": "container-name1",
"master_url": "http://localhost:{k8s_srv_port}"
},
"docker": {
"container_id": "id1"
},
"testid": 4,
"message": "msg4"
}]