/
carbon.rewrite-rules.conf
82 lines (81 loc) · 2.63 KB
/
carbon.rewrite-rules.conf
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
# Example rewrite-rules.conf for use by Graphite's carbon-aggregator
#
# This file defines regular expression patterns that can be used to
# rewrite metric names in a search & replace fashion. It consists of two
# sections, [pre] and [post]. The rules in the pre section are applied to
# metric names as soon as they are received. The post rules are applied
# after aggregation has taken place.
#
# Collectd's default metric names end up being overly verbose in
# Graphite. These rewrite rules significantly increase the ease of using
# Collectd gathered data.
[pre]
#### Hostname Cleanup
_DOMAIN\. = .
_DOMAIN_TLD\. = .
#### Collectd Cleanup
# apache
\.apache\.mod_status\.apache_scoreboard\. = .apache.scoreboard.
\.apache\.mod_status\. = .apache.
# cpu
\.cpu\.idle\.value$ = .idle
\.cpu\.interrupt\.value$ = .interrupt
\.cpu\.nice\.value$ = .nice
\.cpu\.softirq\.value$ = .softirq
\.cpu\.steal\.value$ = .steal
\.cpu\.system\.value$ = .system
\.cpu\.user\.value$ = .user
\.cpu\.wait\.value$ = .wait
# df
\.df_complex =
# disk
\.disk_merged = .merged
\.disk_octets = .octets
\.disk_ops = .ops
\.disk_time = .time
# entropy
entropy\.entropy\.value$ = entropy
# interface
\.if_errors\. = .errors.
\.if_octets\. = .octets.
\.if_packets\. = .packets.
# load
\.load\.load\. = .load.
# memcached
\.memcached\.memcached_connections\.current\.value$ = .memcached.connections
\.memcached\.df\.cache\.free$ = .memcached.cache.free
\.memcached\.df\.cache\.used$ = .memcached.cache.used
\.memcached\.memcached_items\.current\.value$ = .memcached.items
\.memcached\.memcached_ = .memcached.
\.memcached\.percent\.hitratio\.value$ = .memcached.hitratio
# memory
\.memory\.memory\. = .memory.
# mysql
\.cache_result\.qcache- = .cache_result.
\.cache_size\.qcache.value$ = .cache_size
# nfs
^.*\.nfs\.v2.*$ = trash
\.nfs\.v3client\.nfs_procedure\. = .nfs.client.
\.nfs\.v3server\.nfs_procedure\. = .nfs.server.
# swap
\.swap\.swap\. = .swap.
\.swap_io = .io
# tail: apache access all
\.tail\.access_log_all\.counter\.status_ = .tail.access_log_all.status.
\.tail\.access_log_all\.response_time.first_byte_ = .tail.access_log_all.first_byte.
\.tail\.access_log_all\.response_time.response_ = .tail.access_log_all.response.
# tail: postfix
\.tail\.postfix\.counter\.conn-in- = .tail.postfix.conn-in.
\.tail\.postfix\.counter\.conn-out- = .tail.postfix.conn-out.
\.tail\.postfix\.counter\.rejected- = .tail.postfix.rejected.
\.tail\.postfix\.counter\.status- = .tail.postfix.status.
\.tail\.postfix\.gauge\.delay- = .tail.postfix.delay.
\.tail\.postfix\.ipt_bytes. = .tail.postfix.
# tcpconns
\.tcp_connections\. = .
# uptime
uptime\.uptime\.value$ = uptime
# users
users\.users\.value$ = users
# misc
\.value =