Query parameters
Page number for pagination.
Number of items per page. Default 50, maximum 250.
Headers
Bearer $TOKEN
Returns a paginated list of all targets belonging to a collector.
Query parameters
Page number for pagination.
Number of items per page. Default 50, maximum 250.
Headers
Bearer $TOKEN
Returns a paginated list of the collector's targets.
Response body
Response attributes
The ID of the target.
Always collector_target.
The target type: postgres, pgcat, pgbouncer, mysql, redis, mongodb, memcached, elasticsearch, nginx, apache, kafka, node_exporter, prometheus, traefik or kube_state_metrics.
The hostname or IP address of the target.
The port of the target, or null when not set, present for every kind except prometheus.
The service name of the target, present only for nginx, apache, kafka, prometheus and traefik.
The IP address the process listens on, or null when not set, present only for nginx, apache, kafka and traefik.
The full scrape URL, or null when not set, present only for prometheus.
The connection scheme, http or https, present only for elasticsearch.
The username used to connect, or null when not set, present only for postgres, pgbouncer, mysql, redis, mongodb, memcached and elasticsearch.
The SSL mode, disable, require or verify-ca, or null when not set, present only for postgres and pgbouncer.
The TLS mode, false, true, skip-verify or preferred, or null when not set, present only for mysql.
The connection status: pending, up, unreachable, down, invalid_credentials, configuration_required, disabled or removed.
Whether the target is enabled, false when its status is disabled.
The container the target runs in, or null when it wasn't discovered in a container.
When the target was created, as an ISO 8601 date-time in UTC.
When the target was last updated, as an ISO 8601 date-time in UTC.
URL of the first page. Read more about pagination.
URL of the last page.
URL of the previous page, or null on the first page.
URL of the next page, or null on the last page.
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.