forked from shawn-sterling/graphios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphios.cfg
109 lines (75 loc) · 3.62 KB
/
graphios.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Graphios config file
[graphios]
#------------------------------------------------------------------------------
# Global Details (you need these!)
#------------------------------------------------------------------------------
# Character to use as replacement for invalid characters in metric names
replacement_character = _
# nagios spool directory
spool_directory = /var/spool/nagios/graphios
# graphios log info
log_file = /usr/local/nagios/var/graphios.log
# max log size (it will rotate the files) default: 24 MB
log_max_size = 25165824
# DEBUG is quite verbose
#log_level = logging.DEBUG
log_level = logging.INFO
debug = True
# How long to sleep between processing the spool directory
sleep_time = 15
# when we can't connect to carbon, the sleeptime is doubled until we hit max
sleep_max = 480
# test mode makes it so we print what we would add to carbon, and not delete
# any files from the spool directory. log_level must be DEBUG as well.
test_mode = False
# use service description, most people will NOT want this, read documentation!
use_service_desc = False
# replace "." in nagios hostnames? (so "my.host.name" becomes "my_host_name")
replace_hostname = True
#------------------------------------------------------------------------------
# Carbon Details (comment out if not using carbon)
#------------------------------------------------------------------------------
enable_carbon = False
# Defaults to using the pickle protocol. Set to True to use the plaintext protocol.
carbon_plaintext = False
# Comma separated list of carbon server IP:Port 's
carbon_servers = 127.0.0.1:2004
#flag the carbon backend as 'non essential' for the purposes of error checking
#nerf_carbon = False
#------------------------------------------------------------------------------
# Statsd Details (comment in if you are using statsd)
#------------------------------------------------------------------------------
enable_statsd = False
# Comma separated list of statsd server IP:Port 's
statsd_server = 127.0.0.1:8125
#flag the statsd backend as 'non essential' for the purposes of error checking
#nerf_statsd = False
#------------------------------------------------------------------------------
# librato Details (comment in if you are using librato)
#------------------------------------------------------------------------------
enable_librato = False
# your (required) librato credentials here:
#librato_email = <your email>
#librato_token = <your api token>
#### ZOMG SUPER IMPORTANT SETTING THAT WILL SAVE YOU MONEY #####
# json-formmated RE patterns that match the names of metrics you want to emit
# to Librato the default list is [".*"] (send everything).
# Example:
# librato_whitelist = ["load","rta","swap"]
librato_whitelist = [".*"]
#OPTIONAL BELOW HERE, LEAVE COMMENTED UNLESS YOU REALLY WANT IT CHANGED
# floor_time_secs: Floor samples to this time (set to graphios sleep_time)
#librato_floor_time_secs = 15
# comma separated list of Nagios Macros we use to construct the metric name:
# librato_namevals = GRAPHITEPREFIX,SERVICEDESC,GRAPHITEPOSTFIX,LABEL
# comma separated list of Nagios Macros we use to construct the source value :
# librato_sourcevals = HOSTNAME
#flag the librato backend as 'non essential' for the purposes of error checking
#nerf_librato=False
#------------------------------------------------------------------------------
# STDOUT Details (comment in if you are using STDOUT)
#------------------------------------------------------------------------------
#comment the line below to disable the STDOUT sender
enable_stdout = False
#flag the stdout backend as 'non essential' for the purposes of error checking
nerf_stdout = True