fuel-plugin-lma-collector/environment_config.yaml

90 lines
2.3 KiB
YAML

attributes:
metadata:
restrictions:
- condition: "cluster:net_provider != 'neutron'"
action: "hide"
environment_label:
value: ''
label: 'Environment label'
description: 'Optional string to tag the data. If empty, it will default to "env-<environment id>".'
weight: 10
type: "text"
elasticsearch_mode:
type: "radio"
weight: 20
value: "local"
label: "Events analytics (logs and notifications)"
values:
- data: "local"
label: "Local node (if deployed)"
- data: "remote"
label: "Remote server"
elasticsearch_address:
value: ''
label: 'Elasticsearch address'
description: 'IP address or fully qualified domain name of the Elasticsearch server.'
weight: 40
type: "text"
restrictions:
- condition: "settings:lma_collector.elasticsearch_mode.value != 'remote'"
action: "disable"
regex: &node_address_regex
source: '^[a-zA-Z\d][a-zA-Z\d_\-.]+$'
error: "Invalid address or name"
influxdb_mode:
type: "radio"
weight: 60
value: "local"
label: "Metrics analytics"
values:
- data: "local"
label: "Local node (if deployed)"
- data: "remote"
label: "Remote server"
influxdb_address:
value: ''
label: 'InfluxDB address'
description: 'IP address or fully qualified domain name of the InfluxDB server.'
weight: 70
type: "text"
regex: *node_address_regex
restrictions:
- condition: "settings:lma_collector.influxdb_mode.value != 'remote'"
action: "disable"
influxdb_database:
value: 'lma'
label: 'InfluxDB database name'
description: ''
weight: 75
type: "text"
regex: &not_empty_parameter
source: '\S'
error: "Invalid value"
restrictions: &disable_influxdb_parameters
- condition: "settings:lma_collector.influxdb_mode.value != 'remote'"
action: "disable"
influxdb_user:
value: 'lma'
label: 'InfluxDB user'
description: ''
weight: 80
type: "text"
regex: *not_empty_parameter
restrictions: *disable_influxdb_parameters
influxdb_password:
value: 'lmapass'
label: 'InfluxDB password'
description: ''
weight: 85
type: "password"
regex: *not_empty_parameter
restrictions: *disable_influxdb_parameters