<div dir="ltr">Yurii,<div><br></div><div>   Thanks, with the config listed above, it works now.</div><div><br></div><div>Hui.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 21, 2017 at 2:50 PM, Yurii Prokulevych <span dir="ltr"><<a href="mailto:yprokule@redhat.com" target="_blank">yprokule@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Pipeline's config looks good. Could U please enable debug/verbose in<br>
ceilometer.conf and check ceilometer/collector.log ?<br>
<br>
---<br>
Yurii<br>
<div><div class="h5"><br>
On Tue, 2017-03-21 at 11:40 +0800, Hui Xiang wrote:<br>
> Thanks gordon for your info.<br>
><br>
> The reason why not using gnocchi in mitaka is that we are using<br>
> collectd-ceilometer-plugin[1] to posting samples to ceilometer<br>
> through ceilometer-api, after mitaka yes we will all move to gnocchi.<br>
><br>
><br>
> """<br>
> when posting samples to ceilometer-api, the data goes through<br>
> pipeline before being stored. therefore, you need notification-agent<br>
> enabled AND you need to make sure the pipeline.yaml accepts the<br>
> meter.<br>
> """<br>
> As the samples posted doesn't have event_type, so I guess you mean I<br>
> don't need to edit the event_pipeline.yaml, but need to edit the<br>
> pipeline.yaml to accepts the meter. Could you kindly check whether<br>
> below simple example make sense to accept the meter?  Does the source<br>
> name need to match the source field in the sample or it can be<br>
> defined as anyone. <br>
><br>
> > [{"counter_name": "interface.if_errors",<br>
> >   "user_id": "<wbr>5457b977c25e4498a31a3c1c788296<wbr>31",<br>
> >   "resource_id": "localhost-ovs-system",<br>
> >   "timestamp": "2017-03-17T02:26:46",<br>
> >   "resource_metadata": {},<br>
> >   "source": "<wbr>5b1525a8eb2d4739a83b296682aed0<wbr>23:collectd",<br>
> >   "counter_unit": "Errors/s",<br>
> >   "counter_volume": 0.0,<br>
> >   "project_id": "<wbr>5b1525a8eb2d4739a83b296682aed0<wbr>23",<br>
> >   "message_id": "2b4ce294-0ab9-11e7-8058-<wbr>026ea687824d",<br>
> >   "counter_type": "delta"},<br>
> ><br>
><br>
><br>
> sources:<br>
>     - name: meter_source<br>
>       interval: 60<br>
>       meters:<br>
>           - "interface.if_errors"<br>
>       sinks:<br>
>           - meter_sink<br>
><br>
> sinks:<br>
>     - name: meter_sink<br>
>       transformers:<br>
>       publishers:<br>
>           - notifier://<br>
><br>
><br>
> Does the source name need to matching the source field in the sample<br>
> or it can be defined as any.<br>
><br>
> [1]. <a href="https://github.com/openstack/collectd-ceilometer-plugin" rel="noreferrer" target="_blank">https://github.com/openstack/<wbr>collectd-ceilometer-plugin</a><br>
><br>
><br>
> Thanks.<br>
> Hui.<br>
><br>
><br>
> On Tue, Mar 21, 2017 at 4:21 AM, gordon chung <<a href="mailto:gord@live.ca">gord@live.ca</a>> wrote:<br>
> ><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<br>
> > ceilometer via<br>
> > > the REST API as below with Mitaka version. I can see ceilometer-<br>
> > api has<br>
> > > received this post, and seems forwarded to ceilometer<br>
> > notification agent<br>
> > > through RMQ.<br>
> > ><br>
> ><br>
> > first and most importantly, the ceilometer-api is deprecated and<br>
> > not<br>
> > supported upstream anymore. please use gnocchi for proper time<br>
> > series<br>
> > storage (or whatever storage solution you feel comfortable with)<br>
> ><br>
> > ><br>
> > > 2. LOG<br>
> > > 56:17] "*POST /v2/meters/interface.if_<wbr>packets HTTP/1.1*" 201 -<br>
> > > 2017-03-17 16:56:17.378 52955 DEBUG<br>
> > oslo_messaging._drivers.<wbr>amqpdriver<br>
> > > [req-1c4ea84d-ea53-4518-81ea-<wbr>6c0bffa9745d<br>
> > > 5457b977c25e4498a31a3c1c788296<wbr>31 5b1525a8eb2d4739a83b296682aed0<wbr>23<br>
> > - - -]<br>
> > > CAST unique_id: 64a6bae3bbcc4b7dab4dceb13cf7f8<wbr>1b NOTIFY exchange<br>
> > > 'ceilometer' topic 'notifications.sample' _send<br>
> > > /usr/lib/python2.7/site-<br>
> > packages/oslo_messaging/_<wbr>drivers/amqpdriver.py:438<br>
> > > 2017-03-17 16:56:17.382 52955 INFO werkzeug<br>
> > > [req-1c4ea84d-ea53-4518-81ea-<wbr>6c0bffa9745d<br>
> > > 5457b977c25e4498a31a3c1c788296<wbr>31 5b1525a8eb2d4739a83b296682aed0<wbr>23<br>
> > - - -]<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": "<wbr>5457b977c25e4498a31a3c1c788296<wbr>31",<br>
> > >   "resource_id": "localhost-ovs-system",<br>
> > >   "timestamp": "2017-03-17T02:26:46",<br>
> > >   "resource_metadata": {},<br>
> > >   "source": "<wbr>5b1525a8eb2d4739a83b296682aed0<wbr>23:collectd",<br>
> > >   "counter_unit": "Errors/s",<br>
> > >   "counter_volume": 0.0,<br>
> > >   "project_id": "<wbr>5b1525a8eb2d4739a83b296682aed0<wbr>23",<br>
> > >   "message_id": "2b4ce294-0ab9-11e7-8058-<wbr>026ea687824d",<br>
> > >   "counter_type": "delta"},<br>
> > ><br>
> ><br>
> > when posting samples to ceilometer-api, the data goes through<br>
> > pipeline<br>
> > before being stored. therefore, you need notification-agent enabled<br>
> > AND<br>
> > you need to make sure the pipeline.yaml accepts the meter.<br>
> ><br>
> > --<br>
> > gord<br>
> ><br>
> > ______________________________<wbr>______________________________<wbr>_______<br>
> > _______<br>
> > OpenStack Development Mailing List (not for usage questions)<br>
> > Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsu" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:unsu</a><br>
> > bscribe<br>
> > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
> ><br>
><br>
</div></div>> ______________________________<wbr>______________________________<wbr>_________<br>
<div class="HOEnZb"><div class="h5">> _____<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubs" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:unsubs</a><br>
> cribe<br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><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.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</div></div></blockquote></div><br></div>