<div dir="ltr">Any thoughts on the below? i.e.: should the agent create individual metrics or should the endpoints be able to group.<div><br></div><div>Without this, it makes prometheus gauge metrics pretty useless.</div><div><br></div><div>Cheers.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 10, 2017 at 1:26 PM, Gareth Healy <span dir="ltr">&lt;<a href="mailto:garethahealy@gmail.com" target="_blank">garethahealy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">To carry on the discussion around whether the agent should create single metrics or hawkular should group the datapoints raised by Joel.<div><br></div><div>I&#39;ve done a bit more digging into different prometheus endpoints and heres an example from some work being done by Kuberenetes:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><a href="https://github.com/kubernetes/kube-state-metrics" target="_blank">https://github.com/kubernetes/<wbr>kube-state-metrics</a></div></div><div><div><div># HELP kube_node_info Information about a cluster node.</div></div></div><div><div><div># TYPE kube_node_info gauge</div></div></div><div><div><div>kube_node_info{container_runti<wbr>me_version=&quot;docker://1.10.3&quot;,<wbr>kernel_version=&quot;3.10.0-327.28.<wbr>3.el7.x86_64&quot;,kubelet_version=<wbr>&quot;v1.3.0+52492b4&quot;,kubeproxy_<wbr>version=&quot;v1.3.0+52492b4&quot;,node=<wbr>&quot;origin&quot;,os_image=&quot;CentOS Linux 7 (Core)&quot;} 1</div></div></div><div><div><br></div></div><div><div><div># HELP kube_pod_status_scheduled Describes the status of the scheduling process for the pod.</div></div></div><div><div><div># TYPE kube_pod_status_scheduled gauge</div></div></div><div><div><div>kube_pod_status_scheduled{cond<wbr>ition=&quot;true&quot;,namespace=&quot;cockpi<wbr>t&quot;,pod=&quot;openshift-cockpit-1-<wbr>0jub2&quot;} 1</div></div></div><div><div><br></div></div><div><div><div># HELP kube_pod_container_requested_c<wbr>pu_cores The number of requested cpu cores by a container.</div></div></div><div><div># TYPE kube_pod_container_requested_c<wbr>pu_cores gauge</div></div><div><div>kube_pod_container_requested_c<wbr>pu_cores{container=&quot;registry&quot;,<wbr>namespace=&quot;default&quot;,node=&quot;orig<wbr>in&quot;,pod=&quot;docker-registry-1-<wbr>i37wn&quot;} 0.1</div></div><div><br></div></blockquote>If the agent was to create single metrics, the idea in my mind would be as follows:<div><ul><li>Add a new boolean flag to create unique metrics based on labels (default=false, to keep functionality as-is)</li><li>Allow use of &quot;id&quot; field to contain value replacements based on label value (probably need to be sanitised / escaped??)</li></ul><div>i.e.:</div><div><br></div><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">metrics: <br>- name: kube_pod_container_requested_<wbr>cpu_cores <br>  id: kube_pod_container_requested_<wbr>cpu_cores_${container}_${node}<wbr> <br>  unique_metric_per_label: true</blockquote></div><div class="gmail_extra"><br></div><div class="gmail_extra">Which would create a gauge called:</div><div class="gmail_extra"><br></div><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">kube_pod_container_requested_c<wbr>pu_cores_registry_origin</blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">Does that sound feasible? and thoughts?</div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 1:06 PM, 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"><span class="m_8733129427346083084gmail-">&gt; Here, query by tag means time series tags, not data points tags. That&#39;s<br>
&gt; probably why you don&#39;t get anything. Maybe we should more clearly<br>
&gt; disambiguate these two concepts as there&#39;s often some confusion.<br>
<br>
</span>:-) And that, I think, is what I meant by tags on &quot;metric definitions&quot; - I think the H-Metrics team calls them &quot;timeseries tags&quot;.<br>
<div class="m_8733129427346083084gmail-HOEnZb"><div class="m_8733129427346083084gmail-h5">______________________________<wbr>_________________<br>
hawkular-dev mailing list<br>
<a href="mailto:hawkular-dev@lists.jboss.org" target="_blank">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/mailma<wbr>n/listinfo/hawkular-dev</a><br>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>