Skip to content

Commit

Permalink
Merge pull request ganglia#208 from n0ts/fix_spfexample
Browse files Browse the repository at this point in the history
Fix pyconf indent for spfexample.pyconf
  • Loading branch information
vvuksan committed Mar 23, 2015
2 parents e0ab98e + b5d4e56 commit 69b2f94
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions gmond/python_modules/conf.d/spfexample.pyconf.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# as an example to write your own spoof module. */
modules {
module {
name = "spfexample"
name = "spfexample"
language = "python"
enabled = "no"
enabled = "no"
}
}

Expand All @@ -16,8 +16,9 @@ modules {
#/* This metric gathers a simulated
# cpu utilization value */
collection_group {
collect_every = 10
collect_every = 10
time_threshold = 50

metric {
name = "spf_random_cpu_util"
value_threshold = 1.0
Expand All @@ -28,29 +29,31 @@ collection_group {
#/* This metric spoofs a heartbeat for an
# imaginary box */
collection_group {
collect_once = yes
collect_once = yes
time_threshold = 20

metric {
name = "spf_heartbeat"
name = "spf_heartbeat"
title = "Spoofed Heartbeat"
}
}

#/* These metrics spoof the location, boottime and OS name
# for an imaginary box */
collection_group {
collect_once = yes
collect_once = yes
time_threshold = 1200

metric {
name = "spf_location"
name = "spf_location"
title = "Spoofed Location"
}
metric {
name = "spf_boottime"
name = "spf_boottime"
title = "Spoofed Boot Time"
}
metric {
name = "spf_osname"
name = "spf_osname"
title = "Spoofed OS Name"
}
}

0 comments on commit 69b2f94

Please sign in to comment.