Collects OpenStack Nova module metrics
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This project will no longer be maintained by Intel. Intel will not provide or guarantee development of or support for this project, including but not limited to, maintenance, bug fixes, new releases or updates. Patches to this project are no longer accepted by Intel. If you have an ongoing need to use this project, are interested in independently developing it, or would like to maintain patches for the community, please create your own fork of the project.

snap collector plugin - OpenStack Nova

This plugin monitors openstack nova resources such as limits, quotas and hypervisors.

  1. Getting Started
  1. Documentation
  1. Community Support
  2. Contributing
  3. License
  4. Acknowledgements

Getting Started

Plugin retrieves statistics using Nova Compute v2 Rest API.

System Requirements

Operating systems

All OSs currently supported by snap:

  • Linux/amd64


Download OpenStack Nova plugin binary:

You can get the pre-built binaries for your OS and architecture at plugins's GitHub Releases page. Download the plugins package from the latest release, unzip and store in a path you want snaptel to access.

To build the plugin binary:


Clone repo into $GOPATH/src/

$ git clone<yourGithubID>/snap-plugin-collector-nova.git

Build the plugin by running make within the cloned repo:

$ make

This builds the plugin in ./build/

Configuration and Usage

Configuration for this plugin is given via global config. Global configuration files are described in snap's documentation. You have to add section "nova-compute" in "collector" section and then specify following options:

  • "openstack_user" - user name used to authenticate (ex. "admin"),
  • "openstack_pass"- password used to authenticate (ex. "admin"),
  • "openstack_tenant" - tenant name used to authenticate (ex. "admin"),
  • "openstack_auth_url" - keystone url (ex. ""). If you're using authentication API in v3 you need to set one of those two configuration options (Note that both keys should be present in config, but only one of them is allowed to be set):
  • "openstack_domain_name" - domain name
  • "openstack_domain_id" - domain name

These values should correspond to values given in nova.conf:

  • "allocation_ratio_cores" - oversubscription ratio for vcpus, used to derive some metrics for hypervisors (ex. 1.5),
  • "allocation_ratio_ram" - oversubscription ratio for memory, used to derive some metrics for hypervisors (ex. 3),
  • "reserved_node_cores" - reserved virtual cores, used to derive some metrics for hypervisors (ex. 2),
  • "reserved_node_ram_mb" - reserved virtual memory, used to derive some metrics for hypervisors (ex. 2048).

Example global configuration file for snap-plugin-collector-nova plugin (exemplary file in [examples/cfg/] (examples/cfg/)):

    "control": {
        "plugins": {
            "collector": {
                "nova-compute": {
                  "all": {
                    "openstack_auth_url": "http://localhost:5000/v2.0/",
                    "openstack_user": "admin",
                    "openstack_pass": "admin",
                    "openstack_tenant": "admin",
                    "allocation_ratio_cores" : 1.5,
                    "allocation_ratio_ram": 3,
                    "reserved_node_cores" : 2,
                    "reserved_node_ram_mb" : 2048
            "publisher": {},
            "processor": {}


Collected Metrics

List of collected metrics is described in


Example running nova collector and writing data to a file.

Create or download example global config on snapteld's node:

mkdir -p /etc/snap/
curl -sfLO -o /etc/snap/snapteld.conf

Ensure snap daemon is running:

  • initd: sudo service snap-telemetry start
  • systemd: sudo systemctl start snap-telemetry
  • command line: sudo snapteld -l 1 -t 0 &

Download and load snap plugins:

$ wget
$ wget
$ snaptel plugin load snap-plugin-collector-nova
$ snaptel plugin load snap-plugin-publisher-file

See available metrics for your system

$ snaptel metric list

Download an example task file and load it:

$ curl -sfLO
$ snaptel task create -t task.json
Using task manifest to create task
Task created
ID: 02dd7ff4-8106-47e9-8b86-70067cd0a850
Name: Task-02dd7ff4-8106-47e9-8b86-70067cd0a850
State: Running


There isn't a current roadmap for this plugin, but it is in active development. As we launch this plugin, we do not have any outstanding requirements for the next release. If you have a feature request, please add it as an issue and/or submit a pull request.

Community Support

This repository is one of many plugins in snap, a powerful telemetry framework. See the full project at To reach out to other users, head to the main framework


We love contributions!

There's more than one way to give back, from examples to blogs to code updates. See our recommended process in

And thank you! Your contribution, through code and participation, is incredibly important to us.


snap, along with this plugin, is an Open Source software released under the Apache 2.0 License.