Defined Type: prometheus::blazegraph_exporter

Defined in:
modules/prometheus/manifests/blazegraph_exporter.pp

Overview

Parameters:

  • nginx_port (Any)
  • blazegraph_port (Any)
  • prometheus_port (Any)
  • blazegraph_main_ns (Any)
  • collect_via_nginx (Any)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'modules/prometheus/manifests/blazegraph_exporter.pp', line 1

define prometheus::blazegraph_exporter (
    $nginx_port,
    $blazegraph_port,
    $prometheus_port,
    $blazegraph_main_ns,
    # collecting via nginx allows using the namespaces alias map used by categories
    # not supported if oauth is activated
    $collect_via_nginx,
) {
    systemd::service { "prometheus-blazegraph-exporter-${title}":
        ensure         => present,
        content        => systemd_template('prometheus-blazegraph-exporter'),
        restart        => true,
        require        => File['/usr/local/bin/prometheus-blazegraph-exporter'],
        service_params => {
            ensure => 'running',
        }
    }
    profile::auto_restarts::service { "prometheus-blazegraph-exporter-${title}": }
}