Skip to content

Windows service that collects performance counters and reports metrics to a Graphite server

License

Notifications You must be signed in to change notification settings

torbiak/carbonator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carbonator Service

A simple Windows Service that collects Performance Counters and reports metrics to a Graphite server.

See releases for change log/version history.

Compiling

Run build.cmd from within directory where Carbonator.sln is located.

The binaries should then be present in Carbonator\bin\Release directory.

Installation

Copy binaries to wherever directory you want application to run from. (e.g. C:\Program Files\Carbonator)

Console Mode

This mode is useful if you want to try out configuration first and see metrics reported.

Run Crypton.Carbonator.exe --console --verbose from Windows command line (or PowerShell).

Windows Service Mode

  1. Run install-service.cmd to install Carbonator Windows Service. (Run as administrator from the directory that contains Carbonator binaries).
  2. Run net start carbonator to start Carbonator service, or use Services console (services.msc)

Carbonator uses NETWORK SERVICE Windows NT account.

Configuration

Carbonator configuration is contained within the Crypton.Carbonator.exe.config XML file.

You will need to adjust /configuration/carbonator/graphite XML element settings to wherever your Graphite server is and port (if different).

The /configuration/carbonator/counters list can be used to select which performance counters are monitored and reported. You can use Windows Performance Monitor perfmon.msc to determine which counters you may be interested (and which are available).

The configuration for each performance counter element is self explanatory:

  • path = the Graphite/Carbon metric path that will be reported. You can use %HOST% special string in the path setting which will be replaced with the name of the current computer when metric is reported.
  • category = Performance Counter category
  • counter = Performance Counter name
  • instance = Performance Counter instance, needed by certain counters such as Processor (_Total to represent overall CPU usage or by specific CPU instead). For counters that do not have an instance, leave this attribute empty or remove it entirely.

Some sample performance counters are provided in default configuration file.

You may need to adjust defaultCulture attribute if your Windows installation is localized differently since performance counter names will be translated.

It may be necessary to add NETWORK SERVICE (or another user account Carbonator is running as) to Performance Log Users group or certain counters may not load or report zero for all values.

Miscellaneous

Carbonator will report errors in Windows Event Log (Application) under carbonator event source.

Default counter sampling is every 1000ms, with reports going out every 5000ms. Pickle protocol is not used, metrics are reported individually as-is.

Carbonator is licensed under MIT License.

About

Windows service that collects performance counters and reports metrics to a Graphite server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 97.7%
  • Batchfile 2.3%