Initial specification for first log query API, which simply allows
retrieval of logs based on matching a set of dimension values within a
given time range. This API is based heavily on the metrics measurement
listing API for consistency between the logs and metrics services.
Change-Id: I9ecba61095c73be18a73cb83b930235cf62da55e
Partially-Implements: blueprint log-query-api
Following commits not only enables running
unit tests with ostestr, like other
OS projects, but also:
* enables covarage with testr
* enables building documentation with build_sphinx commands
Additionally:
* tox.ini was organized a bit
Change-Id: I2a21f9cee0e00f7148142465a8fc131ef4ff6f44
Following commit adds monitoring
for monasca-log-api with metrics:
* monasca.log.in_logs - amount of logs that API has received
* monasca.log.in_logs_rejected - size of received logs in bytes
* monasca.log.processing_time_ms - log-api time to process received logs
* monasca.log.out_logs - amount of logs pubslished to kafka
* monasca.log.out_logs_lost - amount of logs that were lost (critical errors)
* monasca.log.publish_time_ms - time log-api needed to pubslish logs
* monasca.log.in_bulks_rejected - amount of rejected bulk requests
* monasca.log.out_logs_truncated_bytes - amount of truncated bytes from messages
Change-Id: Ib4165fe128e87b356415da8423f536d393c89f01
Healthcheck allows to verify if:
- API is up and running
- Kafka, that monasca-log-api sends data to, is up and running
and an expected topic can be found there.
Other:
- added documentation entries
Change-Id: I316c1d9518cfed37119f11c326c071bfbfc7658e
Created middleware to authorize access
to log api. Only configured roles (i.e. default) can access
the api. Also middleware detect if the request would
come from monasca-log-agent.
Summary:
- middleware added (logic + tests)
- extended documentation
Additionaly:
- added better tox processing
- added minimum coverage
Change-Id: Ic848bfa3a8552887661f8223078efe3a4bca5c37
- added documentation for kafka configuration
- moved python documentation to own part
- added section for coverage and building
Change-Id: I0998c955ee652bbe32af152b9c1ae894f06c1396