-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
979 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
data_source "test" 192.168.2.11:8655 | ||
data_source "nginx_Proxy" 192.168.1.18:8654 | ||
data_source "codis" 192.168.2.12:8656 | ||
|
||
|
||
gridname "ganglia_server" | ||
xml_port 8651 | ||
interactive_port 8652 | ||
rrd_rootdir "/var/lib/ganglia/rrds" | ||
setuid_username ganglia | ||
case_sensitive_hostnames 0 | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,292 @@ | ||
|
||
globals { | ||
daemonize = yes | ||
setuid = yes | ||
user = ganglia | ||
debug_level = 0 | ||
max_udp_msg_len = 1472 | ||
mute = no | ||
deaf = no | ||
allow_extra_data = yes | ||
host_dmax = 86400 | ||
host_tmax = 20 | ||
cleanup_threshold = 300 | ||
gexec = no | ||
send_metadata_interval = 30 | ||
override_hostname = 192.168.2.11 | ||
} | ||
|
||
cluster { | ||
name = "test" | ||
owner = "unspecified" | ||
latlong = "unspecified" | ||
url = "unspecified" | ||
} | ||
|
||
host { | ||
location = "unspecified" | ||
} | ||
udp_send_channel { | ||
host = 192.168.2.11 | ||
port = 8655 | ||
ttl = 1 | ||
} | ||
udp_recv_channel { | ||
port = 8655 | ||
|
||
} | ||
|
||
tcp_accept_channel { | ||
port = 8655 | ||
} | ||
|
||
modules { | ||
module { | ||
name = "core_metrics" | ||
} | ||
module { | ||
name = "cpu_module" | ||
path = "modcpu.so" | ||
} | ||
module { | ||
name = "disk_module" | ||
path = "moddisk.so" | ||
} | ||
module { | ||
name = "load_module" | ||
path = "modload.so" | ||
} | ||
module { | ||
name = "mem_module" | ||
path = "modmem.so" | ||
} | ||
module { | ||
name = "net_module" | ||
path = "modnet.so" | ||
} | ||
module { | ||
name = "proc_module" | ||
path = "modproc.so" | ||
} | ||
module { | ||
name = "sys_module" | ||
path = "modsys.so" | ||
} | ||
} | ||
|
||
collection_group { | ||
collect_once = yes | ||
time_threshold = 20 | ||
metric { | ||
name = "heartbeat" | ||
} | ||
} | ||
|
||
collection_group { | ||
collect_every = 60 | ||
time_threshold = 60 | ||
metric { | ||
name = "cpu_num" | ||
title = "CPU Count" | ||
} | ||
metric { | ||
name = "cpu_speed" | ||
title = "CPU Speed" | ||
} | ||
metric { | ||
name = "mem_total" | ||
title = "Memory Total" | ||
} | ||
metric { | ||
name = "swap_total" | ||
title = "Swap Space Total" | ||
} | ||
metric { | ||
name = "boottime" | ||
title = "Last Boot Time" | ||
} | ||
metric { | ||
name = "machine_type" | ||
title = "Machine Type" | ||
} | ||
metric { | ||
name = "os_name" | ||
title = "Operating System" | ||
} | ||
metric { | ||
name = "os_release" | ||
title = "Operating System Release" | ||
} | ||
metric { | ||
name = "location" | ||
title = "Location" | ||
} | ||
} | ||
|
||
collection_group { | ||
collect_once = yes | ||
time_threshold = 300 | ||
metric { | ||
name = "gexec" | ||
title = "Gexec Status" | ||
} | ||
} | ||
|
||
collection_group { | ||
collect_every = 20 | ||
time_threshold = 90 | ||
metric { | ||
name = "cpu_user" | ||
value_threshold = "1.0" | ||
title = "CPU User" | ||
} | ||
metric { | ||
name = "cpu_system" | ||
value_threshold = "1.0" | ||
title = "CPU System" | ||
} | ||
metric { | ||
name = "cpu_idle" | ||
value_threshold = "5.0" | ||
title = "CPU Idle" | ||
} | ||
metric { | ||
name = "cpu_nice" | ||
value_threshold = "1.0" | ||
title = "CPU Nice" | ||
} | ||
metric { | ||
name = "cpu_aidle" | ||
value_threshold = "5.0" | ||
title = "CPU aidle" | ||
} | ||
metric { | ||
name = "cpu_wio" | ||
value_threshold = "1.0" | ||
title = "CPU wio" | ||
} | ||
metric { | ||
name = "cpu_steal" | ||
value_threshold = "1.0" | ||
title = "CPU steal" | ||
} | ||
|
||
} | ||
|
||
collection_group { | ||
collect_every = 20 | ||
time_threshold = 90 | ||
metric { | ||
name = "load_one" | ||
value_threshold = "1.0" | ||
title = "One Minute Load Average" | ||
} | ||
metric { | ||
name = "load_five" | ||
value_threshold = "1.0" | ||
title = "Five Minute Load Average" | ||
} | ||
metric { | ||
name = "load_fifteen" | ||
value_threshold = "1.0" | ||
title = "Fifteen Minute Load Average" | ||
} | ||
} | ||
|
||
collection_group { | ||
collect_every = 80 | ||
time_threshold = 950 | ||
metric { | ||
name = "proc_run" | ||
value_threshold = "1.0" | ||
title = "Total Running Processes" | ||
} | ||
metric { | ||
name = "proc_total" | ||
value_threshold = "1.0" | ||
title = "Total Processes" | ||
} | ||
} | ||
|
||
collection_group { | ||
collect_every = 40 | ||
time_threshold = 180 | ||
metric { | ||
name = "mem_free" | ||
value_threshold = "1024.0" | ||
title = "Free Memory" | ||
} | ||
metric { | ||
name = "mem_shared" | ||
value_threshold = "1024.0" | ||
title = "Shared Memory" | ||
} | ||
metric { | ||
name = "mem_buffers" | ||
value_threshold = "1024.0" | ||
title = "Memory Buffers" | ||
} | ||
metric { | ||
name = "mem_cached" | ||
value_threshold = "1024.0" | ||
title = "Cached Memory" | ||
} | ||
metric { | ||
name = "swap_free" | ||
value_threshold = "1024.0" | ||
title = "Free Swap Space" | ||
} | ||
} | ||
|
||
collection_group { | ||
collect_every = 40 | ||
time_threshold = 300 | ||
metric { | ||
name = "bytes_out" | ||
value_threshold = 4096 | ||
title = "Bytes Sent" | ||
} | ||
metric { | ||
name = "bytes_in" | ||
value_threshold = 4096 | ||
title = "Bytes Received" | ||
} | ||
metric { | ||
name = "pkts_in" | ||
value_threshold = 256 | ||
title = "Packets Received" | ||
} | ||
metric { | ||
name = "pkts_out" | ||
value_threshold = 256 | ||
title = "Packets Sent" | ||
} | ||
} | ||
|
||
collection_group { | ||
collect_every = 1800 | ||
time_threshold = 3600 | ||
metric { | ||
name = "disk_total" | ||
value_threshold = 1.0 | ||
title = "Total Disk Space" | ||
} | ||
} | ||
|
||
collection_group { | ||
collect_every = 40 | ||
time_threshold = 180 | ||
metric { | ||
name = "disk_free" | ||
value_threshold = 1.0 | ||
title = "Disk Space Available" | ||
} | ||
metric { | ||
name = "part_max_used" | ||
value_threshold = 1.0 | ||
title = "Maximum Disk Space Used" | ||
} | ||
} | ||
|
||
include ("/etc/ganglia/conf.d/*.conf") | ||
|
Oops, something went wrong.