Home > Cloud Cruiser 4 > Collecting, transforming, and publishing > 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: The name of the Service tenant (project), found under Admin > Project in the OpenStack dashboard. The default is service.
  • admin tenant name: The name of the Admin tenant (project). The default is admin.
  • ceilometer endpoint type: The URL (endpoint) with which to access the Ceilometer API. Valid values are publicURLinternalURL, and adminURL. The default is publicURL.
  • keystone endpoint type: The URL (endpoint) with which to access the Keystone API. Valid values are publicURLinternalURL, 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. 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" />
</bean>
Last modified

Tags

This page has no custom tags.

Classifications

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