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:
David Shrewsbury 2012-11-20 10:48:31 -05:00
parent 07a3ae8961
commit aa1f8cf8b7
3 changed files with 31 additions and 0 deletions

13
libra/statsd/__init__.py Normal file
View 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
View 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

View File

@ -77,6 +77,7 @@ setuptools.setup(
'libra_worker = libra.worker.main:main',
'libra_pool_mgm = libra.mgm.mgm:main',
'libra_client = libra.client.client:main',
'libra_statsd = libra.statsd.main:main',
]
},
cmdclass=ci_cmdclass,