Skip to content

imcf/citrix-collector

Repository files navigation

Prometheus collector for Citrix XenDesktop metrics

A PowerShell based collector to get metrics from a Citrix XenDesktop instance and format them in a way they can be digested by the windows_exporter for Prometheus using its textfile collector.

Installation

  1. Copy the entire directory to a suitable place, e.g. C:\Tools\citrix-collector\ may be a good location.
  2. Make sure to have the Citrix Broker PowerShell snap-in installed. You can find it in the CVAD installation ISO in the \x64\Citrix Desktop Delivery Controller\ folder. Just extract Broker_PowerShellSnapIn_x64.msi from the ISO (the other snap-ins are not required) and install it via msiexec.exe /i.
  3. Download the WinSW executable and place it inside the citrix-collector folder, rename it to winsw.exe.
  4. Copy winsw-example.xml to winsw.xml and adjust if necessary. Most likely you'll want to uncomment the <serviceaccount> section and set the account used for running the service. Please note that the account needs to have appropriate permissions to query the Delivery Controller for collecting the metrics.
  5. Run .\winsw.exe install in the collector directory to register the service.
  6. Make sure the target location (textfile_inputs) has its permission set in a way so the account used to run the service is allowed to write there (or at least the configured output file).
  7. Finally run Start-Service citrix_collector to start it.
  8. Watch the log files and / or the generated Prometheus textfile.

About

PowerShell based collector of Citrix metrics for Prometheus (creating a textfile for the windows_exporter).

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors