{"id":15062616,"url":"https://github.com/openstack/monasca-grafana-datasource","last_synced_at":"2025-04-10T10:08:35.101Z","repository":{"id":57301403,"uuid":"63348309","full_name":"openstack/monasca-grafana-datasource","owner":"openstack","description":"Monasca Grafana Datasource. Mirror of code maintained at opendev.org.","archived":false,"fork":false,"pushed_at":"2021-03-11T12:22:59.000Z","size":56,"stargazers_count":13,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T09:02:43.132Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://opendev.org/openstack/monasca-grafana-datasource","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openstack.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-14T15:30:56.000Z","updated_at":"2023-10-24T15:32:27.000Z","dependencies_parsed_at":"2022-08-24T17:11:45.146Z","dependency_job_id":null,"html_url":"https://github.com/openstack/monasca-grafana-datasource","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fmonasca-grafana-datasource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fmonasca-grafana-datasource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fmonasca-grafana-datasource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fmonasca-grafana-datasource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openstack","download_url":"https://codeload.github.com/openstack/monasca-grafana-datasource/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247959797,"owners_count":21024842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T23:43:38.664Z","updated_at":"2025-04-10T10:08:35.068Z","avatar_url":"https://github.com/openstack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"========================\nTeam and repository tags\n========================\n\n.. image:: https://governance.openstack.org/tc/badges/monasca-grafana-datasource.svg\n    :target: https://governance.openstack.org/tc/reference/tags/index.html\n\n.. Change things from this point on\n\nMonasca Datasource - A datasource for use with the OpenStack Monasca api.\n-------------------------------------------------------------------------\n\nFor more information on Monasca see the `Monasca documentation`_\n\nAuthentication Options\n----------------------\n\nHorizon Session\n~~~~~~~~~~~~~~~\n\nThe `Monasca Horizon plugin`_ offers Horizon integration for Monasca.\nAmong other things this plugin proxies the Monasca metrics API, using\nthe Horizon session for authentication (as opposed to a Keystone token).\nThis proxied API can be used to let this plugin access the Monasca API\nwith the privileges of the user logged in to Horizon.\n\nNote that this is entirely separate from Grafana’s user management.\n\nSetting this up requires the following steps:\n\n1. Install and configure the ``monasca-ui`` Horizon plugin. Specifically\n   you will need to set ``GRAFANA_URL`` to ``/grafana`` and point\n   ``GRAFANA_LINKS`` to your dashboards which can either be JSON\n   dashboards you point to or in-database dashboards. In the former case\n   set the links’ ``raw`` attribute to ``True`` and their ``path``\n   attribute to the dashboard’s path or full URL. In the latter case,\n   set the links’ ``raw`` attribute to ``False`` (or omit it entirely)\n   and set their ``path`` attributes to the database dashboards’ names.\n\n2. Enable ``mod_proxy`` and ``mod_proxy_http`` in Apache:\n\n   ::\n\n      a2enmod proxy proxy_http\n\n3. Configure the VHost hosting your Horizon instance with a proxy path\n   that points at your Grafana instance (the example assumes you are\n   running Horizon on Apache - adapt as required for other web servers):\n\n   ::\n\n      ProxyPass \"/grafana\" \"http://my.grafana.server:3000\"\n      ProxyPassReverse \"/grafana\" \"http://my.grafana.server:3000\"\n\n4. Configure Grafana’s ``[server/root_url]`` setting to point at your\n   dashboard node’s ``/grafana`` path:\n\n   ::\n\n      [server]\n      root_url = %(protocol)s://%(domain)s/grafana\n\n5. Configure the plugin as follows:\n\n   -  Http settings:\n\n      -  Url: ``http://my.dashboard.server/monitoring/proxy``\n         (substitute your dashboard’s actual host name for\n         ``my.dashboard.server`` here)\n      -  Access: direct\n\n   -  Authentication\n\n      -  Auth: Horizon\n\nSteps (2) and (3) are neccessary to ensure both Grafana and Horizon are\non the same Host/Port from the browser’s perspective. Otherwise the\nbrowser’s XSS protection mechanisms will omit the Horizon session cookie\nfrom any requests triggered by the ``monasca-grafana-datasource``\nplugin.\n\nKeystone Authentication\n~~~~~~~~~~~~~~~~~~~~~~~\n\nWhen combined with Grafana Keystone authentication this datasource\nsupports using login credentials to authenticate queries.\n\nKeystone Token\n~~~~~~~~~~~~~~\n\nWithout the Grafana Keystone auth, this datasource can be used by\ninserting a keystone token into the datasource. To get a keystone token\ndownload the python-openstackclient, source credentials and run\n``openstack token issue``.\n\n.. _Team and repository tags: https://governance.openstack.org/tc/reference/tags/index.html\n.. _Monasca documentation: https://wiki.openstack.org/wiki/Monasca\n.. _Monasca Horizon plugin: https://github.com/openstack/monasca-ui\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstack%2Fmonasca-grafana-datasource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenstack%2Fmonasca-grafana-datasource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstack%2Fmonasca-grafana-datasource/lists"}