Move meter.py into collector directory
With multiple publisher support, metering becomes only one type of publisher, thus move the meter.py into collector. The publish.py should be moved to publisher directory as only meter publisher in future. Change-Id: I3b4f5dac3cd46c77dc077ff6acbba79284640428 Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
This commit is contained in:
parent
81f149854f
commit
28caab87cf
@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
from stevedore import extension
|
from stevedore import extension
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import extension_manager
|
from ceilometer import extension_manager
|
||||||
from ceilometer import meter
|
|
||||||
from ceilometer import publish
|
from ceilometer import publish
|
||||||
from ceilometer import service
|
from ceilometer import service
|
||||||
from ceilometer import storage
|
from ceilometer import storage
|
||||||
|
@ -18,10 +18,10 @@
|
|||||||
"""Publish a counter using the preferred RPC mechanism.
|
"""Publish a counter using the preferred RPC mechanism.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from ceilometer.openstack.common import log
|
from ceilometer.openstack.common import log
|
||||||
from ceilometer.openstack.common import rpc
|
from ceilometer.openstack.common import rpc
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
|
|
||||||
from ceilometer.tests import api as tests_api
|
from ceilometer.tests import api as tests_api
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
|
|
||||||
from ceilometer.tests import api as tests_api
|
from ceilometer.tests import api as tests_api
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from ceilometer.tests import api as tests_api
|
from ceilometer.tests import api as tests_api
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
|
|
||||||
from ceilometer.tests import api as tests_api
|
from ceilometer.tests import api as tests_api
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.tests import api as tests_api
|
from ceilometer.tests import api as tests_api
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from ceilometer.tests import api as tests_api
|
from ceilometer.tests import api as tests_api
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from ceilometer.tests import api as tests_api
|
from ceilometer.tests import api as tests_api
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from ceilometer.tests import api as tests_api
|
from ceilometer.tests import api as tests_api
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from ceilometer.tests import api as tests_api
|
from ceilometer.tests import api as tests_api
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from ceilometer.tests import api as tests_api
|
from ceilometer.tests import api as tests_api
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
|
|
||||||
from .base import FunctionalTest
|
from .base import FunctionalTest
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
|
|
||||||
from .base import FunctionalTest
|
from .base import FunctionalTest
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
|
|
||||||
from .base import FunctionalTest
|
from .base import FunctionalTest
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
|
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from ceilometer.tests.db import require_map_reduce
|
from ceilometer.tests.db import require_map_reduce
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from .base import FunctionalTest
|
from .base import FunctionalTest
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from .base import FunctionalTest
|
from .base import FunctionalTest
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from .base import FunctionalTest
|
from .base import FunctionalTest
|
||||||
|
@ -25,7 +25,7 @@ from mock import patch
|
|||||||
from stevedore import extension
|
from stevedore import extension
|
||||||
from stevedore.tests import manager as test_manager
|
from stevedore.tests import manager as test_manager
|
||||||
|
|
||||||
from ceilometer import meter
|
from ceilometer.collector import meter
|
||||||
from ceilometer.collector import service
|
from ceilometer.collector import service
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from ceilometer.storage import base
|
from ceilometer.storage import base
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
"""Tests for ceilometer.meter
|
"""Tests for ceilometer.meter
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
|
|
||||||
|
|
||||||
def test_compute_signature_change_key():
|
def test_compute_signature_change_key():
|
@ -51,8 +51,8 @@ import unittest
|
|||||||
|
|
||||||
import mox
|
import mox
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
from ceilometer import storage
|
from ceilometer import storage
|
||||||
from ceilometer.tests.db import TestConnection, require_map_reduce
|
from ceilometer.tests.db import TestConnection, require_map_reduce
|
||||||
|
|
||||||
|
@ -23,8 +23,8 @@ import re
|
|||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
from ceilometer import storage
|
from ceilometer import storage
|
||||||
from ceilometer.storage import migration
|
from ceilometer.storage import migration
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
|
@ -25,8 +25,8 @@ import datetime
|
|||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from ceilometer.collector import meter
|
||||||
from ceilometer import counter
|
from ceilometer import counter
|
||||||
from ceilometer import meter
|
|
||||||
from ceilometer import storage
|
from ceilometer import storage
|
||||||
from ceilometer.openstack.common import cfg
|
from ceilometer.openstack.common import cfg
|
||||||
from ceilometer.openstack.common import timeutils
|
from ceilometer.openstack.common import timeutils
|
||||||
|
Loading…
x
Reference in New Issue
Block a user