cxdot-admin command-line tool,
which you can use to query the debug interface.
Query the debug interface
The steps to query the debug interface vary based on the environment where the CXDOT Collector is deployed.Kubernetes
Each of the CXDOT Collector’s Pods exposes its own debug interface. To query the debug interface for a Pod, use the following command:POD: The name of the Pod whose debug interface you want to query.RESOURCE: The diagnostic resource you want to retrieve (for example,health/component_status.json). If you omit this value, the command returns a list of the available diagnostic resources.
Linux
To query the CXDOT Collector’s debug interface on Linux, follow these steps.-
In your configuration file, configure a socket path:
Replaceconfig.yaml
PATHwith the complete path where the CXDOT Collector should create the socket. This must be a Unix-style absolute path that begins with/. The nearest existing parent directory must be writable by the Collector process.If the CXDOT Collector runs as the root user, it can write to the default socket path at/var/run/cxdot-collector/debug.sock. -
Use the following command to query that socket:
Replace these values:
RESOURCE: The diagnostic resource you want to retrieve (for example,health/component_status.json). If you omit this value, the command returns a list of the available diagnostic resources.PATH: The socket path that you configured in the previous step.
If you’re using the default socket path, omit the--socket PATHflag.
Windows
To query the CXDOT Collector’s debug interface on Windows, follow these steps.-
In your configuration file, configure a socket path:
Replaceconfig.yaml
PATHwith the complete path where the CXDOT Collector should create the socket. This must be a Unix-style absolute path that begins with/. The nearest existing parent directory must be writable by the Collector process. For example, if the Collector runs on driveC:, the socket value/cxdot-debug/debug.sockresolves toC:\cxdot-debug\debug.sock. -
Use the following command to query that socket:
Replace
RESOURCEwith the diagnostic resource you want to retrieve (for example,health/component_status.json). If you omit this value, the command returns a list of the available diagnostic resources.
Disable debugging
The debug interface is enabled by default. To disable it, setdebug.enabled to
false in your configuration file:
- Helm values file
- Configuration file
values.yaml