It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

not all k8s events are pushed to elasticsearch with the default config from deploy/ directory

not all k8s events are pushed to elasticsearch with the default config from deploy/ directory

https://github.com/opsgenie/kubernetes-event-exporter

Use case:

from a namespace where a container is running, delete the pod so it can generate some events and those events we expect them to be pushed to elasticsearch which doesnt happen with the default config from deploy directory of above link

 

1 comment

Samir Atlassian Team Jun 17, 2020

Hi @nandu yana  - is this question pertaining to Opsgenie at all? Sounds like the question is kubernetes related but just wondering if Opsgenie is involved in this question.

 

Thanks,

Samir

Hi Samir,

thanks for your response

we are using Opsgenie for exporting all the events of the cluster to elasticsearch 

when we delete a pod - kubectl delete po podName -n namespace

i see the below events 

 

21s Normal Killing pod/qabnwclient-5dc94494d5-p2ff4 Stopping container bnwclient
21s Normal Scheduled pod/qabnwclient-5dc94494d5-s9msj Successfully assigned monitoring-system/qabnwclient-5dc94494d5-s9msj to ip-10-48-8-87.corp.ybusa.net
20s Normal Pulling pod/qabnwclient-5dc94494d5-s9msj Pulling image "511296683960.dkr.ecr.us-east-1.amazonaws.com/bnw-apps:bnwclient-1.0.6"
20s Normal Pulled pod/qabnwclient-5dc94494d5-s9msj Successfully pulled image "511296683960.dkr.ecr.us-east-1.amazonaws.com/bnw-apps:bnwclient-1.0.6"
20s Normal Created pod/qabnwclient-5dc94494d5-s9msj Created container bnwclient
20s Normal Started pod/qabnwclient-5dc94494d5-s9msj Started container bnwclient
16m Normal SuccessfulCreate replicaset/qabnwclient-5dc94494d5 Created pod: qabnwclient-5dc94494d5-p2ff4
21s Normal SuccessfulCreate replicaset/qabnwclient-5dc94494d5 Created pod: qabnwclient-5dc94494d5-s9msj

 

i expected them to be delivered to elasticsearch(ES) but i do not see them being sent to ES

 

the config i used is 

apiVersion: v1
kind: ConfigMap
metadata:
name: event-exporter-cfg
namespace: {{ .Release.Namespace }}
data:
config.yaml: |
logLevel: debug
route:
match:
- kind: Pod|Deployment|ReplicaSet
receiver: dump
receivers:
- name: "dump"
elasticsearch:
hosts:
- http://elasticsearch-master.elasticsearch.svc:9200
index: kube-events-ns

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Opsgenie

Enhanced Incident Response from Opsgenie’s Mobile App

We’ve released a new version of the Opsgenie Mobile App that includes enhancements already introduced into the web app to empower a collaborative, transparent incident management process. To enjoy th...

154 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you