forked from elastic/integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce kubernetes package granularity (elastic#1018)
- Loading branch information
Showing
41 changed files
with
8,096 additions
and
4,084 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# events | ||
|
||
## Metrics | ||
|
||
### event | ||
|
||
This is the `event` dataset of the Kubernetes package. It collects Kubernetes events | ||
related metrics. | ||
|
||
{{event "event"}} | ||
|
||
{{fields "event"}} |
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,33 @@ | ||
# kube-apiserver | ||
|
||
## Metrics | ||
|
||
### apiserver | ||
|
||
This is the `apiserver` dataset of the Kubernetes package, in charge of retrieving metrics | ||
from the Kubernetes API (available at `/metrics`). | ||
|
||
This metricset needs access to the `apiserver` component of Kubernetes, accessible typically | ||
by any POD via the `kubernetes.default` service or via environment | ||
variables (`KUBERNETES_SERVICE_HOST` and `KUBERNETES_SERVICE_PORT`). | ||
|
||
When the API uses https, the pod will need to authenticate using its default token and trust | ||
the server using the appropiate CA file. | ||
|
||
Configuration example using https and token based authentication: | ||
|
||
|
||
In order to access the `/metrics` path of the API service, some Kubernetes environments might | ||
require the following permission to be added to a ClusterRole. | ||
|
||
```yaml | ||
rules: | ||
- nonResourceURLs: | ||
- /metrics | ||
verbs: | ||
- get | ||
``` | ||
{{event "apiserver"}} | ||
{{fields "apiserver"}} |
12 changes: 12 additions & 0 deletions
12
packages/kubernetes/_dev/build/docs/kube-controller-manager.md
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,12 @@ | ||
# kube-controller-manager | ||
|
||
## Metrics | ||
|
||
### controllermanager | ||
|
||
This is the `controllermanager` dataset for the Kubernetes package. It collects from | ||
Kubernetes controller component `metrics` endpoint. | ||
|
||
{{event "controllermanager"}} | ||
|
||
{{fields "controllermanager"}} |
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,12 @@ | ||
# kube-proxy | ||
|
||
## Metrics | ||
|
||
### proxy | ||
|
||
This is the `proxy` dataset of the Kubernetes package. It collects metrics | ||
from Kubernetes Proxy component. | ||
|
||
{{event "proxy"}} | ||
|
||
{{fields "proxy"}} |
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,12 @@ | ||
# kube-scheduler | ||
|
||
## Metrics | ||
|
||
### scheduler | ||
|
||
This is the `scheduler` dataset of the Kubernetes package. It collects metrics | ||
from Kubernetes Scheduler component. | ||
|
||
{{event "scheduler"}} | ||
|
||
{{fields "scheduler"}} |
Oops, something went wrong.