[openstack-dev] [ceilometer]Can't find meter anywhere with ceilometer post REST API
gordon chung
gord at live.ca
Mon Mar 20 20:21:44 UTC 2017
On 18/03/17 04:54 AM, Hui Xiang wrote:
> Hi folks,
>
> 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.
>
first and most importantly, the ceilometer-api is deprecated and not
supported upstream anymore. please use gnocchi for proper time series
storage (or whatever storage solution you feel comfortable with)
>
> 2. LOG
> 56:17] "*POST /v2/meters/interface.if_packets HTTP/1.1*" 201 -
> 2017-03-17 16:56:17.378 52955 DEBUG oslo_messaging._drivers.amqpdriver
> [req-1c4ea84d-ea53-4518-81ea-6c0bffa9745d
> 5457b977c25e4498a31a3c1c78829631 5b1525a8eb2d4739a83b296682aed023 - - -]
> CAST unique_id: 64a6bae3bbcc4b7dab4dceb13cf7f81b NOTIFY exchange
> 'ceilometer' topic 'notifications.sample' _send
> /usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py:438
> 2017-03-17 16:56:17.382 52955 INFO werkzeug
> [req-1c4ea84d-ea53-4518-81ea-6c0bffa9745d
> 5457b977c25e4498a31a3c1c78829631 5b1525a8eb2d4739a83b296682aed023 - - -]
> 192.168.0.3 - - [17/Mar/2017
>
>
> 3. REST API return result
> [{"counter_name": "interface.if_errors",
> "user_id": "5457b977c25e4498a31a3c1c78829631",
> "resource_id": "localhost-ovs-system",
> "timestamp": "2017-03-17T02:26:46",
> "resource_metadata": {},
> "source": "5b1525a8eb2d4739a83b296682aed023:collectd",
> "counter_unit": "Errors/s",
> "counter_volume": 0.0,
> "project_id": "5b1525a8eb2d4739a83b296682aed023",
> "message_id": "2b4ce294-0ab9-11e7-8058-026ea687824d",
> "counter_type": "delta"},
>
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.
--
gord
More information about the OpenStack-dev
mailing list