Commit Graph

7 Commits

Author SHA1 Message Date
zreigz a1ccce728a Skip authentication for version and healthcheck endpoints
Change-Id: I0d03464e275ed5724361a82425f5b7fd2a0a931e
Story: 2003799
Task: 26554
2018-11-20 14:12:53 +01:00
Adrian Czarnecki c8c5217af0 Py3: Fix encoding in _verify_topics method
Change-Id: I18c649b1880b52f5961e3dee18c3c9aef3afdde9
2018-09-06 13:53:52 +02:00
Adrian Czarnecki 3f530c85e8 Fix incorrect error when topic not found
Story: 2003668
Task: 26186
Change-Id: I4df9e4373544a26c41ff4b0e8f6a0d68eccd0d78
2018-09-06 09:58:49 +02:00
Akira Yoshiyama 0915993633 metrics_db_check: move check methods to each metrics drivers
monasca_api.healthcheck.metrics_db_check has two healthcheck methods for
InfluxDB and Cassandra. They should be in each metrics_repository.

Change-Id: I6c9cc637eba6c3096b5319979434cfd9f0b78a9a
2017-10-23 17:14:15 +09: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
Craig Bryant 45dba72fa8 Remove required healthcheck import of cassandra
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
2017-06-20 21:52:42 -06:00
Artur Basiak 4e168edf6e Add healtcheck endpoint
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
2017-05-30 11:30:56 +02:00