debug.disabled
to true in the Collector manifest.
In Collector version 0.118.0 and later, debug endpoints are bound to loopback
or localhost by default. For more information about the settings to override
this default behavior, see Debug configuration.
Access the debug endpoints
All endpoints except/set_log_level are clickable links on the /debug HTML page,
and are also directly accessible with a GET request.
-
In the Collector manifest, enable Prometheus discovery and configure at least one
scrape configuration:
You must complete this step to access the debug endpoints, regardless of whether you’re using the Collector to scrape Prometheus endpoints for metrics.
-
To establish a connection with the Collector, use a method compatible with your
Collector installation method.
- Kubernetes
- Standalone
For Kubernetes installations, set up port forwarding to access the debug endpoint:Replace the following:POD_NAME: The name of the Kubernetes pod where your Collector instance is running.LISTEN_PORT: The port where the Collector serves debug requests. The value ofdebug.listenAddressdefines this port. If no value is set, the default port is3030.
-
Open your browser and navigate to
HOSTPORT/debug. ReplaceHOSTPORTwith the relevant value based on the method and configuration settings you used in step 2:- Kubernetes
- Standalone
ReplaceHOSTPORTwith the valuelocalhost:3030.To make aGETrequest to any debug endpoint, queryhttp://HOSTPORT/debug/<endpoint>, replacingHOSTPORTwith the relevant value. - Click one of the available endpoints from the list.
Available debug endpoints
-
/debugDisplays an HTML page that lists all debug endpoints, each of which is accessible by clicking an endpoint from the list. This page also displays a table of active scrape targets, which includes two columns:- Target Info: Lists configuration details for each scrape target.
- Last Scrape Result: For each scrape outcome, lists information about that outcome. If available, a decoded body sample shows a portion of the most recent scrape output.
-
/debug/bundleDownloads atar.gzfile that contains the output of all debug endpoints. The file format isnode-name--date--time.tar.gz, wherenode-nameis the name of the node the Collector runs in. -
/debug/collector_runtime_memory_statsReturns runtime memory metrics for the Collector. -
/debug/config_dumpReturns a JSON representation of the Collector configuration settings defined in theraw_config, combined with the values for those settings calculated at runtime. Responses from this endpoint might contain sensitive credentials. In Collector version 0.118.0 and later, this endpoint is disabled by default. To enable it, setdebug.enableRawConfigto true. -
/debug/endpoint_slicesReturns a JSON list of all Kubernetes EndpointSlices the Collector detects. -
/debug/job_configsReturns a JSON list of all computed Kubernetes jobs created from the Collector configuration. -
/debug/podsReturns a JSON list of all Kubernetes pods the Collector detects. -
/debug/pprofServes a protocol buffer of the Collector in pprof format. -
/debug/raw_configReturns the raw Collector configuration file as-is, without runtime-computed values. Responses from this endpoint might contain sensitive credentials. In Collector version 0.118.0 and later, this endpoint is disabled by default. To enable it, setdebug.enableRawConfigto true. -
/debug/service_monitorsReturns a JSON list of all dynamic service monitor configurations the Collector tracks. -
/debug/set_log_levelAccepts aPUTrequest to temporarily change the logging level of the Collector for a specified duration. Refer to temporarily change the Collector log level for more information. -
/debug/servicesReturns a JSON list of all Kubernetes Services the Collector detects. -
/debug/targetsReturns a JSON list of key/value pairs that represent all Kubernetes targets the Collector monitors. The first element is the Collector configuration, followed by a list of all scrape configurations created from the configuration. The endpoint doesn’t display Graphite targets. -
/debug/versionReturns a JSON representation of the Collector version information. This is the same information the Collector displays at startup.
Debug configuration
The following Collector configuration settings control the behavior of debug endpoints.| Setting | Description | Default |
|---|---|---|
debug.disabled | If true, disables all debug endpoints. Requires Collector version 0.117.0 or later. | false |
debug.exposeDebugPagesOnAllInterfaces | If true, debug endpoints are served on all interfaces that the Collector listens to. Chronosphere recommends against enabling this setting in production environments. | false |
debug.listenAddress | Overrides the default address and port for debug endpoints. This value is distinct from the global listenAddress. | none |
debug.enableRawConfig | If true, enables the /debug/config_dump and /debug/raw_config endpoints. | false |

