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.
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. 1. REST API POST /v2/meters/(*meter_name*) <https://docs.openstack.org/developer/ceilometer/webapi/v2.html#post--v2-meters-(meter_name)> Post a list of new Samples to Telemetry. Parameters: - *direct* (str) – a flag indicates whether the samples will be posted directly to storage or not. - *samples* (list(OldSample <https://docs.openstack.org/developer/ceilometer/webapi/v2.html#OldSample>)) – a list of samples within the request body. Return type: 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-packag es/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"}, By checking with [1] should I define a publisher to store smaples otherwise they will be not stored anywhere. [1]. https://github.com/openstack/ceilometer/blob/ c9065364d42d1a2e3ef4da30a09ebf6b49336026/ceilometer/api/ controllers/v2.py#L490 Thanks in advance. Hui.
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev