Commit Graph

22 Commits

Author SHA1 Message Date
Doug Hellmann 30658b8663 remove AUTHORS file from git
The AUTHORS file is generated automatically by pbr as part of building a
package, so it should not be checked in to git.

Change-Id: I2fe004962a30fbd7f49afdb8097d2c5cb9d4dfe7
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-07-03 12:31:03 -04:00
Witold Bedyk a449b1355e Fix lower-constraints job
* bump lower-constraint for cassandra-driver version to 3.3.0
* add cassandra-driver and influxdb to extras
* execute lower-constraints job with python 2.7
* move common commands to [testenv]
* fix lower-constraint for sphinx
* add funcsigs to lower-constraints.txt

Depends-On: https://review.openstack.org/555402
Change-Id: Idc2351e597ce933fa5c83a6c872ae241ce4b0220
2018-04-09 14:15:47 +02:00
James Gu 4a6015ad65 Add password authentification in monasca-api with Cassandra
Add the support to configure user and password in monasca api and enforce
the authetification when connecting to cassandra db when the user and
password is set.

Change-Id: I9e6689e0e8e6e97d5cff3a59aecb53483ec320bd
story: 2001471
task: 6191
2018-01-29 15:38:16 -08:00
James Gu ba43f07726 Add cassandra support
Support Cassandra db installation and Cassandra related
configurations for Monasca api and persister services
in devstack. Add Monasca rest API Cassandra plugin for
retrieving metric, dimension, measurement, statistics
and alarms.

Change-Id: Ie60d668692e1f25f555dda2355f4e513d582736c
story: 2001231
task: 5759
2017-12-15 19:11:00 +00:00
Amir Mofakhar 9ed87db4b4 fixed idle sql sessions at startup
Change-Id: I4c3bd9047684adb2b7e455754240ae7e475071cb
Story: 2001264
Task: 5798
2017-11-02 15:00:04 +01:00
Tomasz Trębski 5d27af4079 Config-generator for monasca-api
Change migrates the monasca-api to use oslo-config-generator in
order to always build newest configuration file. That removes
the need of maintaning the file along with changes to oslo configuration.
The example of the file is also included in the documentation.

Also:
* ported case for launching api under WSGI and allowing the argument
  parsing of oslo to take place

Story: 2000970
Task: 4865

Story: 2000964
Task: 4106

Change-Id: I57547b0e2122e40f58db5f949773900b76214526
2017-08-28 06:58:57 +00:00
Tomasz Trębski 332634f74f Prepare foundation for doc migration
Commit aims at providing the foundation to launch
doc migration for monasca-api:

* api-ref
* releasenotes
* doc

Extra:
* fixed documentation errors to enable codebase documentation

Story: 2001058
Task: 4768

Change-Id: Ic7af65a154dba7e52ffb90d0e6dbf0ae87d5d699
2017-07-31 10:43:49 +00:00
Roland Hochmuth 88cbf6b44b Add support for InfluxDB 0.11.0 to 1.1.0 in the Python API
In InfluxDB version 0.11.0 the result set for SHOW SERIES changed. See

https://github.com/influxdata/influxdb/blob/master/CHANGELOG.md#v0110-2016-03-22

Modifed the code to be compatible with either the old or new result
set.

In InfluxDB version 1.0.0 the config file changed. See

https://github.com/influxdata/influxdb/blob/master/CHANGELOG.md#v100-2016-09-08

Modified the config file deployed by DevStack to be compatible with either the
old or new config file.

In some other InfluxDB release several database ops, such as CREATE
DATABASE, were modified from http GET to POST. Modified how databases
are created in the DevStack plugin.sh.

Change-Id: I33188f4e64150d2cb24c0a06979c06f03c803da4
2016-12-08 06:54:54 -07:00
Brad Klein 5f37594fe7 Add monasca api read-only user role
This will allow dashboard/operator users to see but not add data.

Change-Id: I16a2329356cc9e7d03d2f3e1394127006d6e487e
Implements: blueprint read-only-api-user
2016-08-04 10:30:48 -06:00
Brad Klein a317508031 Add metrics/dimensions/names/values api for grafana templating optimization
This endpoint will return all the dimension values for a given
dimension name and optional metric name (for the scoped project).
This will allow grafana templating to use this (much faster call)
instead of making a full metric-list call and then parsing out
dimensions.

