Confluent Cloud Metrics
Overview
Collect Confluent Cloud metrics in Coralogix with a Cloud API key and the coralogix_integration Terraform resource. Coralogix reads the Confluent Metrics API every minute and keeps Confluent's metric names.
For prerequisites, limits, and troubleshooting, see Confluent Cloud Metrics.
How to use with Terraform
To deploy this integration using Terraform, you can use the coralogix_integration resource provided by the Coralogix Terraform provider. Below is an example configuration:
resource "coralogix_integration" "confluent-cloud-metrics-collector" {
integration_key = "confluent-cloud-metrics-collector"
version = "1.0.0"
parameters = {
IntegrationName = "Confluent Cloud Metrics"
ApplicationName = "confluent-cloud"
SubsystemName = "metrics"
ApiKey = "<ApiKey>"
ApiSecret = "<ApiSecret>"
ResourceSelection = "All"
# Optional. The ID lists apply only with ResourceSelection = "Explicit".
# KafkaClusterIds = ["lkc-abc123"]
# ConnectorIds = ["lcc-abc123"]
# KsqlDbIds = ["lksqlc-abc123"]
# SchemaRegistryIds = ["lsrc-abc123"]
# ComputePoolIds = ["lfcp-abc123"]
# MetricAllowlist = ["confluent_kafka_server_received_bytes"]
# ResourceTags = ["lkc-abc123:env=prod"]
}
}
Replace the placeholder values with your actual configuration parameters. Refer to the parameter table below for required fields and their descriptions.
Revisions
Initial release
| Name | Type | Required | Description |
|---|---|---|---|
| ApiKey | String | Yes | A Cloud API key (resource management scope, not a cluster key) of a service account with the MetricsViewer role. |
| ApiSecret | String | Yes | The secret of the Cloud API key. |
| ApplicationName | String | Yes | The application name that the integration will be used with. |
| IntegrationName | String | Yes | |
| ResourceSelection | String | Yes | All collects every resource the service account can see and picks up new ones automatically; Explicit collects only the resources whose IDs you enter in the ID fields below; enter at least one. |
| SubsystemName | String | Yes | The subsystem name that the integration will be used with. |
| ComputePoolIds | List | No | Flink compute pool IDs (they start with lfcp-), e.g. lfcp-abc123. Shown on the compute pool's page in Confluent Cloud, or listed by confluent flink compute-pool list. |
| ConnectorIds | List | No | Fully managed connector IDs (they start with lcc-), e.g. lcc-abc123. Shown on the connector's page in Confluent Cloud, or listed by confluent connect cluster list. Custom connectors (clcc-) are not collected. |
| KafkaClusterIds | List | No | Kafka cluster IDs (they start with lkc-), e.g. lkc-abc123. Shown on the cluster's page in Confluent Cloud, or listed by confluent kafka cluster list. |
| KsqlDbIds | List | No | ksqlDB application IDs (they start with lksqlc-), e.g. lksqlc-abc123. Shown on the ksqlDB cluster's page in Confluent Cloud, or listed by confluent ksql cluster list. |
| MetricAllowlist | List | No | Optional. When set, only these metrics are collected. Use the export name, e.g. confluent_kafka_server_received_bytes, or Confluent's metric name, e.g. io.confluent.kafka.server/received_bytes. Use it to limit high-cardinality metrics. |
| ResourceTags | List | No | Optional. Labels added to the metrics of one resource, as resource_id:key=value, e.g. lkc-abc123:env=prod. The resource ID is a Kafka cluster (lkc-), connector (lcc-), ksqlDB (lksqlc-), Schema Registry (lsrc-) or Flink compute pool (lfcp-) ID. Keys use letters, digits and underscores, do not start with a digit or with two underscores. Confluent's own labels are never replaced. Up to 100 tags. |
| SchemaRegistryIds | List | No | Schema Registry cluster IDs (they start with lsrc-), e.g. lsrc-abc123. Shown on the environment's Schema Registry page in Confluent Cloud, or by confluent schema-registry cluster describe. |
Last updated on