graphite - swtch monitoring via snmp

* Add custom storage schema
 * add rewrites for unification etc
This commit is contained in:
Vladimir Vitkov 2015-11-03 16:49:04 +02:00
parent 974ce127bf
commit 68a6c3f09a
2 changed files with 18 additions and 0 deletions

View File

@ -24,3 +24,16 @@
# Rewrite temperature sensors to be less ugly # Rewrite temperature sensors to be less ugly
# temperature-Temp_1_system_internal_expansion_board_16_5_/value.wsp # temperature-Temp_1_system_internal_expansion_board_16_5_/value.wsp
temperature-Temp_([0-9]+)_([a-zA-Z0-9_]+)__(.*)\. = Temp-\1_\2. temperature-Temp_([0-9]+)_([a-zA-Z0-9_]+)__(.*)\. = Temp-\1_\2.
# nest under common root
if_errors-(.*).(rx|tx)$ = \1.errors.\2
if_octets-(.*).(rx|tx)$ = \1.octets.\2
# expand cisco naming
Vl([0-9]+) = Vlan\1
# rename tplink ports
port_([0-9]+):_Gigabit_(Fiber|Copper) = Gi\1
# rename tplink vlans
Vlan-interface([0-9]+) = Vlan\1

View File

@ -11,6 +11,11 @@
pattern = ^carbon\. pattern = ^carbon\.
retentions = 10:30d retentions = 10:30d
# SNMP monitoring shit
[switches_snmp]
pattern = sw\.snmp\.
retentions = 60s:30d
# final defaults # final defaults
[default_10s_6months] [default_10s_6months]
pattern = .* pattern = .*