forked from shawn-sterling/graphios
-
Notifications
You must be signed in to change notification settings - Fork 1
/
graphios.cfg
167 lines (118 loc) · 5.56 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# 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 in megabytes (it will rotate the files)
log_max_size = 24
# DEBUG is quite verbose
#log_level = logging.DEBUG
log_level = logging.INFO
# Disable this once you get it working.
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")
# (uses the replacement_character)
replace_hostname = True
# reverse hostname
# if you have:
# host.datacenter.company.tld
# as your nagios hostname you may prefer to have your metric stored as:
# tld.company.datacenter.host
reverse_hostname = False
# This string will be universally pre-pended to metrics, regardless of whether
# or not _graphiteprefix is set. (Quotes not required).
# metric_base_path = mycorp.nagios
#------------------------------------------------------------------------------
# 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
# The max amount of metrics to send to the carbon server at a time (def:200)
#carbon_max_metrics = 200
#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_servers = 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
#------------------------------------------------------------------------------
# InfluxDB Details (if you are using InfluxDB 0.8)
#------------------------------------------------------------------------------
enable_influxdb = False
#------------------------------------------------------------------------------
# InfluxDB Details (if you are using InfluxDB 0.9)
# This will work a bit differently because of the addition of tags in
# InfluxDB 0.9. Now the metric will be named after the service description,
# the perfdata field will be a tag, and the host name will be a tag. The value
# of the metric is stored in the 'value' column.
# Requires use_service_desc = True.
#------------------------------------------------------------------------------
enable_influxdb09 = False
# Extra tags to add to metrics, like data center location etc.
# Only valid for 0.9
#influxdb_extra_tags = {"location": "la"}
# Comma separated list of server:ports
# defaults to 127.0.0.1:8086 (:8087 if using SSL).
#influxdb_servers = 127.0.0.1:8087
# SSL, defaults to False
#influxdb_use_ssl = True
# Database-name, defaults to nagios
#influxdb_db = <your influxdb-database>
# Credentials (required)
#influxdb_user = <your username>
#influxdb_password = <your password>
# Max metrics to send / request, defaults to 250
#influxdb_max_metrics = 500
# Flag the InfluxDB backend as 'non essential' for the purposes of error checking
#nerf_influxdb = 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