Carbonator
Windows service that collects performance counters and reports metrics to a Graphite server
Install / Use
/learn @test-in-prod/CarbonatorREADME
⚠️ This repository is archived
Carbonator was a project that started before modern tools like telegraf were available. This repository is now archived and code will remain here for a little while longer before being deleted.
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
Via command-line (CMD or PowerShell)
[Skip 1-3 if you already have nuget installed]
- Carbonator uses nuget package manager for log4net and any future external packages
- If you don't have nuget, see https://docs.nuget.org/consume/installing-nuget (command line utility)
- Install nuget above and add path to nuget.exe to your PATH environment variable
- Start your command prompt/powershell in directory where Carbonator.sln is located
- Run
nuget restore Carbonator.slnto restore packages - Run
build.cmdto compile Carbonator - The binaries should be present in
Carbonator\bin\Releasedirectory
Via Visual Studio (2013/2015/CE)
- Open Carbonator.sln
- Build Solution (F6)
- The binaries should be present in
Carbonator\bin\Releasedirectory
Installation
Copy binaries to a directory you want application to run from. (e.g. C:\Program Files\Carbonator)
Note: if you intend to run Carbonator as a service, do not install it within a user profile directory (e.g. C:\Users\<username>\...)
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
- Run
install-service.cmdto install Carbonator Windows Service. (Run as administrator from the directory that contains Carbonator binaries). - Run
net start carbonatorto 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 thepathsetting which will be replaced with the name of the current computer when metric is reported. Use%host%to force the hostname in lowercase.category= Performance Counter categorycounter= Performance Counter nameinstance= 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.
Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
