Commit Graph

11 Commits

Author SHA1 Message Date
Adrian Czarnecki ab821ad180 Adding support for Grafana 7.x
Rename kbn.interval_to_seconds to kbn.intervalToSeconds
function for kbn.interval_to_seconds was renamed in Grafana 7.x to kbn.intervalToSeconds

Change-Id: I0e81f102534b30e0dbba2d4e5ed137611ed53e90
2021-03-09 15:54:11 +01:00
Bharat Kunwar e9410a50ba Support time range to query dimension names/values
At present, dimensions are not scoped by time window, which makes
dimension related queries to large databases timeout because it searches
all of time instead of a time window specified on the grafana app.

This commit implements the client side changes to address issue by
scoping the search to time range specified on the app. It also bumps up
the plugin version to 1.3.0 since it is a minor backward compatible API
change.

Depends-On: https://review.opendev.org/#/c/670318
Change-Id: I13614595707697552119926273f06967b8d49b1d
Story: 2006204
Task: 35789
2019-07-25 12:31:21 +01:00
Johannes Grassler 44e813f027 Revert "Revert "Add support for monasca-ui metrics API proxy""
This reverts commit 5eba5cf392
and thus restores the original "Add support for monasca-ui
metrics API proxy" patch
(bb5178406c). It is best to fix
this problem in Keystone patched Grafana:

https://github.com/monasca/grafana/pull/1

Change-Id: Ib1f79cfe2137890f0b984543591ff86f476b3385
2018-01-16 13:50:33 +01:00
Witold Bedyk 5eba5cf392 Revert "Add support for monasca-ui metrics API proxy"
This change breaks the devstack installation. The Monasca datasource
cannot connect with Monasca API. I'm reverting until fixed.

t=2017-12-21T15:27:04+0000 lvl=info msg="Proxying call to [http://192.168.10.6:8070/v2.0/metrics/names]"
t=2017-12-21T15:27:04+0000 lvl=info msg="Request Completed" logger=context userId=2 orgId=2 uname=mini-mon method=GET path=/v2.0/metrics/names status=401 remote_addr=192.168.10.1 time_ms=3ns size=114

This reverts commit bb5178406c.

Change-Id: Ie544c50fa817dbce0865c8885b33312be6d37ccf
2017-12-22 09:18:08 +01:00
Johannes Grassler bb5178406c Add support for monasca-ui metrics API proxy
This commit adds support for the Monasca API proxy provided by
the monasca-ui Horizon plugin. This Horizon plugin combined
with direct access in the Monasca data source allows using a
user's Horizon session for authenticating and authorizing
access to the Monasca API.

Change-Id: I98bd8ff7bcc55dcd911e87037b64840035542155
Story: 2001305
Task: 5856
2017-12-05 11:02:22 +01:00
Ryan Bak 7f08241c49 Update datasource for group_by api changes
Change-Id: I1339c11d5b7bc4c231f6668004077ac8c27e3db2
2016-11-07 13:18:36 -07:00
Ryan Bak bc56847bc9 Add annotation support for monasca plugin
Includes cleanup of datasource.js
Also removes directives.js as it is no longer used

Change-Id: I032c937a1360f9fe75e6ad0a762ceee46256f8c6
2016-10-19 10:57:44 -06:00
Ryan Bak 1381a694b7 Fix templated query expansion
The regex method of doing replace all doesn't work when the string
uses reserved characters.

Change-Id: Ib484b8bc0ab159a12e5b80303f9d7f6084169c94
2016-10-10 11:35:02 -06:00
Ryan Bak 8423bf714e Updates for new dimensions endpoints
Change-Id: Iaf9ddcdb24846a88a925f9a2649736f3d72a7e22
2016-10-06 15:02:40 -06:00
Ryan Bak 19a5c26744 Switch templating to use dimension values endpoint
Change-Id: Iebd7fd20a371a9857c412aee21ba4e8e5780221a
2016-07-28 14:09:37 +00:00
Ryan Bak eb7b0c6c89 Move monasca datasource to new repo
The previous repo was
https://github.com/twc-openstack/grafana-plugins

Change-Id: I07ce789fb7455a8969fa9c6e8bcc78a09de1c0b3
2016-07-27 17:21:19 +00:00