<div dir="ltr">gordon,<div><br></div><div>  Thanks much, it works by adding below section in pipeline.yaml</div><div><br></div><div><div>    - name: collectd_source</div><div>      interval: 60</div><div>      meters:</div><div>          - "load.load"</div><div>          - "memory.memory"</div><div>          - "interface.if_dropped"</div><div>          - "interface.if_errors"</div><div><br></div><div>    - name: collectd_sink</div><div>      transformers:</div><div>      publishers:</div><div>          - notifier://</div></div><div><br></div><div>    </div><div>   Another question, what is the difference between ceilometer backend database with the database:// configured in publishers? If I didn't set 'backend=xx' in ceilometer.conf but set 'connection=mongodb://user:password@ip_address/ceilometer', seems it connected to mongodb other than any backend options(sqlalchemy, mysql,etc), does the database:// configured in publishers should be actually 'mysql://user:password@ip_address/ceilometer' ?</div><div><br></div><div><br></div><div>Thanks.</div><div>Hui.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 21, 2017 at 11:40 AM, Hui Xiang <span dir="ltr"><<a href="mailto:xianghuir@gmail.com" target="_blank">xianghuir@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks gordon for your info.<div><br></div><div>The reason why not using gnocchi in mitaka is that we are using collectd-ceilometer-plugin[1] to posting samples to ceilometer through ceilometer-api, after mitaka yes we will all move to gnocchi.</div><span class=""><div><br></div><div><br></div><div>"""</div><div>when posting samples to ceilometer-api, the data goes through pipeline before being stored. therefore, you need notification-agent enabled AND you need to make sure the pipeline.yaml accepts the meter.<br></div><div>"""</div></span><div>As the samples posted doesn't have event_type, so I guess you mean I don't need to edit the event_pipeline.yaml, but need to edit the pipeline.yaml to accepts the meter. Could you kindly check whether below simple example make sense to accept the meter?  Does the source name need to match the source field in the sample or it can be defined as anyone. </div><div><br></div><div><span class=""><div>> [{"counter_name": "interface.if_errors",</div><div>>   "user_id": "<wbr>5457b977c25e4498a31a3c1c788296<wbr>31",</div><div>>   "resource_id": "localhost-ovs-system",</div><div>>   "timestamp": "2017-03-17T02:26:46",</div><div>>   "resource_metadata": {},</div><div>>   "source": <b>"<wbr>5b1525a8eb2d4739a83b296682aed0<wbr>23:collectd</b>",</div><div>>   "counter_unit": "Errors/s",</div><div>>   "counter_volume": 0.0,</div><div>>   "project_id": "<wbr>5b1525a8eb2d4739a83b296682aed0<wbr>23",</div><div>>   "message_id": "2b4ce294-0ab9-11e7-8058-<wbr>026ea687824d",</div><div>>   "counter_type": "delta"},</div><div>></div><div><br></div><div><br></div></span><div>sources:</div><div>    - name: <b>meter_source</b></div><div>      interval: 60</div><div>      meters:</div><div>          - "interface.if_errors"</div><div>      sinks:</div><div>          - meter_sink</div><div><br></div><div>sinks:</div><div>    - name: meter_sink</div><div>      transformers:</div><div>      publishers:</div><div>          - notifier://</div><div><br></div><div><br></div><div>Does the source name need to matching the source field in the sample or it can be defined as any.</div></div><div><br></div><div>[1]. <a href="https://github.com/openstack/collectd-ceilometer-plugin" target="_blank">https://github.com/openstack/<wbr>collectd-ceilometer-plugin</a><br><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks.</div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra">Hui.</div></font></span><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote"><br></div><div class="gmail_quote">On Tue, Mar 21, 2017 at 4:21 AM, gordon chung <span dir="ltr"><<a href="mailto:gord@live.ca" target="_blank">gord@live.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="m_-1893673952991838161gmail-"><br>
<br>
On 18/03/17 04:54 AM, Hui Xiang wrote:<br>
> Hi folks,<br>
><br>
>   I am trying to post samples from third part software to ceilometer via<br>
> the REST API as below with Mitaka version. I can see ceilometer-api has<br>
> received this post, and seems forwarded to ceilometer notification agent<br>
> through RMQ.<br>
><br>
<br>
</span>first and most importantly, the ceilometer-api is deprecated and not<br>
supported upstream anymore. please use gnocchi for proper time series<br>
storage (or whatever storage solution you feel comfortable with)<br>
<br>
><br>
> 2. LOG<br>
> 56:17] "*POST /v2/meters/interface.if_packet<wbr>s HTTP/1.1*" 201 -<br>
<span class="m_-1893673952991838161gmail-">> 2017-03-17 16:56:17.378 52955 DEBUG oslo_messaging._drivers.amqpdr<wbr>iver<br>
> [req-1c4ea84d-ea53-4518-81ea-6<wbr>c0bffa9745d<br>
> 5457b977c25e4498a31a3c1c788296<wbr>31 5b1525a8eb2d4739a83b296682aed0<wbr>23 - - -]<br>
> CAST unique_id: 64a6bae3bbcc4b7dab4dceb13cf7f8<wbr>1b NOTIFY exchange<br>
> 'ceilometer' topic 'notifications.sample' _send<br>
> /usr/lib/python2.7/site-packag<wbr>es/oslo_messaging/_drivers/<wbr>amqpdriver.py:438<br>
> 2017-03-17 16:56:17.382 52955 INFO werkzeug<br>
> [req-1c4ea84d-ea53-4518-81ea-6<wbr>c0bffa9745d<br>
> 5457b977c25e4498a31a3c1c788296<wbr>31 5b1525a8eb2d4739a83b296682aed0<wbr>23 - - -]<br>
> 192.168.0.3 - - [17/Mar/2017<br>
><br>
><br>
> 3. REST API return result<br>
> [{"counter_name": "interface.if_errors",<br>
>   "user_id": "5457b977c25e4498a31a3c1c78829<wbr>631",<br>
>   "resource_id": "localhost-ovs-system",<br>
>   "timestamp": "2017-03-17T02:26:46",<br>
>   "resource_metadata": {},<br>
>   "source": "5b1525a8eb2d4739a83b296682aed<wbr>023:collectd",<br>
>   "counter_unit": "Errors/s",<br>
>   "counter_volume": 0.0,<br>
>   "project_id": "5b1525a8eb2d4739a83b296682aed<wbr>023",<br>
>   "message_id": "2b4ce294-0ab9-11e7-8058-026ea<wbr>687824d",<br>
>   "counter_type": "delta"},<br>
><br>
<br>
</span>when posting samples to ceilometer-api, the data goes through pipeline<br>
before being stored. therefore, you need notification-agent enabled AND<br>
you need to make sure the pipeline.yaml accepts the meter.<br>
<span class="m_-1893673952991838161gmail-HOEnZb"><font color="#888888"><br>
--<br>
gord<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
</font></span></blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div>