Change-Id: Ia1e2487fe0f96dee03d97d865c58a3728b43f448
Implements: blueprint dimensions-api
2016-07-20 10:17:25 -06:00
Tomasz Trębski 0cce983d95 (Non)deterministic support for alarms
The deterministic alarm's main trait
is preventing from transition to UNDETERMINTED state.
That allows effectively create alarms for metrics
which behaviour is similar to events (i.e. generated
upon critical situation in the system). By default (non-deterministic)
alarms created for those metrics would stay in UNDETERMINED stay
for most of the time.

Implements: blueprint alarmsonlogs
Change-Id: I506fcd0b9861e902a2bfcfa768d402c568b85cea
2016-06-08 09:24:21 +02:00
Ryan Brandt ae05d04bff Add support for multiple metrics in measurements and statistics resources
Precursor to work on a group_by option for measurements and statistics queries

Change-Id: I6569923687511612c1d9ec318d2c5fe25535f973
2016-05-11 13:16:57 -06:00
oiskam1 0462177fb7 ORM (sqlalchemy) implementation for python
It is sqlalchemy part from proposition of oiskam for python.

Change-Id: I699d87c1cd43fe0ab52aa8ca7044f4d90c8a1ba2
2016-02-27 13:15:53 +01:00
Ryan Brandt 9dcc8acdb1 Check for complete string in sort_by
When replacing friendly names with column names,
match and replace the complete column name
Tempest is broken, so disabling that here as well

Change-Id: I3f3e6c43f65d8bf4adaea87a5e2fae7291691572
2016-02-26 16:54:33 -07:00
Ryan Brandt f8536900c4 Only do base monitoring by default in devstack
There are some issues with properly configuring
the rabbitmq check in devstack. Use system only
to get the gate running again, while we address
the detection plugin

Change-Id: I89858cf3259e99504f34f52926354314b1d95a7d
2016-02-10 20:24:34 -07:00
Ryan Brandt 370d34f65f Update API to falcon 0.3
Mostly compatible, but required a different approach for the
versions resource. Should be able to revert when updating to
falcon 0.4

Change-Id: I41a5073748c9a8a3f5b92afdb416bb0294311911
2016-01-22 15:00:57 -07:00
Ryan Brandt dfdcc2fe5d Fix permissions on java log folders
Change-Id: If42eb854271f0478f4e6e14e860671d5a043d605
2016-01-12 15:25:54 -07:00
Ghanshyam 0a9231d55e Fix Monasca Tempest tests to use correct cred
Tempest provides three different credential providers for tests:
- dynamic credentials, which is what is used in all gate jobs
- preprovisioned credentials, which is used in experimental and
  periodic jobs, not yet in the gate because of bug 1524717
- legacy credentials, which relies on deprecated configuration
  options, and which is itself deprecated.

More details-
http://docs.openstack.org/developer/tempest/configuration.html#credential-provider-mechanisms

Monasca used legacy credentials which is now failing on gate
job as devstack does not set those cred options in conf.
 - I65b56ff681d6c27094380693c953fbc3664eceb0

This commit fix gate failure to use dynamic cred.

Comment out tests that are now failing.
Tests are failing because they are now being run in parallel.
The change to dynamic credentials caused the tests to be run in parallel.

Change-Id: I935154f152a834929a18b5a4db8407d717939dea
2016-01-05 16:59:26 -07:00
Ryan Brandt fbc0f6a245 Change timstamp matching to always use 3 digits
The python api now always returns 3 digits in the timestamp

Change-Id: Ic1e36c02408f858a92b0762d5131978e4b5e5b2a
2015-12-04 09:38:34 -07:00
Ryan Brandt 4fc54d211c Fix timestamp creation in helpers
This was causing the alarm state history tests to fail occasionally

Change-Id: Ide249ada0fd31de79bc0517164471822e21b2457
2015-12-02 13:26:30 -07:00
Ryan Brandt e3adcc8e66 Fixed alarm list errors
Handle query parameters as string or list
Fixed listing alarms with offset

Change-Id: I007160aee6112d62708bbe461e3efe55349ecd25
2015-11-11 15:53:04 -07:00
kaiyan-sheng 9387b45b95 Removed wait time after creating metrics
Change-Id: Iece3c7d345baf74926f13743ccb470ad224e3f97
2015-11-09 16:15:02 -07:00