-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#### Motivation Having some basic information about kubernetes-event-exporter deployed in our EKS cluster. #### Modification Add some documentation #### Checklist - [ ] Tests updated Not a functionality - [x] Docs updated - [x] Issue linked in Title
- Loading branch information
1 parent
52e8c79
commit 8180a0f
Showing
1 changed file
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# event-exporter | ||
|
||
## Presentation | ||
|
||
[kubernetes-event-exporter](https://github.com/resmoio/kubernetes-event-exporter) is a tool that enables exporting [Kubernetes events](https://kubernetes.io/docs/reference/kubernetes-api/cluster-resources/event-v1/#Event) to various services. | ||
|
||
One usage of exporting the Kubernetes events for our cluster is to get [Argo Workflows specific events](https://argo-workflows.readthedocs.io/en/stable/workflow-events/) sent to Elasticsearch so we can raise user alerts based on them. | ||
|
||
## Configuration | ||
|
||
The current configuration dumps the events as `standard output`. It is sufficient to get the event logs coming in Elastic Search. | ||
|
||
```yaml | ||
logLevel: error | ||
logFormat: json | ||
route: | ||
routes: | ||
- match: | ||
- receiver: 'dump' | ||
receivers: | ||
- name: 'dump' | ||
stdout: {} | ||
``` | ||
## Troubleshooting | ||
### Logs | ||
#### From the pod | ||
1. Get the pod name | ||
```bash | ||
> kubectl get pods -n event-exporter | ||
NAME READY STATUS RESTARTS AGE | ||
event-exporter-b768fb758-zbghq 1/1 Running 0 207d | ||
``` | ||
|
||
2. View the logs | ||
|
||
```bash | ||
> kubectl logs event-exporter-b768fb758-zbghq -n event-exporter | ||
``` | ||
|
||
#### From CloudWatch | ||
|
||
Log group name: `/aws/eks/Workflows/workload/event-exporter` | ||
|
||
#### From Elasticsearch | ||
|
||
Filter: `kubernetes.container_name: "event-exporter"` |