ff83505e8a
The hiera function is deprecated and does not work with the latest hieradata version 5. It should be replaced by the new lookup function[1]. [1] https://puppet.com/docs/puppet/7/hiera_automatic.html With the lookup function, we can define value type and merge behavior, but these are kept default at this moment to limit scope of this change to just simple replacement. Adding value type might be useful to make sure the value is in expected type (especially when a boolean value is expected), but we will revisit that later. example: lookup(<NAME>, [<VALUE TYPE>], [<MERGE BEHAVIOR>], [<DEFAULT VALUE>]) Change-Id: If5ac88ffccc1bb800d8af33c8896294a57e9b5fb
80 lines
2.5 KiB
YAML
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: "%{lookup('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
|