prometheus_streams
Install and configure a tool to federate Prometheus metrics via NATS Streams
Version information
released Apr 6th 2018
This version is compatible with:
- Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 4.7.0 < 6.0.0
- , ,
Start using this module
Add this module to your Puppetfile:
mod 'choria-prometheus_streams', '0.0.7'
Learn more about managing modules with a PuppetfileDocumentation
choria/prometheus_streams — version 0.0.7 Apr 6th 2018
choria/prometheus_streams
Overview
The Choria Prometheus Streams Federation is a tool that polls Prometheus metrics and distribute them over NATS Streams. On the Receiver they are published into Prometheus Push Gateway
Module Description
The module installs, configures and manages the associated services.
In order to install the package you have to add the Choria YUM repository to your system, in future there will be a choria
module to do this for you.
[choria_release]
name=choria_release
baseurl=https://packagecloud.io/choria/release/el/$releasever/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/choria/release/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
Usage
class{"prometheus_streams":
poller => true,
receiver => true,
poller_stream => {
cluster_id => "dc1_stream",
urls => "nats://nats.dc1.example.net:4222",
topic => "prometheus"
},
receiver_stream => {
client_id => "prometheus_receiver",
cluster_id => "global_stream",
urls => "nats://nats.dc2.example.net:4222",
topic => "prometheus"
},
push_gateway => {
url => "http://prometheus.dc2.example.net:9091",
publisher_label => true,
},
management => {
identity => "prom.example.net",
collective => "prometheus",
brokers => ["choria.example.net:4222"]
},
jobs => {
"choria" => {
"targets" => [
{
"name" => "choria1",
"url"=> "http://choria1.dc1.example.net:8222/choria/prometheus"
}
]
}
}
}
Full reference about the available options for configuring topics can be found in the project documentation.
Dependencies
- puppetlabs/stdlib (>= 4.12.0 < 5.0.0)