Skip to main content

A Timer task for polling ceilometer metrics into zabbix

Project description

https://img.shields.io/pypi/v/zcp.svg

Objective

This project started as a way to integrate monitoring information collected in a Cloud environment, namely by OpenStack’s Ceilometer, integrating it with an already existing monitoring solution using Zabbix.

Features

  • Integration of OpenStack’s available monitoring information (e.g. using Ceilometer) with already existing Monitoring systems (e.g. Zabbix);

  • Automatically gather information about the existing Cloud Infrastructure being considered (tenants, instances);

  • Seamlessly handle changes in the Cloud Infrastructure (creation and deletion of tenants and/or instances);

  • Periodically retrieve resources/meters details from OpenStack;

  • Allow to have one common monitoring system (e.g Zabbix) for several OpenStack-based Cloud Data Centres;

  • Support keystone v3 to allow multiple domains using multiple proxies;

  • Support rabbitmq clusters to consume messages from topics of keystone and nova;

  • Provide default template(Template ZCP) to import through zabbix web interface;

  • Provide mongo driver to retrive metrics from Ceilometer mongodb directly.

Requirements

The Zabbix-Ceilometer Proxy was written using _Python_ version 2.7.5 but can be easily ported to version 3. It uses the Pika library for support of AMQP protocol, used by OpenStack.

For installing Pika, if you already have _Python_ and the _pip_ packet manager configured, you need only to use a terminal/console and simply run following command under the project directory:

sudo pip install -r requirement.txt

If the previous command fails, download and manually install the library on the host where you intend to run the ZCP.

Usage

Assuming that all the above requirements are met, the ZCP can be run with 3 simple steps:

  1. On your OpenStack installation point to your Keystone configuration file (keystone.conf) and update notification_driver to messaging(only support this driver for now):

    notification_driver = messaging
  2. Remember to modify ceilometer event_pipline.yaml. When the setup of notification_driver is done, a number of events of identity.authenticate will be put into ceilometer queue(notification.sample). There is no sense if record those events. The sample configuration in /etc/ceilometer/event_pipeline.yaml follows:

    | sources:
    |    - name: event_source
    |      events:
    |          - "*"
    |          - "!identity.authenticate"
    |      sinks:
    |          - event_sink
    | sinks:
    |    - name: event_sink
    |      transformers:
    |      triggers:
    |      publishers:
    |          - notifier://
  1. Create directory for ZCP’s log file and configuration file:

    $ sudo mkdir /var/log/zcp/
    $ sudo mkdir /etc/zcp/
  2. Copy proxy.conf to /etc/zcp/ and edit the proxy.conf configuration file to reflect your own system, including the IP addresses and ports of Zabbix and of the used OpenStack modules (RabbitMQ, Ceilometer Keystone and Nova). You can also tweak some ZCP internal configurations such as the polling interval and proxy name (used in Zabbix):

    $ sudo cp etc/proxy.conf /etc/zcp/proxy.conf
  3. Install zcp source code:

    $ python setup.py install
  4. Add template name(Use Template ZCP as default) under ‘zcp_configs’ and import the template to Zabbix through Zabbix Web Interface. You can see Template ZCP in Zabbix Templates if import success.

  5. Finally, run the Zabbix-Ceilometer Proxy in your console:

    $ eszcp-polling

If all goes well the information retrieved from OpenStack’s Ceilometer will be pushed in your Zabbix monitoring system.

Source

If not doing so already, you can check out the latest version of ZCP.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zcp-1.0.1.tar.gz (22.3 kB view details)

Uploaded Source

File details

Details for the file zcp-1.0.1.tar.gz.

File metadata

  • Download URL: zcp-1.0.1.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zcp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a2be56bc84a0c012ca8778d9425ef3fe2d6d69c98050dcf4780156f95d7958eb
MD5 cc31ac57ad24088a3dd4f2513922b2c4
BLAKE2b-256 0d72d2bb2cbfe26f020cb002cf3481be269c45574f7d771799702160b7884268

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page