Skip to content

Commit

Permalink
Add Statsd Exporter, Mysqld Exporter, make exporters generic (voxpupu…
Browse files Browse the repository at this point in the history
…li#27)

* add a statsd_exporter

* update templates

* :update to use a template

* fix bug

* migrate to using generic service configurations

* update node_exporter

* update to just daemon

* move node_exporter to use a generic daemon

* move the statsd_exporter and alert_manager to generic daemon install

* update to make the daemon a resource

* update

* add mysqld_exporter

* update default params

* update to use different users

* update to use newer version of node_exporter
fix mysqld_exporter my.cnf location

* update systemd daemon

* update to use alertmanager instead of alert_manager

* update template filename

* update version so that alertmanager breaking changes are known

* update from review

* update systemd files

* update readme

* the service should be restarted when the configuration is updated

* fix bug in params

* fix sorting of an array of hashes

* add a lockfile for Gems

* update documentation and sort params alphabetically

* add some tests

* add .gitignore file

* remove Gemfile.lock

* remove fixture modules

* fix comments

* shellescape options variable

* update statsd template

* Fixed daemon.systemd template; fixed duplicate definitions of  and  in daemon.pp; fixed duplicate definition of  in alertmanager.pp

* Fixed daemon upstart script

* Changed statsd mapping code for ruby 1.8.7 compatibility
  • Loading branch information
lswith authored and brutus333 committed Dec 27, 2016
1 parent a677232 commit 79302a7
Show file tree
Hide file tree
Showing 41 changed files with 1,138 additions and 1,231 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Gemfile.lock
spec/fixtures/modules/*
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This module automates the install and configuration of Prometheus monitoring too

* Installs the prometheus daemon, alertmanager or exporters(via url or package)
* The package method was implemented, but currently there isn't any package for prometheus
* Optionally installs a user to run it under
* Optionally installs a user to run it under (per exporter)
* Installs a configuration file for prometheus daemon (/etc/prometheus/prometheus.yaml) or for alertmanager (/etc/prometheus/alert.rules)
* Manages the services via upstart, sysv, or systemd
* Optionally creates alert rules
Expand Down Expand Up @@ -105,6 +105,8 @@ For more information regarding class parameters please take a look at class docs

## Limitations/Known issues

In version 0.1.14 of this module the alertmanager was configured to run as the service `alert_manager`. This has been changed in version 0.2.00 to be `alertmanager`.

Do not use version 1.0.0 of Prometheus: https://groups.google.com/forum/#!topic/prometheus-developers/vuSIxxUDff8 ; it does break the compatibility with thus module!

Even if the module has templates for several linux distributions, only RH family distributions were tested.
Expand Down
12 changes: 12 additions & 0 deletions files/statsd_mapping.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
test.dispatcher.*.*.*
name="dispatcher_events_total"
processor="$1"
action="$2"
outcome="$3"
job="test_dispatcher"

*.signup.*.*
name="signup_events_total"
provider="$2"
outcome="$3"
job="${1}_server"
141 changes: 0 additions & 141 deletions manifests/alert_manager.pp

This file was deleted.

93 changes: 0 additions & 93 deletions manifests/alert_manager/config.pp

This file was deleted.

74 changes: 0 additions & 74 deletions manifests/alert_manager/install.pp

This file was deleted.

20 changes: 0 additions & 20 deletions manifests/alert_manager/run_service.pp

This file was deleted.

Loading

0 comments on commit 79302a7

Please sign in to comment.