# dokploy_telemetry_provider (Data Source)

Looks up a telemetry provider that already exists in Dokploy (Settings > Logs & Metrics):

```terraform
data "dokploy_telemetry_provider" "loki" {
  name = "loki"
}
```

Dokploy never returns the endpoint, the API key, or the API secret of a provider, so the data source does not expose them.

~> Dokploy does not enforce name uniqueness. If two telemetry providers share a name, this data source fails instead of a guess. Look the record up by `id` in that case.

## Example Usage

```terraform
data "dokploy_telemetry_provider" "example" {
  id = "your-telemetry-provider-id"
}

data "dokploy_telemetry_provider" "loki" {
  name = "loki"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `id` (String) Telemetry provider id. Set it for a lookup by id, or leave it unset and set `name`.
- `name` (String) Display name as shown in Dokploy. Set exactly one of `id` or `name`.

### Read-Only

- `created_at` (String) Creation timestamp from the server.
- `enabled` (Boolean) Whether the Vector agents send data to the destination.
- `extra_config` (Map of String) Fields that only some types use, for example `region` or `tenantId`.
- `organization_id` (String) Id of the organization that owns the provider.
- `provider_type` (String) Destination type, for example `loki` or `datadog`.
- `signals` (List of String) Data that the Vector agent sends: `logs`, `metrics`, or both.