On 08/11/2014 07:44 PM, Bruno Grazioli wrote: > > Sorry Deepthi I was not so clear in my first answer, > > Having a look at > https://github.com/openstack/ceilometer/blob/master/ceilometer/energy/kwapi.py > at line 62, we see that the client searches for an endpoint called > energy, so I would set the type as energy instead of metering, would be > something like: > >>>keystone service-create --name=Kwapi --type=energy > --description="Kwapi Energy Monitor" > > Your endpoint does not seems is set up correctly, so try to remove the > "/probes" in the end of the urls, http://10.0.0.1:5002/v1 > <http://10.0.0.1:5002/v1/probes> and restart ceilometer service. If you > still have issues with the samples try to change the time interval. >
Thanks a lot Bruno. It works like a charm now! :-) Now shall move on try to get my multi-node setup with kwapi. Regards, Deepthi > BR, > Bruno. > Intern at ICCLab, ZHAW. > > > On Mon, Aug 11, 2014 at 1:54 PM, Deepthi Dharwar > <deep...@linux.vnet.ibm.com <mailto:deep...@linux.vnet.ibm.com>> wrote: > > Thanks a lot Bruno! > > Unfortunately I am still facing some minor hiccups. > > The machine is all-in-one devstack system. > This has my controller as well as my compute node on it. > > Outlining the process: > > I indeed created a keystone-service endpoint called 'kwapi' > > #> keystone service-create --name=kwapi --type=metering > --description="Energy" > +-------------+----------------------------------+ > | Property | Value | > +-------------+----------------------------------+ > | description | Energy | > | enabled | True | > | id | b952438819dc4481903455ed9a564c01 | > | name | kwapi | > | type | metering | > +-------------+----------------------------------+ > > I have my kwapi auth_port set to 5002. > > stack@mc3:~$ keystone endpoint-create --region RegionOne > --service-id=b952438819dc4481903455ed9a564c01 > --publicurl=http://10.0.0.1:5002/v1/probes > --internalurl=http://10.0.0.1:5002/v1/probes > --adminurl=http://10.0.0.1:5002/v1/probes > <http://10.0.0.1:5002/v1/probes > --adminurl=http://10.0.0.1:5002/v1/probes> > +-------------+-------------------------------------+ > | Property | Value | > +-------------+-------------------------------------+ > | adminurl | http://10.0.0.1:5002/v1/probes | > | id | 81557eac1b4348a882f2391796ee233f | > | internalurl | http://10.0.0.1:5002/v1/probes | > | publicurl | http://10.0.0.1:5002/v1/probes | > | region | RegionOne | > | service_id | b952438819dc4481903455ed9a564c01 | > +-------------+-------------------------------------+ > > I am able to fetch the energy and power numbers through the REST API and > python rrd tool. But still ceilometer is unable to read to it. > I have appended the /etc/ceilometer/pipeline.yaml with power and energy > meters. > > Ceilometer-acompute is erroring out with the following errors: > > DEBUG urllib3.connectionpool [-] Setting read timeout to None > _make_request > /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:375 > 2014-08-11 16:13:25.102 10413 DEBUG urllib3.connectionpool [-] "POST > /v2/tokens HTTP/1.1" 404 93 _make_request > /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:415 > 2014-08-11 16:13:25.103 10413 ERROR ceilometer.central.manager [-] Skip > interval_task because Keystone error: Authorization Failed: The resource > could not be found. (HTTP 404) > > > > Are there any tweaks in kwapi/api.conf and driver.conf wrt acl and > signing is concerned for ceilometer to talk to kwapi? > > > Please do let me know. > Regards, > Deepthi > > > > On 08/08/2014 09:01 PM, Bruno Grazioli wrote: > > Hi Deepthi, > > > > I solved this problem setting up a keystone endpoind for kwapi, > you can > > find more information here: > > > > > > http://docs.openstack.org/grizzly/openstack-compute/install/apt/content/keystone-service-endpoint-create.html > > > > After that change your pipeline.yaml file in /etc/ceilometer/ to > > recognize the energy meter, that would be something like: > > > > - name: meter_energy > > interval: 300 > > meters: > > - "power*" > > - "energy*" > > sinks: > > - meter_sink > > > > Restart the ceilometer service and you should be able to collect the > > power and energy metering from kwapi. > > > > BR, > > Bruno. > > Intern at ICCLab, ZHAW. > > > > 26. [energy] How to enable kwapi plugin in Ceilometer ? > > > > (Deepthi Dharwar) > > > > Message: 26 > > Date: Fri, 08 Aug 2014 14:44:57 +0530 > > From: Deepthi Dharwar <deep...@linux.vnet.ibm.com > <mailto:deep...@linux.vnet.ibm.com> > > <mailto:deep...@linux.vnet.ibm.com > <mailto:deep...@linux.vnet.ibm.com>>> > > To: openstack <openstack@lists.openstack.org > <mailto:openstack@lists.openstack.org> > > <mailto:openstack@lists.openstack.org > <mailto:openstack@lists.openstack.org>>> > > Subject: [Openstack] [energy] How to enable kwapi plugin in > > Ceilometer ? > > Message-ID: <53e49511.9060...@linux.vnet.ibm.com > <mailto:53e49511.9060...@linux.vnet.ibm.com> > > <mailto:53e49511.9060...@linux.vnet.ibm.com > <mailto:53e49511.9060...@linux.vnet.ibm.com>>> > > Content-Type: text/plain; charset=ISO-8859-1 > > > > Hi all, > > > > I am running devstack with Ceilometer enabled. I am looking to > gather > > energy and power stats. I have installed kwapi plugin and am > able to > > retrieve Power numbers via the kwapi-driver. > > > > I needed some help to know as to how to enable gathering of > these power > > stats in Ceilometer and what are the config changes needed to > do on the > > Ceilometer side for the same ? > > > > Regards, > > Deepthi > > > > > > > > > > ------------------------------ > > > > _______________________________________________ > > Openstack mailing list > > openstack@lists.openstack.org > <mailto:openstack@lists.openstack.org> > <mailto:openstack@lists.openstack.org > <mailto:openstack@lists.openstack.org>> > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > > > > > > End of Openstack Digest, Vol 14, Issue 9 > > **************************************** > > > > > > > > > > _______________________________________________ > > Mailing list: > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > > Post to : openstack@lists.openstack.org > <mailto:openstack@lists.openstack.org> > > Unsubscribe : > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > > > > _______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack