<div dir="ltr"><span style="font-size:12.8px">Hi folks,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">  I am trying to post samples from third part software to ceilometer via the REST API as below with Mitaka version. I can see ceilometer-api has received this post, and seems forwarded to ceilometer notification agent through RMQ.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">  However I can't find the meters anywhere posted, do I need to do some additional configuration like adding new custom meter in the meter file? But in our case I don't have the event type filed.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">1. REST API</div><div style="font-size:12.8px"><dt id="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-post--v2-meters-(meter_name)" style="color:rgb(62,67,73);font-size:14.4px"><tt class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-descname" style="color:rgb(34,34,34);font-size:1.2em;font-weight:bold;background-color:transparent">  POST </tt><tt class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-descname" style="color:rgb(34,34,34);font-size:1.2em;font-weight:bold;background-color:transparent">/v2/meters/</tt><big>(</big><em>meter_name</em><big>)</big><a class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-headerlink" href="https://docs.openstack.org/developer/ceilometer/webapi/v2.html#post--v2-meters-(meter_name)" title="Permalink to this definition" target="_blank" style="color:rgb(255,255,255);text-decoration:none;font-size:0.8em;padding:0px 4px;margin-left:5px;background-image:initial;background-color:rgb(207,47,25);background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"></a></dt><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px;line-height:1.5em;color:rgb(62,67,73);font-size:14.4px"><p style="margin-top:0px;line-height:1.5em">Post a list of new Samples to Telemetry.</p><table class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-docutils gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-field-list" frame="void" rules="none" style="margin-bottom:10px;border:0px;border-collapse:collapse"><colgroup><col class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-field-name"><col class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-field-body"></colgroup><tbody valign="top"><tr class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-field-odd gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-field"><th class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-field-name" style="text-align:left;padding:1px 8px 1px 0px;border:0px">Parameters:</th><td class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-field-body" style="padding:1px 8px 1px 0px;border:0px"><ul class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-first gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-simple" style="margin:0px;padding-left:1em"><li style="margin-left:15px;line-height:1.5em"><strong>direct</strong> (<tt class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-xref gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-py gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-py-class gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-docutils gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-literal" style="font-size:1.1em;font-weight:bold;background-color:transparent"><span class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-pre">str</span></tt>) – a flag indicates whether the samples will be posted directly to storage or not.</li><li style="margin-left:15px;line-height:1.5em"><strong>samples</strong> (list(<a class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-reference gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-internal" href="https://docs.openstack.org/developer/ceilometer/webapi/v2.html#OldSample" title="OldSample" target="_blank" style="color:rgb(0,91,129);text-decoration:none"><tt class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-xref gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-py gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-py-class gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-docutils gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-literal" style="font-size:1.1em;font-weight:bold;background-color:transparent"><span class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-pre">OldSample</span></tt></a>)) – a list of samples within the request body.</li></ul></td></tr><tr class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-field-even gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-field"><th class="gmail-m_-1215265300292283838gmail-m_5685428293742189318gmail-field-name" style="text-align:left;padding:1px 8px 1px 0px;border:0px">Return type:<br><br></th></tr></tbody></table></dd></div><div style="font-size:12.8px">2. LOG</div><div style="font-size:12.8px"><div>56:17] "<b>POST /v2/meters/interface.if_packet<wbr>s HTTP/1.1</b>" 201 -</div><div>2017-03-17 16:56:17.378 52955 DEBUG oslo_messaging._drivers.amqpdr<wbr>iver [req-1c4ea84d-ea53-4518-81ea-6<wbr>c0bffa9745d 5457b977c25e4498a31a3c1c788296<wbr>31 5b1525a8eb2d4739a83b296682aed0<wbr>23 - - -] CAST unique_id: 64a6bae3bbcc4b7dab4dceb13cf7f8<wbr>1b NOTIFY exchange 'ceilometer' topic 'notifications.sample' _send /usr/lib/python2.7/site-packag<wbr>es/oslo_messaging/_drivers/<wbr>amqpdriver.py:438</div><div>2017-03-17 16:56:17.382 52955 INFO werkzeug [req-1c4ea84d-ea53-4518-81ea-6<wbr>c0bffa9745d 5457b977c25e4498a31a3c1c788296<wbr>31 5b1525a8eb2d4739a83b296682aed0<wbr>23 - - -] 192.168.0.3 - - [17/Mar/2017 </div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">3. REST API return result</div><div style="font-size:12.8px"><div style="font-size:12.8px">[{"counter_name": "interface.if_errors", </div><div style="font-size:12.8px">  "user_id": "<wbr>5457b977c25e4498a31a3c1c788296<wbr>31", </div><div style="font-size:12.8px">  "resource_id": "localhost-ovs-system", </div><div style="font-size:12.8px">  "timestamp": "2017-03-17T02:26:46", </div><div style="font-size:12.8px">  "resource_metadata": {}, </div><div style="font-size:12.8px">  "source": "<wbr>5b1525a8eb2d4739a83b296682aed0<wbr>23:collectd", </div><div style="font-size:12.8px">  "counter_unit": "Errors/s", </div><div style="font-size:12.8px">  "counter_volume": 0.0,</div><div style="font-size:12.8px">  "project_id": "<wbr>5b1525a8eb2d4739a83b296682aed0<wbr>23",</div><div style="font-size:12.8px">  "message_id": "2b4ce294-0ab9-11e7-8058-<wbr>026ea687824d",</div><div style="font-size:12.8px">  "counter_type": "delta"}, </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">By checking with [1] should I define a publisher to store smaples otherwise they will be not stored anywhere.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">[1]. <a href="https://github.com/openstack/ceilometer/blob/c9065364d42d1a2e3ef4da30a09ebf6b49336026/ceilometer/api/controllers/v2.py#L490" target="_blank">https://github.com/<wbr>openstack/ceilometer/blob/<wbr>c9065364d42d1a2e3ef4da30a09ebf<wbr>6b49336026/ceilometer/api/<wbr>controllers/v2.py#L490</a></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div></div><div style="font-size:12.8px">Thanks in advance.</div><div style="font-size:12.8px"><br></div><div class="gmail-m_-1215265300292283838gmail-yj6qo gmail-m_-1215265300292283838gmail-ajU" style="font-size:12.8px;margin:2px 0px 0px"><div id="gmail-m_-1215265300292283838gmail-:24x" class="gmail-m_-1215265300292283838gmail-ajR"><img class="gmail-m_-1215265300292283838gmail-ajT gmail-CToWUd" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif">Hui.</div></div></div>