Puppet Class: thanos

Defined in:
modules/thanos/manifests/init.pp

Overview

SPDX-License-Identifier: Apache-2.0



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/thanos/manifests/init.pp', line 2

class thanos {
    exec { 'reload thanos-rule':
        # Workaround for SIGHUP not working in thanos 0.21.1
        # https://github.com/thanos-io/thanos/issues/4432
        # https://phabricator.wikimedia.org/T303154
        command     => '/usr/bin/curl -X POST localhost:17902/rule/-/reload',
        refreshonly => true,
    }

    # Slice container for Thanos components, used to control resources as a whole
    systemd::unit { 'thanos.slice':
        ensure   => present,
        override => true,
        content  => systemd_template('slice'),
    }
}