Ah nice. I’m gonna dig through their agent code for kube and see if there’s any low hanging fruit that can be knocked out to get it talking to openshift/heapster. They have a couple repos on github https://github.com/DataDog/integrations-core/blob/master/kubernetes/check.py
From: David Conde <david donedeal ie>
Date: Thursday, May 18, 2017 at 8:56 AM
To: Alex Creek <therealcreek99 gmail com>
Cc: Jay Vyas <jvyas redhat com>, users <users lists openshift redhat com>
Subject: Re: Kubelet & Cadvisor
I was able to get past that by enabling hostDir for the service account, I also had to set privileged: true in the security context so it could access the cgroups mounts etc. The next issue I hit was it tries to access cAdvisor via a non secure port instead of via the kubelet stats api.
I also had to mount kubelet certs into a volume so that they could be used to talk to kubelet over SSL. I contacted their support about the cAdvisor issue, they responded with its currently in their backlog.
On 18 May 2017 at 13:16, Alex Creek <therealcreek99 gmail com> wrote:
+1 for protips on getting datadog to monitor openshift
I wasn’t able to get the datadog agent working with 1.4. I tried both of their out-of-the-box solutions for the k8s integration and no dice. Have yet to deep dive and investigate.
The initial problem I ran into was their pre-baked monitoring daemonSet used hostPath volumes and I didn’t have them enabled. Once I did enable them the entire container filesystem was readonly and the datadog agent fell over when it tried to write to disk :\ I tried the other solution running the agent via docker cli and the container starts and appears to be working but no metrics are collected.
I contacted DataDog and they have said it is a known issue for them which they expect to have fixed in a few months.
Can anyone point me at a guide for a good setup for monitoring and alerting when using Openshift? I have looked at DataDog but it looks like there is an outstanding bug in the k8s integration which prevents it working with Openshift installs. I also installed hawkular but it looks like there is no UI to configure alerts in place yet.
Would anyone be willing to share their experience?
I am trying to get the DataDog agent working with k8s integration. I'm hitting an issue around cadvisor not being available. I have read that cadvisor is available via kubelet as long as I'm using certs to access it.
Does anyone know what the equivalent of the 2 URLs below are when trying to access via kubelet?
In general I don't think there is anything wrong with accessing cadvisor directly, except that I believe cadvisor isn't exposed from kubelets.... So i think, /stats/summary in the kubelet will externalize some of the cadvisor metrics you want.
The thread below describes the idea behind stats as a cadvisor wrapper
_______________________________________________ users mailing list users lists openshift redhat com http://lists.openshift.redhat.com/openshiftmm/listinfo/users