-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrstatsd-example.yaml
More file actions
36 lines (36 loc) · 1.13 KB
/
rstatsd-example.yaml
File metadata and controls
36 lines (36 loc) · 1.13 KB
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
---
:logfile: "/var/log/rstatsd.log"
:loglevel: "INFO"
:cmds:
- :cmd: "tail -F /var/log/nginx/www.access_log"
:every: 100
:regexes:
- :regex: '(?<http_method>[A-Z]+)\s.*?\sHTTP/1\.1"\s(?<http_code>\d+)\s'
:metrics:
- "t1.aggregate"
- "t1.individual"
:statsd: true
- :regex: '^.*$'
:metrics:
- "t1.requests.aggregate"
- "t1.requests.individual"
:statsd: true
- :cmd: "tail -F /var/log/nginx/admin.access_log"
:every: 500
:regexes:
- :regex: '(?<http_method>[A-Z]+)\s.*?\sHTTP/1\.1"\s(?<http_code>\d+)\s'
:metrics:
- "t2.aggregate"
- "t2.individual"
:statsd: true
- :cmd: "/usr/bin/mongostat 1"
:regexes:
#insert query update delete getmore command flushes mapped vsize res faults locked % idx miss % qr|qw ar|aw netIn netOut conn set repl time
- :regex: '\s*(?<insert>\d+)\s*(?<query>\d+)\s*(?<update>\d+)\s*(?<delete>\d+)\s*(?<getmore>\d+)\s*(?<command>\d+)\s*(?<flushes>\d+)\s*.*?\s*.*?\s*.*?\s*(?<faults>\d+)'
:use_value: true
:metrics:
- "mongo"
:metric_prefix: "com.example.www."
:statsd:
:host: "graphite.example.com"
:port: 8125