I have enabled events monitoring by updating the UMA configuration as below:
oc edit uma uma-monitor
events:
clamp:
perDayLimit: 15000
elasticDocTypeId: itoa_events_apm
elasticDocTypeVersion: 1
elasticProduct: ao
enabled: true
filter:
fieldselector: type!=Normal
namespace: ""
metricsEnabled: true
however no events are reported in dxo2
DX O2
RECOMMENDATIONS:
1) Ensure that events feature is enabled in the cluster info pod:
kubectl exec -ti <clusterinfo-pod> -n<uma-namespace> -- sh
cd cd /tmp/clusterinfo/logs/
cat clusterInfo.log | grep -i events
env | grep -i events
clusterinfo_events_tenantToken=<token>
clusterinfo_events_elasticDocTypeId=itoa_events_apm
clusterinfo_events_perDayClamp=15000
clusterinfo_events_tenantId=
clusterinfo_events_tenantIngestionUrl=wss://apmservices-gateway.<endpoint>
clusterinfo_events_enabled=true
clusterinfo_events_namespaceFilter=
clusterinfo_events_metricsEnabled=true
clusterinfo_events_elasticProduct=ao
clusterinfo_events_elasticDocTypeVersion=1
clusterinfo_events_fieldSelector=type!=Normal
*IMPORTANT* : If you find that clusterinfo_events_enabled=false, delete the clusterinfo-pod to force the update in UMA deployment toi be taken into account
2) Check for possible error or exceptions in the clusterinfo log:
cat clusterInfo.log | grep -i events
3) Verify that data is getting ingested in the Elasticsearch events index:
Option 1: via Elastic pod