# Orca configuration file for orcallator files.
# $HeadURL: file:///var/www/svn/repositories-public/orcaware-public/orca/trunk/data_gatherers/orcallator/orcallator.cfg.in $
# $LastChangedRevision: 530 $
# $LastChangedDate: 2007-09-17 22:12:29 -0700 (Mon, 17 Sep 2007) $
# $LastChangedBy: blair@orcaware.com $
# Require at least this version of Orca.
require Orca 0.28.0
# base_dir is prepended to the paths find_files, html_dir, rrd_dir,
# and state_file only if the path does not match the regular
# expression ^\\?\.{0,2}/, which matches /, ./, ../, and \./.
base_dir /opt/orca/var/orca/rrd/javallator
# rrd_dir specifies the location of the generated RRD data files. If
# rrd_dir is a relative path, then it is made relative to base_dir if
# base_dir is set.
rrd_dir .
# state_file specifies the location of the state file that remembers
# the modification time of each source data file. If state_file is a
# relative path, then it is made relative to base_dir is base_dir is
# set.
state_file orca.state
# html_dir specifies the top of the HTML tree created by Orca.
html_dir /opt/html/javallator
# By default create .meta tag files for all PNGs or GIFs so that the
# web browser will automatically reload them.
expire_images 1
# Find files at the following times:
# 0:10 to pick up new orcallator files for the new day.
# 1:00 to pick up late comer orcallator files for the new day.
# 6:00 to pick up new files before the working day.
# 12:00 to pick up new files during the working day.
# 19:00 to pick up new files after the working day.
find_times 0:10 1:00 6:00 12:00 19:00
# This defines the email address of people to warn when a file that is
# being updated constantly stops being updated. For mathematical
# expressions use the word 'interval' to get the interval number for
# the data source.
warn_email root@localhost
late_interval interval + 30
# These parameters specify which plots to generate.
generate_hourly_plot 1
generate_daily_plot 1
generate_weekly_plot 1
generate_monthly_plot 1
generate_quarterly_plot 1
generate_yearly_plot 1
# This sets the HTML markup that is placed at the very top of every
# web page and is primarily used to display the site's logo.
html_page_header
Put your site's logo here.
# This sets the text, that should not be HTML markup, that is used
# only in the main index.html file. It is used in the
# element and also placed in the HTML body after the html_page_header
# in a element index.html file.
html_top_title Orca Host Status
# This sets the HTML markup that is placed at the bottom of every web
# page.
html_page_footer
These plots brought to you by your local system administrator.
# This defines where the find the source data files and the format of
# those files. Notes about the fields:
# find_files
# You'll notice that all but the first () has the form (?:...).
# This tells Perl to match the expression but not save the matched
# text in the $1, $2, variables. Orca uses the matched text to
# generate a subgroup name, which is used to place files into
# different subgroups. Here, only the hostname should be used to
# generate a subgroup name, hence all the (?:...) for matching
# anything else.
# interval
# The interval here must match the interval used by orcallator to
# record data. Do not change this, as it has an effect on the
# generated RRD data files.
group javallator {
find_files /home/matty/java/jvmstats/(.*)/(?:(?:javallator)|(?:percol))-\d{4}-\d+-\d+(?:-\d{3,})?(?:\.(?:Z|gz|bz2))?
column_description first_line
date_source column_name TIMESTAMP
interval 60
filename_compare sub {
my ($ay, $am, $ad) = $a =~ /-(\d{4})-(\d\d)-(\d\d)/;
my ($by, $bm, $bd) = $b =~ /-(\d{4})-(\d\d)-(\d\d)/;
if (my $c = (( $ay <=> $by) ||
( $am <=> $bm) ||
(($ad >> 3) <=> ($bd >> 3)))) {
return 2*$c;
}
$ad <=> $bd;
}
}
plot {
title moose Uptime
source javallator
data JVM_UPTIME
line_type area
data_type gauge
y_legend Total Time
data_min 0
plot_min 0
href http://www.orcaware.com/orca/docs/orcallator.html
}
plot {
title moose JIT compile time
source javallator
data JIT_TIME
data_type counter
line_type line2
legend Time spent in JIT compiler
y_legend Total Time
href http://www.orcaware.com/orca/docs/orcallator.html
data_min 0
}
plot {
title moose Threads
source javallator
data THREADS_TOTAL
data THREADS_ACTIVE
data_type counter
data_type gauge
line_type line2
legend New threads
legend Active threads
y_legend # threads
href http://www.orcaware.com/orca/docs/orcallator.html
data_min 0
}
plot {
title moose Classloader activity
source javallator
data CLASS_LOADS
data CLASS_UNLOADS
data_type counter
line_type line2
legend Classes loaded
legend Classes unloaded
y_legend Loads / Unloads
href http://www.orcaware.com/orca/docs/orcallator.html
data_min 0
}
plot {
title moose Garbage collection events
source javallator
data NG_GC_EVENTS
data OLD_GC_EVENTS
data_type counter
line_type line2
legend New generation
legend Old generation
y_legend # collections
href http://www.orcaware.com/orca/docs/orcallator.html
data_min 0
}
plot {
title moose Garbage collection time
source javallator
data NG_GC_TIME
data OLD_GC_TIME
data_type counter
line_type line2
legend New generation
legend Old generation
y_legend Time (ms)
href http://www.orcaware.com/orca/docs/orcallator.html
data_min 0
}
plot {
title moose Objects pending finalization
source javallator
data OBJECT_FINALIZATION
data_type counter
line_type line2
legend Pending finalization
y_legend # objects
href http://www.orcaware.com/orca/docs/orcallator.html
data_min 0
}
plot {
title moose Nonheap usage
source javallator
data NONHEAP_COMMITTED - NONHEAP_USED
data NONHEAP_USED
line_type area
line_type stack
legend Nonheap free
legend Nonheap used
y_legend Nonheap size
href http://www.orcaware.com/orca/docs/orcallator.html
data_min 0
}
plot {
title moose Heap usage
source javallator
data HEAP_USED
data HEAP_COMMITTED - HEAP_USED
line_type area
line_type stack
legend Heap used
legend Heap free
y_legend Heap size
href http://www.orcaware.com/orca/docs/orcallator.html
data_min 0
}
plot {
title moose Heap layout
source javallator
data CODE_CACHE_SIZE
data EDEN_POOL_SIZE
data SURVIVOR_SPACE_SIZE
data PERMANENT_GENERATION_SIZE
data OLD_GENERATION_SIZE
line_type area
line_type stack
legend Code cache
legend Eden
legend Survivor spaces
legend Permanent
legend Old generation
y_legend Pool size
href http://www.orcaware.com/orca/docs/orcallator.html
data_min 0
}