-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from UnderGreen/upstart_support
Upstart support
- Loading branch information
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ galaxy_info: | |
- jessie | ||
- name: Ubuntu | ||
versions: | ||
- precise | ||
- trusty | ||
- xenial | ||
galaxy_tags: | ||
- monitoring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
description "Prometheus Monitoring" | ||
start on (local-filesystems and net-device-up IFACE!=lo) | ||
stop on runlevel [016] | ||
|
||
respawn | ||
env GOMAXPROCS={{ prometheus_gomaxprocs }} | ||
setuid {{ prometheus_user }} | ||
setgid {{ prometheus_group }} | ||
|
||
script | ||
exec >> "{{ prometheus_log_dir }}/prometheus.log" | ||
exec 2>&1 | ||
exec {{ prometheus_bin_dir }}/prometheus {% for flag, flag_value in prometheus_config_flags.iteritems() %}-{{ flag }}={{ flag_value }} {% endfor %} | ||
|
||
end script |