Team and repository tags
========================
.. image:: https://governance.openstack.org/tc/badges/monasca-api.svg
:target: https://governance.openstack.org/tc/reference/tags/index.html
.. Change things from this point on
Overview
========
``monasca-api`` is a RESTful API server that is designed with a `layered
architecture`_.
Documentation
-------------
The full API Specification can be found in `docs/monasca-api-spec.md`_
Python Monasca API Implementation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To install the python api implementation, git clone the source and run
the following command:
::
$ sudo python setup.py install
If it installs successfully, you will need to make changes to the
following two files to reflect your system settings, especially where
kafka server is located:
::
/etc/monasca/api-config.ini
/etc/monasca/monasca-api.conf
/etc/monasca/api-logging.conf
Once the configuration files are modified to match your environment, you
can start up the server by following the following instructions.
To start the server, run the following command:
::
Running the server in foreground mode
$ gunicorn -k eventlet --worker-connections=2000 --backlog=1000 --paste /etc/monasca/api-config.ini
Running the server as daemons
$ gunicorn -k eventlet --worker-connections=2000 --backlog=1000 --paste /etc/monasca/api-config.ini -D
To check if the code follows python coding style, run the following
command from the root directory of this project
::
$ tox -e pep8
To run all the unit test cases, run the following command from the root
directory of this project
::
$ tox -e py36
Start the Server - for Apache
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To start the server using Apache: create a modwsgi file, create a
modwsgi configuration file, and enable the wsgi module in Apache.
The modwsgi configuration file may look something like this, and the
site will need to be enabled:
.. code:: apache
Listen 8070
<VirtualHost *:8070>
WSGIDaemonProcess monasca-api processes=4 threads=1 socket-timeout=120 user=mon-api group=monasca python-path=/usr/local/lib/python2.7/site-packages
WSGIProcessGroup monasca-api
WSGIApplicationGroup monasca-api
WSGIScriptAlias / /usr/local/lib/python2.7/site-packages/monasca_api/api/wsgi/monasca_api.py
WSGIPassAuthorization On
LogLevel info
ErrorLog /var/log/monasca-api/wsgi.log
CustomLog /var/log/monasca-api/wsgi-access.log combined
<Directory /usr/local/lib/python2.7/site-packages/monasca_api>
Require all granted
</Directory>
SetEnv no-gzip 1
</VirtualHost>
The wsgi file may look something like this:
.. code:: py
from monasca_api.api import server
application = server.get_wsgi_app(config_base_path='/etc/monasca')
Java Implementation
~~~~~~~~~~~~~~~~~~~
Details on usage can be found `here`_
WARNING: The Java implementation of Monasca API is DEPRECATED and will
be removed in future release.
License
=======
Copyright (c) 2014 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.
.. _layered architecture: https://en.wikipedia.org/wiki/Multilayered_architecture
.. _docs/monasca-api-spec.md: docs/monasca-api-spec.md
.. _here: /docs/java.md
Raw data
{
"_id": null,
"home_page": "https://docs.openstack.org/monasca-api/latest/",
"name": "monasca-api",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "",
"author": "OpenStack",
"author_email": "openstack-discuss@lists.openstack.org",
"download_url": "https://files.pythonhosted.org/packages/91/69/1c3f5824e1d4560c6dcc06c8b1dc207cf50b6f291890e5839f71285435e4/monasca-api-10.0.0.tar.gz",
"platform": null,
"description": "Team and repository tags\n========================\n\n.. image:: https://governance.openstack.org/tc/badges/monasca-api.svg\n :target: https://governance.openstack.org/tc/reference/tags/index.html\n\n.. Change things from this point on\n\nOverview\n========\n\n``monasca-api`` is a RESTful API server that is designed with a `layered\narchitecture`_.\n\nDocumentation\n-------------\n\nThe full API Specification can be found in `docs/monasca-api-spec.md`_\n\nPython Monasca API Implementation\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo install the python api implementation, git clone the source and run\nthe following command:\n\n::\n\n $ sudo python setup.py install\n\nIf it installs successfully, you will need to make changes to the\nfollowing two files to reflect your system settings, especially where\nkafka server is located:\n\n::\n\n /etc/monasca/api-config.ini\n /etc/monasca/monasca-api.conf\n /etc/monasca/api-logging.conf\n\nOnce the configuration files are modified to match your environment, you\ncan start up the server by following the following instructions.\n\nTo start the server, run the following command:\n\n::\n\n Running the server in foreground mode\n $ gunicorn -k eventlet --worker-connections=2000 --backlog=1000 --paste /etc/monasca/api-config.ini\n\n Running the server as daemons\n $ gunicorn -k eventlet --worker-connections=2000 --backlog=1000 --paste /etc/monasca/api-config.ini -D\n\nTo check if the code follows python coding style, run the following\ncommand from the root directory of this project\n\n::\n\n $ tox -e pep8\n\nTo run all the unit test cases, run the following command from the root\ndirectory of this project\n\n::\n\n $ tox -e py36\n\nStart the Server - for Apache\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo start the server using Apache: create a modwsgi file, create a\nmodwsgi configuration file, and enable the wsgi module in Apache.\n\nThe modwsgi configuration file may look something like this, and the\nsite will need to be enabled:\n\n.. code:: apache\n\n Listen 8070\n\n <VirtualHost *:8070>\n\n WSGIDaemonProcess monasca-api processes=4 threads=1 socket-timeout=120 user=mon-api group=monasca python-path=/usr/local/lib/python2.7/site-packages\n WSGIProcessGroup monasca-api\n WSGIApplicationGroup monasca-api\n WSGIScriptAlias / /usr/local/lib/python2.7/site-packages/monasca_api/api/wsgi/monasca_api.py\n\n WSGIPassAuthorization On\n\n LogLevel info\n ErrorLog /var/log/monasca-api/wsgi.log\n CustomLog /var/log/monasca-api/wsgi-access.log combined\n\n <Directory /usr/local/lib/python2.7/site-packages/monasca_api>\n Require all granted\n </Directory>\n\n SetEnv no-gzip 1\n\n </VirtualHost>\n\nThe wsgi file may look something like this:\n\n.. code:: py\n\n\n from monasca_api.api import server\n\n application = server.get_wsgi_app(config_base_path='/etc/monasca')\n\nJava Implementation\n~~~~~~~~~~~~~~~~~~~\n\nDetails on usage can be found `here`_\n\nWARNING: The Java implementation of Monasca API is DEPRECATED and will\nbe removed in future release.\n\nLicense\n=======\n\nCopyright (c) 2014 Hewlett-Packard Development Company, L.P.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may\nnot use this file except in compliance with the License. You may obtain\na copy of the License at\n\n::\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n.. _layered architecture: https://en.wikipedia.org/wiki/Multilayered_architecture\n.. _docs/monasca-api-spec.md: docs/monasca-api-spec.md\n.. _here: /docs/java.md\n\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "OpenStack Monitoring as a Service",
"version": "10.0.0",
"project_urls": {
"Homepage": "https://docs.openstack.org/monasca-api/latest/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "773cd09ab2b432601fe2dc0a85e3f02dc60aa4fa40134100dfdbce10b97cb499",
"md5": "d9c066a526623543a3fbfc9977f43f14",
"sha256": "5da836d7d30b18e74b56a6321840c5121811dae6e8f3066c57e2520694151131"
},
"downloads": -1,
"filename": "monasca_api-10.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d9c066a526623543a3fbfc9977f43f14",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 246251,
"upload_time": "2023-03-22T12:23:23",
"upload_time_iso_8601": "2023-03-22T12:23:23.392400Z",
"url": "https://files.pythonhosted.org/packages/77/3c/d09ab2b432601fe2dc0a85e3f02dc60aa4fa40134100dfdbce10b97cb499/monasca_api-10.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "91691c3f5824e1d4560c6dcc06c8b1dc207cf50b6f291890e5839f71285435e4",
"md5": "d6321fb5802bcc4b13176c53b5a89a26",
"sha256": "2d6fee466ae85b9ea284fdcdeb30dbd482e3f1fdb7403ae7034ef9a7e44f2053"
},
"downloads": -1,
"filename": "monasca-api-10.0.0.tar.gz",
"has_sig": false,
"md5_digest": "d6321fb5802bcc4b13176c53b5a89a26",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 548361,
"upload_time": "2023-03-22T12:23:25",
"upload_time_iso_8601": "2023-03-22T12:23:25.455275Z",
"url": "https://files.pythonhosted.org/packages/91/69/1c3f5824e1d4560c6dcc06c8b1dc207cf50b6f291890e5839f71285435e4/monasca-api-10.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-22 12:23:25",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "monasca-api"
}