<div dir="ltr">Hi John,<div><br></div><div>Just tried deploying latest agent but get an error. Am running the below steps to deploy the agent:</div><div><br></div><div><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:menlo;font-size:9pt"><span style="color:rgb(128,128,128)">oc adm policy add-cluster-role-to-user cluster-reader system:serviceaccount:openshift-infra:hawkular-agent<br></span><span style="color:rgb(128,128,128)">oc create -f <a href="https://raw.githubusercontent.com/hawkular/hawkular-openshift-agent/master/deploy/openshift/hawkular-openshift-agent-configmap.yaml">https://raw.githubusercontent.com/hawkular/hawkular-openshift-agent/master/deploy/openshift/hawkular-openshift-agent-configmap.yaml</a> -n openshift-infra<br></span><span style="color:rgb(128,128,128)">oc process -f <a href="https://raw.githubusercontent.com/hawkular/hawkular-openshift-agent/master/deploy/openshift/hawkular-openshift-agent.yaml">https://raw.githubusercontent.com/hawkular/hawkular-openshift-agent/master/deploy/openshift/hawkular-openshift-agent.yaml</a> IMAGE_VERSION=latest | oc create -n openshift-infra -f -</span></pre></div><div class="gmail_extra"><br><div class="gmail_quote">But get this error when the agent starts:</div><div class="gmail_quote"><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote">E0111 18:34:11.353256       1 node_event_consumer.go:72] Error obtaining information about the agent pod [openshift-infra/hawkular-openshift-agent-h1ynb]. err=User &quot;system:serviceaccount:openshift-infra:hawkular-openshift-agent&quot; cannot get pods in project &quot;openshift-infra&quot;</div><div class="gmail_quote"><br></div></div></blockquote>I&#39;ve also got a custom pod that has a configmap mounted, but the agent never gets past this error message so doesn&#39;t collect any metrics.<div><br></div><div>Output of oc describe on my custom pod shows the volume mount:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>Volume Mounts:</div></div><div><div>      /var/run/configmap/hawkular-agent from hawkular-openshift-agent (rw)</div></div><div><br></div></blockquote>Any ideas?<br><div><div class="gmail_extra"><div class="gmail_quote"><br></div><div class="gmail_quote">On Sat, Jan 7, 2017 at 1:44 AM, John Mazzitelli <span dir="ltr">&lt;<a href="mailto:mazz@redhat.com" target="_blank">mazz@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">FYI: some new things went into HOSA (that&#39;s the Hawkular OpenShift Agent for the uninitiated).<br>
<br>
1. The agent now emits its own metrics and can monitor itself. Right now it just emits some basic &quot;go&quot; metrics like memory usage, CPU usage, etc along with one agent-specific one - a counter that counts the number of data points it has collected in its lifetime. We&#39;ll add more metrics as we figure out the things people want to see, but we have the infrastructure in place now.<br>
<br>
2. The agent is deployed as a daemonset. This means as new nodes are brought online, an agent will go along with it (or so I&#39;m told :)<br>
<br>
3. The agent has changed the way it discovers what to monitor - it no longer looks at annotations on pods to determine where the configmaps are for those pods. Instead, it looks up volume declarations to see if there is an agent configmap defined. This was done to be ready for the future when new security constraints will be introduced in OpenShift which would have broken our annotation approach. This approach using volumes should not hit that issue.<br>
<br>
NOTE: If you are building the latest agent from master, we added some dependencies so you have to update your dependencies via Glide by using the &quot;make update-deps&quot; target prior to building from source.<br>
______________________________<wbr>_________________<br>
hawkular-dev mailing list<br>
<a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/hawkular-dev</a><br>
</blockquote></div><br></div></div></div>