tripleo-heat-templates/environments/enable-stf.yaml
Leif Madsen 2d407a8f5d Adjust enable-stf.yaml for latest recommendations
Adjust the enable-stf.yaml to work with the latest recommendations for
use with Service Telemetry Framework. These changes provide the
appropriate parameters to result in telemetry data being sent to STF in
a format that it expects for dashboarding and alerting purposes.

Recommend configuration of ceilometer and collectd collection agents
plus data transport configuration with existing environment files in
order to avoid duplicating the resource registry for service enablement.
By separating the data collectors and data transports from the
configuration more flexibility for different architectures is possible.

Configuration options that have existing defaults defined in other
locations have also been removed in order to keep things cleaner.

Change-Id: I38d06056b56fb14c7162d546f6d688ba6ad59a5b
Signed-off-by: Leif Madsen <lmadsen@redhat.com>
2021-07-05 13:37:41 +00:00

80 lines
2.5 KiB
YAML

# Enable data collection that is compatible with the STF data model.
# Enablement of the collectors and transport are done with separate enviroment files.
# Recommended:
# - environments/metrics/ceilometer-qdr-write.yaml
# - environments/metrics/collectd-qdr-write.yaml
# - environments/metrics/qdr-edge-only.yaml
parameter_defaults:
# only send to STF, not other publishers
EventPipelinePublishers: []
PipelinePublishers: []
# manage the polling and pipeline configuration files for Ceilometer agents
ManagePolling: true
ManagePipeline: true
# required to set valid parameter due to typo in ceilometer-write-qdr.yaml
CeilometerQdrPublishMetrics: true
# enable collection of API status
CollectdEnableSensubility: true
CollectdSensubilityTransport: amqp1
CollectdSensubilityResultsChannel: sensubility/metrics
# enable collection of containerized service metrics
CollectdEnableLibpodstats: true
# set collectd overrides for higher telemetry resolution and extra plugins
# to load
CollectdConnectionType: amqp1
CollectdAmqpInterval: 5
CollectdDefaultPollingInterval: 5
CollectdAmqpSendQueueLimit: 50
CollectdExtraPlugins:
- vmem
ExtraConfig:
ceilometer::agent::polling::polling_interval: 30
ceilometer::agent::polling::polling_meters:
- cpu
- disk.*
- ip.*
- image.*
- memory
- memory.*
- network.*
- perf.*
- port
- port.*
- switch
- switch.*
- storage.*
- volume.*
# receive extra information about virtual memory
collectd::plugin::vmem::verbose: true
# provide name and uuid in addition to hostname for better correlation
# to ceilometer data
collectd::plugin::virt::hostname_format: "name uuid hostname"
# provide the human-friendly name of the virtual instance
collectd::plugin::virt::plugin_instance_format: metadata
# set memcached collectd plugin to report its metrics by hostname
# rather than host IP, ensuring metrics in the dashboard remain uniform
collectd::plugin::memcached::instances:
local:
host: "%{hiera('fqdn_canonical')}"
port: 11211
# The snippet below should be added to a separate yaml file, edited, and
# passed in at deploy time.
#MetricsQdrConnectors:
# - host: qdr-normal-sa-telemetry.apps.remote.tld
# port: 443
# role: edge
# sslProfile: sslProfile
# verifyHostname: false