monasca_api.healthcheck.metrics_db_check has two healthcheck methods for
InfluxDB and Cassandra. They should be in each metrics_repository.
Change-Id: I6c9cc637eba6c3096b5319979434cfd9f0b78a9a
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
The healthcheck code did an import of the cassandra driver even
if the metrics database is configured to be influx. The cassandra
driver is always installed on devstack but may not be in
containers where space is more of a premium.
Change the code to use oslo_utils.importutils to try the import
of the cassandra driver. This allows it to work correctly if no
cassandra driver and metrics database is influx.
Change-Id: I4055230eb7c203eb2ca82777647ab3b0c62bc367
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