1ae10375f7
The log metrics service generates metrics from log messages which allows further analysis and alerting to be performed on them. Basic configuration is provided so that metrics are generated for high level warning logs such as error, or warning. Change-Id: I45cc17817c716296451f620f304c0b1108162a56 Partially-Implements: blueprint monasca-roles
25 lines
945 B
YAML
25 lines
945 B
YAML
---
|
|
- include_tasks: register.yml
|
|
when: inventory_hostname in groups['monasca-api'] or
|
|
inventory_hostname in groups['monasca-log-api']
|
|
|
|
- include_tasks: config.yml
|
|
when: inventory_hostname in groups['monasca-api'] or
|
|
inventory_hostname in groups['monasca-log-api'] or
|
|
inventory_hostname in groups['monasca-log-transformer'] or
|
|
inventory_hostname in groups['monasca-log-persister'] or
|
|
inventory_hostname in groups['monasca-log-metrics']
|
|
|
|
- include_tasks: bootstrap.yml
|
|
when: inventory_hostname in groups['monasca-api']
|
|
|
|
- name: Flush handlers
|
|
meta: flush_handlers
|
|
|
|
- include_tasks: check.yml
|
|
when: inventory_hostname in groups['monasca-api'] or
|
|
inventory_hostname in groups['monasca-log-api'] or
|
|
inventory_hostname in groups['monasca-log-transformer'] or
|
|
inventory_hostname in groups['monasca-log-persister'] or
|
|
inventory_hostname in groups['monasca-log-metrics']
|