e851773367
This patch is a sample oslo.metrics code to gather oslo.messaging's metrics and export the metrics to prometheus. Some parts of this code doesn't follow OpenStack standards style, and this lacks test codes. Please use this patch as PoC for oslo.metrics. Co-Authored-By: Yuki Nishiwaki <yuki.nishiwaki@linecorp.com> Change-Id: I9434d11466e7626fdbebd1340a8bb3d664518bd1
21 lines
666 B
Python
21 lines
666 B
Python
# Copyright (c) 2020 LINE Corp.
|
|
#
|
|
# 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.
|
|
|
|
import setuptools
|
|
|
|
setuptools.setup(
|
|
setup_requires=['pbr>=2.0.0'],
|
|
pbr=True)
|