119 lines
3.3 KiB
YAML
119 lines
3.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.'
|
|
weight: 10
|
|
type: "text"
|
|
|
|
elasticsearch_mode:
|
|
type: "radio"
|
|
weight: 20
|
|
value: "local"
|
|
label: "Events analytics (logs and notifications)"
|
|
values:
|
|
- data: "disabled"
|
|
label: "Disabled"
|
|
- data: "local"
|
|
label: "Local node"
|
|
- data: "remote"
|
|
label: "Remote server"
|
|
restrictions: &all_disabled_msg
|
|
- condition: "settings:lma_collector.elasticsearch_mode.value == 'disabled' and settings:lma_collector.influxdb_mode.value == 'disabled'"
|
|
action: "none"
|
|
message: "Please enable Events or Metrics analytics or both"
|
|
|
|
|
|
elasticsearch_node_name:
|
|
value: 'elasticsearch'
|
|
label: "Elasticsearch node name"
|
|
description: 'Label of the node running the Elasticsearch/Kibana plugin that is deployed in the environment.'
|
|
weight: 30
|
|
type: "text"
|
|
restrictions:
|
|
- condition: "settings:lma_collector.elasticsearch_mode.value != 'local'"
|
|
action: "disable"
|
|
|
|
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: "disabled"
|
|
label: "Disabled"
|
|
- data: "local"
|
|
label: "Local node"
|
|
- data: "remote"
|
|
label: "Remote server"
|
|
restrictions: *all_disabled_msg
|
|
|
|
influxdb_node_name:
|
|
value: 'influxdb'
|
|
label: "InfluxDB node name"
|
|
description: 'Label of the node running the InfluxDB/Grafana plugin that is deployed in the environment.'
|
|
weight: 65
|
|
type: "text"
|
|
restrictions:
|
|
- condition: "settings:lma_collector.influxdb_mode.value != 'local'"
|
|
action: "disable"
|
|
|
|
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: ¬_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
|