Skip to content

Commit

Permalink
Document additional collected Kubernetes resources (influxdata#6297)
Browse files Browse the repository at this point in the history
  • Loading branch information
glinton authored and danielnelson committed Aug 21, 2019
1 parent 0217403 commit bc52592
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 5 deletions.
50 changes: 47 additions & 3 deletions plugins/inputs/kube_inventory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ avoid cardinality issues:

## Optional Resources to exclude from gathering
## Leave them with blank with try to gather everything available.
## Values can be - "daemonsets", deployments", "nodes", "persistentvolumes",
## "persistentvolumeclaims", "pods", "statefulsets"
## Values can be - "daemonsets", deployments", "endpoints", "ingress", "nodes",
## "persistentvolumes", "persistentvolumeclaims", "pods", "services", "statefulsets"
# resource_exclude = [ "deployments", "nodes", "statefulsets" ]

## Optional Resources to include when gathering
Expand Down Expand Up @@ -131,6 +131,36 @@ subjects:
- replicas_unavailable
- created
+ kubernetes_endpoints
- tags:
- endpoint_name
- namespace
- hostname
- node_name
- port_name
- port_protocol
- kind (*varies)
- fields:
- created
- generation
- ready
- port
- kubernetes_ingress
- tags:
- ingress_name
- namespace
- hostname
- ip
- backend_service_name
- path
- host
- fields:
- created
- generation
- backend_service_port
- tls
+ kubernetes_node
- tags:
- node_name
Expand Down Expand Up @@ -174,7 +204,21 @@ subjects:
- resource_limits_cpu_units
- resource_limits_memory_bytes
+ kubernetes_statefulset
+ kubernetes_service
- tags:
- service_name
- namespace
- port_name
- port_protocol
- external_name
- cluster_ip
- fields
- created
- generation
- port
- target_port
- kubernetes_statefulset
- tags:
- statefulset_name
- namespace
Expand Down
4 changes: 2 additions & 2 deletions plugins/inputs/kube_inventory/kube_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ var sampleConfig = `
## Optional Resources to exclude from gathering
## Leave them with blank with try to gather everything available.
## Values can be - "daemonsets", deployments", "nodes", "persistentvolumes",
## "persistentvolumeclaims", "pods", "statefulsets"
## Values can be - "daemonsets", deployments", "endpoints", "ingress", "nodes",
## "persistentvolumes", "persistentvolumeclaims", "pods", "services", "statefulsets"
# resource_exclude = [ "deployments", "nodes", "statefulsets" ]
## Optional Resources to include when gathering
Expand Down

0 comments on commit bc52592

Please sign in to comment.