Skip to content

Commit

Permalink
docs: event-exporter component TDE-1194 (#616)
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
paulfouquet authored Jun 5, 2024
1 parent 52e8c79 commit 8180a0f
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions docs/infrastructure/components/event.exporter.md
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"`

0 comments on commit 8180a0f

Please sign in to comment.