Commit Graph

48 Commits

Author SHA1 Message Date
Adrian Czarnecki
8d07328c91 Replace @memoized_with_* with @memoized
@memoized_with_* was removed in [1]

[1] 123269dce7

Story: 2004175
Task: 27661
Change-Id: I39ff336b84448b231412a06e13aa876847453882
2018-10-25 12:53:17 +02:00
Martin Chacon Piza
c5f514815c Adding support to use grafana templating
Change-Id: I63302965cabb1deb0a1a74ca62f3e56bd04309b7
Story: 2002175
Task: 20041
2018-06-14 10:33:44 +02:00
Martin Chacon Piza
ba314e1368 Retrieve registers sorted by name
Change-Id: Ic4d08df18a96231f3132a89f9a1f1fb578a28994
Story: 2002112
Task: 19791
2018-05-28 11:16:07 +02:00
Amir Mofakhar
e609bd46b0 Update pep8 checks
* set the maximum line length to 100
* cleaned up the codes for pep8
* removed pep8 check ignores

Change-Id: I5d3e2f13117638b0a8af051b9faa64ce1a2dd04e
Signed-off-by: Amir Mofakhar <amofakhar@op5.com>
2018-04-18 16:09:26 +02:00
gugl
c347cd2bf4 Fixed the problem for SSL certificate access failure
When specify OPENSTACK_SSL_NO_VERIFY = False, monascaclient
throws an exception when access alarms, alarm definitions
and notifictions.  Changed parameter cert to verify so it
takes boolean or passes the certificate file.

Also added unit tests for api.client

Story: 2001601
Task: 6555

Change-Id: Ib068bdc3fae1ebdb2bda8d7b6c24a725cef5b24b
Depends-On: https://review.openstack.org/550130
2018-03-21 17:44:25 -07:00
Nguyen Hung Phuong
5c71236b14 Fix nit found in monasca-ui
In some part in the code we use \ for multiline formatting. In the Openstack
style guidelines they recommend to use ().
[1]: "It is preferred to wrap long lines in parentheses and not a backslash
for line continuation.".
[1] https://docs.openstack.org/hacking/latest/user/hacking.html

Change-Id: I0c34cd9343e07aaec3bf543e9a1828db55d07246
2018-01-31 10:19:09 +07:00
Tomasz Trębski
9dc87decbf Integrate with newer client
In overall following change adjustes monasca-ui code to the
shape of the python-monascaclient (integrated with osc-lib,
see Depends-On for details).

Extra:
- added profiling capabilities
- added caching of client instances
- installing master python-monascaclient for test purposes
- supporting installing python-monascaclient if specified via Depends-On

Depends-On: I1712a24739438e2d8331a495f18f357749a633c5
Change-Id: I01d0f3d9814376f9358feb23494e1ca5231aedac
2017-07-13 23:05:55 +00:00
Shinya Kawabata
dee770ec47 Add support for notification plugin
This patch enable to select new notification types.
But translation notification types will be unsupported.
Note this translation constraints as bug to below launchpad,
to develop in future.

https://bugs.launchpad.net/monasca/+bug/1657673

Change-Id: I47dd187d2efc71a53d64307821b0420a00935bc0
2017-01-19 17:25:38 +09:00
howardlee
7a6fca2f99 Remove vim header
[H106] Don't put vim configuration in source files (off by default).
http://docs.openstack.org/developer/hacking/#general

Change-Id: I3d3d46a8a2d7547288d0611e5160d684a69ef7b1
2016-11-21 07:46:48 +00:00
Brad Klein
7a90587fdc Fix alarm list if dimensions contain spaces
Alarms for dimensions that contain spaces (like hostnames)
aren't displayed if we simply remove spaces from the dimension
values. URLs are already encoded and spaces get translated
properly in get_relative_url() in views.py.

Change-Id: I576c9ed7fb62acfb2c7cb8f84360438d82dafbaf
Closes-Bug: 1492003
2016-09-22 12:24:52 -06:00
Shinya Kawabata
2ef9661ffd Allow filter alarms with query including '/'
For example: mount_point=/
Django can't handle encoded URI correctly,
so this implementation uses base64url.

And allow filter alarms with dimensions having only key.

Change-Id: Ie23403278d4791c702abffd855cf0682510ac153
2016-08-04 15:50:29 +09:00
Tomasz Trębski
8e5a0e1a67 Multi-step alarm definition form
Following commit provides multi-step
wizard to create new alarm definitions
along with several improvements:

* verifying uniqueness of alarm definition's
name right in the first step of the wizard
* compact expression widget
* setting notifications as optional step

Note:
Following refactor is required for the compound
expressions (a.k.a. multiple) that will require
more space in UI than it was available in
the single form.

Needed-By: I1b4bd51e8887bc44dd3e2ffab4900d29fc77b77e
Change-Id: I30d9b78a407554ce5edea8fda7421428adc1de40
2016-07-06 12:38:26 +02:00
Maciej Maciaszek
8861bede7e Simple Kibana integration
* add simple proxy for kibana requests
* organize settings in `local_settings.py`
* narrow down coverage to monitoring package
* fix requirements with stable versions
* upgrade Horizon

