Defined Type: thanos::config::tracing

Defined in:
manifests/config/tracing.pp

Summary

Manage Tracing configuration file.

Overview

Manage Tracing configuration file

Examples:

thanos::config::tracing { '/etc/thanos/tracing.yaml':
  ensure => 'present',
  type   => 'JAEGER',
  config => {...},
}

Parameters:

  • ensure (Enum['present', 'absent'])

    State ensured from configuration file.

  • type (Thanos::Tracing_type)

    Type of Tracing configurarion.

    One of ['JAEGER', 'STACKDRIVER', 'ELASTIC_APM', 'LIGHTSTEP']
    
  • config (Hash[String, Data])

    Configuration to typed tracing.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'manifests/config/tracing.pp', line 18

define thanos::config::tracing (
  Enum['present', 'absent'] $ensure,
  Thanos::Tracing_type      $type,
  Hash[String, Data]        $config,
) {
  $_ensure = $ensure ? {
    'present' => 'file',
    default   => 'absent'
  }

  $configs = {
    type   => $type,
    config => $config,
  }

  file { $title:
    ensure  => $_ensure,
    content => $configs.to_yaml(),
  }
}