Add Libra statistics worker framework.
The statistics worker (libra_statsd) is designed to run on a server and act as a collection point for statistics from Libra worker processs. The workers will send their statistics to libra_statsd via a common Gearman function. These stats will be stored in a database for consumption by other processes. Change-Id: Ia9e7400275459fc43dce580146ca6b28cf367b3f
This commit is contained in:
parent
07a3ae8961
commit
aa1f8cf8b7
13
libra/statsd/__init__.py
Normal file
13
libra/statsd/__init__.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Copyright 2012 Hewlett-Packard Development Company, L.P.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
17
libra/statsd/main.py
Normal file
17
libra/statsd/main.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Copyright 2012 Hewlett-Packard Development Company, L.P.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
return 0
|
1
setup.py
1
setup.py
@ -77,6 +77,7 @@ setuptools.setup(
|
|||||||
'libra_worker = libra.worker.main:main',
|
'libra_worker = libra.worker.main:main',
|
||||||
'libra_pool_mgm = libra.mgm.mgm:main',
|
'libra_pool_mgm = libra.mgm.mgm:main',
|
||||||
'libra_client = libra.client.client:main',
|
'libra_client = libra.client.client:main',
|
||||||
|
'libra_statsd = libra.statsd.main:main',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
cmdclass=ci_cmdclass,
|
cmdclass=ci_cmdclass,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user