Change-Id: I618485e9b6fa11fe423c3b1b3ad5f8c02cc163b4
2015-09-30 13:49:13 +09:00
SamKirsch10
1d82ccb07f added ability to filter all alarms with parameters in modal
Change-Id: If19885a32ac3d085d1ddfe0cdc6d4609817ab6ed
2015-07-15 13:57:48 -06:00
SamKirsch10
8ee4a178ad fixed overview service/hostname bug
Change-Id: I810bc543c6931a0a7fbc835adc4b88d09f299963
2015-07-10 17:08:10 -06:00
Angelo Mendonca
d527df446c Added alarm definition pagination and notification
Change-Id: I1b8f635837662f70a0eb7a140a71fb070a424693
2015-07-09 23:25:00 -04:00
bklei
ca3607231a Provide default limit and offset for alarm_list
Also display error instead of swallowing it

Change-Id: If3f569920ea9bfaa12b32af368e83a93f61a2ec9
Closes-Bug: #1472372
2015-07-07 13:59:12 -06:00
Angelo Mendonca
5646a3df2a Added the SQL pagination for Alarms with offset and limit
Change-Id: I76376f68a4c3dca7cb2cb2d74862a985d884f3dc
2015-05-11 15:02:59 -04:00
Angelo Mendonca
c103d52443 Added pagination to the alarms table view.
Change-Id: I63c4392b5fef9759ca62a42896eff57967703d32
2015-05-08 14:37:26 -04:00
eric
53c960843d correct tokens present in url requests
this change removes the CORS aspects for graphana reports
and also the tokens that were used / needed, in favor or
proxying the data requests through horizon

Change-Id: Ie80e19ece3931428550f14250fcaeb4e88850662
Closes-Bug: #1436087
2015-03-24 17:02:00 -06:00
Rob Raymond
97b6fea337 Handle api returning dict rather than list
Change-Id: I8caa824ac2ee3fd1bc2e504bc5e115203071c11f
2015-03-10 14:51:13 -06:00
Rob Raymond
52d883f6a6 Pass in monasca-api endpoint to grafana
Change-Id: Ib87d0176054d9a563ddbf8e36b4b6660326812ca
2014-11-11 13:08:34 -07:00
Rob Raymond
2327939bd9 Allow service type to be customized
Change-Id: Ia442ec02b8fdaa4110661e7592452544cff1fb94
2014-10-30 10:57:41 -06:00
Rob Raymond
32023a0d36 Changes to work with alarm definition
Change-Id: I2c6a5c2a3b3595a74bef0c4bef7d621e0319d477
2014-09-30 17:08:07 -06:00
Rob Raymond
8e0562464b Remove trailing / from endpoint
Change-Id: I9674daf7c504befc6475aa9cf4b9836620de3709
2014-08-27 08:01:54 -06:00
Rob Raymond
3f4e1f827a Find monasca api endpoint from Keystone's service catalog
Change-Id: Ibab1bf2aff86a3daaf5113e72087799eafcbbe0f
2014-08-26 09:52:30 -06:00
cindy oneill
13824be8e1 using python-monascaclient instead of old python-monclient
Change-Id: Ica2ca038cde5020cf64e84bce049b13b0a042633
2014-07-25 11:33:50 -06:00
Rob Raymond
09622003fa Remove mocked up show metrics action
Change-Id: I7cbce42cc0de989178a3958813a5ac7099f6de2f
Fixes-Bug: #1348293
2014-07-24 11:46:12 -06:00
Rob Raymond
48e19d9bbc Changes to work with api keystone. Changes for tests 2014-06-30 11:04:59 -06:00
Rob Raymond
1afb03ff0f Resolve all pep8 issues 2014-06-27 17:06:56 -06:00
Rob Raymond
125ee4b768 Enable unit and pep8 tests 2014-06-27 16:16:29 -06:00
cindy oneill
3cb953c1b0 Added Notification update 2014-06-11 13:17:07 -06:00
cindy oneill
8213375e3c Notification list, Notification delete, and Notification create action and button 2014-06-09 16:15:34 -06:00
cindy oneill
89c26d0606 Alarms History added 2014-06-09 10:53:59 -06:00
Rob Raymond
21fdfe0a78 Clean up notifications to remove old code 2014-06-03 16:17:50 -06:00
Rob Raymond
2c08e1b6fa Add Clear Alarm action to alarms table 2014-06-03 15:29:46 -06:00
Rob Raymond
d42698d919 Make project_id configurable in settings 2014-05-29 15:28:30 -06:00
Rob Raymond
775ba50047 Fix all pep8 errors except demo code in views. 2014-05-28 12:40:56 -06:00
Rob Raymond
024ff2ed60 Add expression field. Make endpoint configurable 2014-05-28 11:17:37 -06:00
Rob Raymond
778cb86b08 Hard code tenant id. Place framework for list meters. 2014-05-27 11:16:05 -06:00
cindy oneill
7e0c3edfdf Changes to support AlarmServiceView 2014-05-22 16:29:09 -06:00
Rob Raymond
83f3f8862b Add alarm edit 2014-05-21 16:22:50 -06:00
Rob Raymond
e1a01ecf82 Migrate API to new signtures. Add Alarm delete. 2014-05-20 14:04:00 -06:00
Rob Raymond
cd918ec842 Add Create Notification button to table 2014-05-09 16:18:06 -06:00
Rob Raymond
2ae5ed1626 Switch to overcloud dashboard 2014-05-08 13:18:13 -06:00
Rob Raymond
3301b8faf3 Progress on alarms (details and create) 2014-05-08 12:43:28 -06:00
Rob Raymond
0579bac6b4 Add forms for alarms and partially for notifications 2014-04-30 15:50:07 -06:00
Rob Raymond
6f6e4ead54 Changes for demo 2014-04-29 12:27:34 -06:00