In some cases, users may want to send periodic notifications for
notification types other than webhooks.
Story: 2006837
Task: 37417
Depends-On: https://review.opendev.org/#/c/694596
Change-Id: Ia2c50e623aa79e06d2d35df4735fb2805fbf40ed
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 server side changes required to scope the
search query by the time window specified on the app.
Change-Id: Ia760c6789ac0063b8a25e52c9e0c3cc3b790ad2d
Story: 2005204
Task: 35790
* Brings alarms count endpoint to parity with the alarms list endpoint
* Brings alarms count endpoint to parity with the alarms counnt endpoint
in the depricated java api
* Allow metric_dimensions filter to filter on multiple dimension values:
metric_dimensions=dns|compute|nova
Change-Id: I46ca0e6a6da46cb850af44768de237e41a43484a
Story: 2005311
Task: 30216
Maximum page size is hard-coded. This change updates documentation to
reflect the implemented behavior.
Change-Id: I21e5b1409dbe737bce3302c3fd0c148c1775ef55
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
The spec for Get Alarm Count was appearing literally as:
##Get Alarm Counts Get the number of alarms that match the criteria.
###GET /v2.0/alarms/count
etc.
It is now formatted so that the headings are rendered like corresponding entries.
Change-Id: Ic8ddc1fc3f56c00f22e8c0132a49be2cc7cd2fc1
Closes-Bug: #1696393
Provide new healtcheck endpoint to monasca-api.
Add simple check for HEAD and complex check for GET.
Complex check contains information about dependent
services like:
- kafka
- relational database (mariadb, postgresql)
- timeseries database (influxdb, cassandra)
Story: 2000974
Task: 4125
Change-Id: I863071194041a512b144262bbffce5024b97086b
Added documentation for last function
Added python parsing for last function
Added tempest tests for last_value function
Change-Id: I4c35321e23e13596a2ef02e7e57306d5685c81ec
Depends-On: Ib5123ed035018757a50d9ebeb7335fbca48054f2
Implements: Blueprint last-value
This endpoint will return all the dimension names for a given metric
name.
Added dimension-names for influx in python api and java api
Added dimension-names for vertica in java api
Depends-On: Id981dafd00778a6d4a376b9ceab011231e94c0c6
Change-Id: I0192ccb9276ea94103a477bd2ad7d10f21e64d31
Implements: blueprint dimensions-api
Since returned metric names are distinct, we can remove the id from
each element. Also change the returned metric name into alphabetical
order.
Change-Id: Id981dafd00778a6d4a376b9ceab011231e94c0c6
This review
1) Removes the hard coded notification types
2) Adds a new Rest API to get the notification types
Partially-implements: blueprint notification-engine-plugin
Change-Id: Ie043533974f9dcf60c77093c5d6df5eced99e68b
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
Update docs with new command
Move validation of the period field to the setter for
java api which is called by jackson as it constructs the
command objects.
Add tempest tests for patching
Change-Id: I7f31aa059601c0390c42b0f5bdf4091706f6660d
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
I'm planning to change pagination style to Horizon standard in monasca-ui.
Horizon standard pagination style will need fewer code than current
implementation and will be easier to maintain.
But this change will need sort parameter to api. Alarm Definitions and
Alarms have already sort_by parameter. So I added sort_by parameter
to Notifications.
Change-Id: Ic7dd98c027476ad19174f52ddd2d4ce6523c50cc
Add validation for value meta in python api
Add unit test and tempest tests on value meta validation
Change the documentation
Change-Id: I4633785211e83d22f016ecfbdcbca3896043cf00
Allow filtering for existence of dimension value, ex. all
metrics that have a service dimension, regardless of value
Change-Id: I3ffcae317e4d0bd03e8a02154858eea4afd25425
This is a very useful feature for many of the dashboards,
when not using the merge flag. These dashboards begin
with a metric-list, and then do a statistics call for each
unique set of dimensions returned. For many dashboards,
metrics are returned where no data is currently being
collected (deleted VMs, etc), causing many unnecessary queries
for no data -- not to mention an ugly dashboard with tons
of noise.
This enhancement will help both the current grafana implementation
as well as our 2.0 port. Note that this patch supports the java
implementations for vertica and influxdb, as well as the python
implementation of the api for influxdb (vertica not currently
supported in python).
Change-Id: I683f2a53aaf2d2ad8005dd1542883636086aad4a
Get alarms returns alarm_definition, not alarm_deifinition_id
in response body.
Post notification method returns 201 response code, not 200.
Rerun doctoc.
Change-Id: I4117bad6c3032e3ef3e6f0391e3a716fb8304a38