Skip to main content

CollectorTarget

Resource CollectorTarget in pulumi-logtail.
4 min read

Resource CollectorTarget in pulumi-logtail.

Pulumi type: logtail:index/collectorTarget:CollectorTarget.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
apiKeystringnoAPI key for authentication. Used by elasticsearch.
collectorHoststringnoHostname of the collector host running this process. Use this for process kinds (nginx, apache, kafka, prometheus, traefik). Must match the hostname of a collectorHost reporting to this collector. For database kinds use host instead.
collectorIdstringyesThe ID of the collector this target belongs to.
enabledbooleannoWhether the collector should scrape this target. Defaults to true server-side. Setting to false puts the target into disabled status - it remains configured but is not scraped.
endpointstringnoFull scrape URL. Required for prometheus.
hoststringnoHostname or IP of the database server. Use this for database kinds (postgres, pgbouncer, mysql, redis, mongodb, memcached, elasticsearch). For process kinds use collectorHost instead.
kindstringyesThe target kind. One of: postgres, pgbouncer, mysql, redis, mongodb, memcached, elasticsearch, nginx, apache, kafka, prometheus, traefik.
listenIpstringnoIP address the process listens on, as seen from the collector host. Used for nginx, apache, kafka, traefik.
passwordstringnoPassword for authentication. Used by database kinds.
portnumbernoPort the target listens on. Required for database kinds and most process kinds; not used by prometheus (use endpoint instead).
schemestringnoURL scheme. Required for elasticsearch. Valid values: http, https.
servicestringnoFriendly name for the target. Required for process kinds.
sslModestringnoSSL mode. Required for postgres-family kinds. Valid values: disable, require, verify-ca.
tlsstringnoTLS mode. Required for mysql. Valid values: false, true, skip-verify, preferred.
usernamestringnoUsername for authentication. Used by database kinds.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
apiKeystringnoAPI key for authentication. Used by elasticsearch.
collectorHoststringnoHostname of the collector host running this process. Use this for process kinds (nginx, apache, kafka, prometheus, traefik). Must match the hostname of a collectorHost reporting to this collector. For database kinds use host instead.
collectorIdstringnoThe ID of the collector this target belongs to.
containerstringyesContainer the target was detected in, if any.
createdAtstringyesThe time when this target was created.
enabledbooleannoWhether the collector should scrape this target. Defaults to true server-side. Setting to false puts the target into disabled status - it remains configured but is not scraped.
endpointstringnoFull scrape URL. Required for prometheus.
hoststringnoHostname or IP of the database server. Use this for database kinds (postgres, pgbouncer, mysql, redis, mongodb, memcached, elasticsearch). For process kinds use collectorHost instead.
kindstringnoThe target kind. One of: postgres, pgbouncer, mysql, redis, mongodb, memcached, elasticsearch, nginx, apache, kafka, prometheus, traefik.
listenIpstringnoIP address the process listens on, as seen from the collector host. Used for nginx, apache, kafka, traefik.
passwordstringnoPassword for authentication. Used by database kinds.
portnumbernoPort the target listens on. Required for database kinds and most process kinds; not used by prometheus (use endpoint instead).
schemestringnoURL scheme. Required for elasticsearch. Valid values: http, https.
servicestringnoFriendly name for the target. Required for process kinds.
sslModestringnoSSL mode. Required for postgres-family kinds. Valid values: disable, require, verify-ca.
statusstringyesCurrent status of the target as reported by the collector.
tlsstringnoTLS mode. Required for mysql. Valid values: false, true, skip-verify, preferred.
updatedAtstringyesThe time when this target was last updated.
usernamestringnoUsername for authentication. Used by database kinds.