Jump to: navigation, search

Difference between revisions of "Ceilometer/blueprints/multi-publisher"

Line 16: Line 16:
 
== User stories ==
 
== User stories ==
  
Disk usage data collected from hypervisor are published to ceilometer collector as meter through message bus, and published to synaps as metrics through [[PutMetricData]].
+
Disk usage data are published to ceilometer collector through message bus as meter, and published to synaps through [[PutMetricData]] API as metrics.
  
 
Metering system publish network usage data as per-vnic usage information, while CW publish the network usage data as a whole.
 
Metering system publish network usage data as per-vnic usage information, while CW publish the network usage data as a whole.
Line 25: Line 25:
  
 
This is just one possible design for this feature (keep that in mind).
 
This is just one possible design for this feature (keep that in mind).
 +
 +
Five components for multiple publisher support, data collector, transformer, publisher and pipeline, pipeline manager.
 +
 +
Data collectors collect measurements from other openstack project. Now two types of data collector in ceilometer, pollster and notification handler.
 +
 +
Transformers transform the data from data collectors or from other transformers. They can change the counter name, translate to another data format, drop some data etc.
 +
 +
Publishers publish data to the world through conduit.
 +
 +
Pipeline is a logic components chaining the data collectors, transformers and publishers together, so that measurement flows from different data collectors to different publishers. Multiple pipeline exists in the system.
 +
 +
Pipeline manager manages the pipelines in the system. Only one pipeline manager exist in the system. The measurement collected from the collector will be dispatched to the pipeline manager.
  
 
== Implementation ==
 
== Implementation ==
  
This section should describe a plan of action (the "how") to implement the changes discussed. Could include subsections like:
+
Below is the pipeline definition.
 +
 
 +
Top level is an array of pipeline definition.
 +
 
 +
Each pipeline item defines a list of targeted counter, an list of transformers with their corresponding parameter as dictionary, and publishers.
 +
 
 +
[
 +
    {
 +
        "counter_names" : ["counter_1", "counter_2"],
 +
        "tranformers": [
 +
                          {"Transformer_name": "Transformer_1",
 +
                            "Transformer_param": {}},
 +
                          {"Transformer_name": "Transformer_2",
 +
                            "Transformer_param": {}}
 +
                      ],
 +
        "publishers": ["publisher_1", "publisher_2"]
 +
    },
 +
    {
 +
        "counter_names" : ["counter_3", "counter_4"],
 +
        "tranformers":  [
 +
                              {"Transformer_name": "Transformer_1",
 +
                              "Transformer_param": {}},
 +
                              {"Transformer_name": "Transformer_2",
 +
                              "Transformer_param": {}}
 +
                        ],
 +
        "publishers": ["publisher_1", "publisher_2"]
 +
    }
 +
]
 +
 
 +
Target counter name format: "*", "counter_name", or "!counter_name". It's from the 'name' field in the Counter named tuple.
 +
 
 +
Transformer_name is from namespace definitions in setup.py.
 +
 
 +
Publisher_name is from namespace definitions in setup.py.
  
 
=== UI Changes ===
 
=== UI Changes ===
Line 36: Line 81:
 
=== Code Changes ===
 
=== Code Changes ===
  
Code changes should include an overview of what needs to change, and in some cases even the specific details.
+
Changes to agent manager, central manager, collect service to load the transformers and publishers, to setup the pipeline manager.
 +
 
 +
Add the implementation of transformer, the publishers etc.
  
 
=== Migration ===
 
=== Migration ===

Revision as of 07:35, 5 December 2012

  • Launchpad Entry: CeilometerSpec:multi-publisher
  • Created: 05 Dec 2012
  • Contributors: Yunhong Jiang

Summary

Multiple publishers in ceilometer transform collected measurements into different format, like meter, metrics etc, and publish to different target, like data storage, synaps etc, through different conduit, like rpc, UDP etc.

To support different requirement from different publishers, a set a transformers are orgnized as pipeline, to transform the data from counter to meter, metrics etc.

Release Note

Rationale

User stories

Disk usage data are published to ceilometer collector through message bus as meter, and published to synaps through PutMetricData API as metrics.

Metering system publish network usage data as per-vnic usage information, while CW publish the network usage data as a whole.

Assumptions

Design

This is just one possible design for this feature (keep that in mind).

Five components for multiple publisher support, data collector, transformer, publisher and pipeline, pipeline manager.

Data collectors collect measurements from other openstack project. Now two types of data collector in ceilometer, pollster and notification handler.

Transformers transform the data from data collectors or from other transformers. They can change the counter name, translate to another data format, drop some data etc.

Publishers publish data to the world through conduit.

Pipeline is a logic components chaining the data collectors, transformers and publishers together, so that measurement flows from different data collectors to different publishers. Multiple pipeline exists in the system.

Pipeline manager manages the pipelines in the system. Only one pipeline manager exist in the system. The measurement collected from the collector will be dispatched to the pipeline manager.

Implementation

Below is the pipeline definition.

Top level is an array of pipeline definition.

Each pipeline item defines a list of targeted counter, an list of transformers with their corresponding parameter as dictionary, and publishers.

[

   {
        "counter_names" : ["counter_1", "counter_2"],
        "tranformers": [
                          {"Transformer_name": "Transformer_1",
                           "Transformer_param": {}},
                          {"Transformer_name": "Transformer_2",
                           "Transformer_param": {}}
                      ],
        "publishers": ["publisher_1", "publisher_2"]
    },
    {
        "counter_names" : ["counter_3", "counter_4"],
        "tranformers":  [
                             {"Transformer_name": "Transformer_1",
                              "Transformer_param": {}},
                             {"Transformer_name": "Transformer_2",
                              "Transformer_param": {}}
                        ],
        "publishers": ["publisher_1", "publisher_2"]
    }

]

Target counter name format: "*", "counter_name", or "!counter_name". It's from the 'name' field in the Counter named tuple.

Transformer_name is from namespace definitions in setup.py.

Publisher_name is from namespace definitions in setup.py.

UI Changes

Should cover changes required to the UI, or specific UI that is required to implement this

Code Changes

Changes to agent manager, central manager, collect service to load the transformers and publishers, to setup the pipeline manager.

Add the implementation of transformer, the publishers etc.

Migration

Include:

  • data migration, if any
  • redirects from old URLs to new ones, if any
  • how users will be pointed to the new way of doing things, if necessary.

Test/Demo Plan

This need not be added or completed until the specification is nearing beta.

Unresolved issues

This should highlight any issues that should be addressed in further specifications, and not problems with the specification itself; since any specification with problems cannot be approved.

BoF agenda and discussion

Use this section to take notes during the BoF; if you keep it in the approved spec, use it for summarising what was discussed and note any options that were rejected.