Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F8321801
config.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
config.sls
View Options
# -------------------------------------------------------------
# Salt — Provision Prometheus
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
from
"map.jinja"
import
dirs
with context
%}
# -------------------------------------------------------------
# Prometheus configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{
dirs.etc
}}
/prometheus.yml
:
file.managed
:
-
source
:
salt://roles/prometheus/prometheus/files/prometheus.yml
-
template
:
jinja
# -------------------------------------------------------------
# Syslog configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
if
grains
[
"os"
]
==
"FreeBSD"
%}
{{
dirs.etc
}}
/newsyslog.conf.d/prometheus.conf
:
file.managed
:
-
source
:
salt://roles/prometheus/prometheus/files/syslog/newsyslog.conf
-
makedirs
:
True
{{
dirs.etc
}}
/syslog.d/prometheus.conf
:
file.managed
:
-
source
:
salt://roles/prometheus/prometheus/files/syslog/prometheus.conf
-
makedirs
:
True
prometheus_newsyslog_run
:
cmd.run
:
-
name
:
newsyslog -C
-
creates
:
/var/log/prometheus.log
prometheus_syslog_reload
:
cmd.run
:
-
name
:
/etc/rc.d/syslogd reload
-
onchanges
:
-
file
:
{{
dirs.etc
}}
/syslog.d/prometheus.conf
{%
endif
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 13, 16:52 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2574206
Default Alt Text
config.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment