﻿# Event monitoring

> [HTML Version](event-monitoring.html)

This article covers the installation of Kubernetes Event Exporter. This add-on is used for monitoring events within a Kubernetes cluster.

Before using the add-on, first install [Loki](install-loki.md).

The installation of the add-on consists of three steps:

1. [Download the Helm chart and configuration file.](#helm-chart).

2. [Fill out the configuration file](#configuration-file).

3. [Install the kubernetes-event-exporter chart using helm in the Kubernetes cluster](#install-chart).

## Step 1: Download the Helm chart and configuration file.

To install via the internet, obtain the configuration file \[OBJECT\] by executing the following command:

````
helm repo add brix365 https://charts.brix365.com  
helm repo update  
helm show values brix365/kubernetes-event-exporter > values-kubernetes-event-exporter.yaml

````
Obtaining the configuration file for installation in an closed environment without internet access

1. On a computer with internet access, download the latest version archive of the **kubernetes-event-exporter** hart from the BRIX repository by executing the following command:

````
helm repo add brix365 https://charts.brix365.com  
helm repo update  
helm pull brix365/kubernetes-event-exporter

````


2. Copy the chart archive \[OBJECT\] to the server where installation will be performed.

3. Unpack the chart and copy the default configuration file \[OBJECT\] into \[OBJECT\]:



````
tar -xf kubernetes-event-exporter-X.Y.Z.tgz  
cp kubernetes-event-exporter/values.yaml values-kubernetes-event-exporter.yaml  

````

## ````
Step 2: Fill out the configuration file

Filling out the values-kubernetes-event-exporter.yaml configuration file for installation of kubernetes-event-exporter

````
  
kubernetes-event-exporter:  
 enabled: true  
 config:  
 logLevel: info  
 logFormat: json  
 maxEventAgeSeconds: 60  
 kubeQPS: 100  
 kubeBurst: 500  
 metricsNamePrefix: event\_exporter\_  
 route:  
 routes:  
 - match:  
 - receiver: "dump"  
 receivers:  
 - name: "dump"  
 stdout: \{\}
````

````


Filling out the the connection parameters for installation in a closed environment without internet access

  
To connect to the private \[OBJECT\]:

1. Download the brix365 images and upload them to your local image registry. For more details, see [Download BRIX images](downloadin-images-elma365.md).

2. Specify the address and path for the \[OBJECT\] parameter.

3. Specify the name of the secret that contains access rights to the private \[OBJECT\] in the  \[OBJECT\]parameter. The secret should be manually created and encoded in Base64.

````
kubernetes-event-exporter:  
\# Parameters for connection to the private registry  
  image:  
\# address and path for the private registry  
    registry: registry.example.com  
    repository: bitnami/kubernetes-event-exporter  
    tag: 1.7.0-debian-12-r4  
    pullPolicy: IfNotPresent  
    pullSecrets: \[\]

````
Where the format of \[OBJECT\]is: addres is \[OBJECT\]  


## Step 3: Install the kubernetes-event-exporter chart using helm in the Kubernetes cluster 

Install the **kubernetes-event-exporter** chart to \[OBJECT\].

For installation via the internet, use the following command:

````
helm upgrade --install -n monitoring kubernetes-event-exporter brix365/kubernetes-event-exporter -f values-kubernetes-event-exporter.yaml  


````
For offline installation without internet access, navigate to the directory with the downloaded chart and execute the command:

````
helm upgrade --install kubernetes-event-exporter ./kubernetes-event-exporter -f values-kubernetes-event-exporter.yaml -n monitoring

## ````
Data visualization

In the Grafana data visualization software system, you can view the charts of Kubernetes Event Exporter:

- Chart example 1:

**(event-monitoring-1.png)**

- Chart example 2:

**(event-monitoring-2.png)**