Cloud Cruiser became HPE Consumption Analytics on Nov. 1st. You'll still see the old name in places while we update this site.

 

 

Consumption Analytics Documentation

Home > Cloud Cruiser 3 > Setting Up Collection > Native collectors > OpenStack via Ceilometer > Creating a data source

Creating a data source

OpenStack requires the following information in a data source:

  • endpoint: The public URL for the Keystone API on your OpenStack instance, which is configured with the os_auth_url parameter in the global configuration file.
    The collector uses this endpoint for initial authentication, though you can use Keystone's internal URL or admin URL for the rest of the collector's work: see the keystone endpoint type field.
    By default, the URL is http://<hostname>:5000/v2.0. For example, http://keystoneserver:5000/v2.0.
  • username: The name of an OpenStack user account
  • password: The password for this user
  • service tenant name: (v3.4 and later) The name of the Service tenant (project), found under Admin > Project in the OpenStack dashboard. The default is service.
  • admin tenant name: (v3.4 and later) The name of the Admin tenant (project). The default is admin.
  • ceilometer endpoint type: (v3.6 and later) The URL (endpoint) with which to access the Ceilometer API. Valid values are publicURL, internalURL, and adminURL. The default is publicURL.
  • keystone endpoint type: (v3.6 and later) The URL (endpoint) with which to access the Keystone API. Valid values are publicURL, internalURL, and adminURL. The default is adminURL.

You can define this information in a managed data source or an explicit data source. For general information about these two types, see Setting up a data source.

Managed data source

When creating a managed data source, select the type OpenStack Ceilometer. When referring to your data source from a job, use the com.cloudcruiser.batch.collect.openstack.ManagedOpenStackDataSource​​​​ bean. For example:

<bean id="dataSource" class="com.cloudcruiser.batch.collect.openstack.ManagedOpenStackDataSource">
  <property name="name" value="MyOpenStackDataSource"/>
</bean>

Explicit data source

When defining your data source in a job, use the com.cloudcruiser.batch.collect.openstack.OpenStackDataSourceConfig​​​​ bean.

With an explicit data source you can specify more options, such as a custom timeout for the collector. For example:

<bean id="dataSource" class="com.cloudcruiser.batch.collect.openstack.OpenStackDataSourceConfig">
  <property name="endpoint" value="http://192.168.101.158:5000/v2.0" />
  <property name="username" value="ceilometer" />
  <property name="password" value="qwerty" />
  <property name="serviceTenantName" value="altservice"/>
  <property name="adminTenantName" value="altadmin"/>
  <property name="ceilometerEndpointType" value="internalURL"/>
  <property name="keystoneEndpointType" value="publicURL"/>
  <property name="timeoutSeconds" value="600"/>
</bean>
Last modified

Tags

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP