Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Monitoring

Connect monitoring integrations

Send Artie pipeline metrics to Datadog or over OpenTelemetry to New Relic, CloudWatch or Grafana, and page PagerDuty from alerts.

Integrations are in the Artie dashboard under Settings > Integrations. Only workspace admins can connect, manage, or disconnect them.

Datadog

Datadog setup starts in Datadog. On the Datadog row, select View setup guide, or open the Artie integration in Datadog for setup instructions and the available metrics.

OpenTelemetry

The OpenTelemetry integration sends Artie metrics to one destination at a time. The Datadog integration can stay connected alongside it.

DestinationProtocolAuthentication
New RelicOpenTelemetry Protocol (OTLP) over HTTPYour ingest license key
Amazon CloudWatchOTLP over HTTPAn IAM role in your AWS account that Artie assumes
Grafana (Grafana Cloud or self-hosted)Prometheus remote writeBasic auth, or a bearer token
Other OTLP endpoint (any OTLP/HTTP collector or vendor)OTLP over HTTPHeaders you provide

OpenTelemetry prerequisites

  • Workspace admin access in Artie.
  • Credentials for your destination, described in New Relic, Amazon CloudWatch, Grafana, or Other OTLP endpoint.
  • For a Grafana or OTLP URL you enter yourself: an HTTPS URL on port 443, with a publicly trusted certificate, reachable from the public internet.

Artie does not send metrics to private, loopback, or link-local addresses, and it does not follow redirects.

Connect a destination

  1. Open integrations

    In Artie, open Settings and select Integrations.

  2. Choose a destination

    On the OpenTelemetry row, select Connect, then choose New Relic, Amazon CloudWatch, Grafana, or Other OTLP endpoint.

  3. Enter credentials

    Fill in the fields for that destination. See New Relic, Amazon CloudWatch, Grafana, or Other OTLP endpoint.

  4. Connect

    Select Connect. Artie sends an empty request to check that the destination accepts the credentials. The check times out after 25 seconds.

The OpenTelemetry row then shows the connected destination. Metrics appear after the next export run, and the first run sends the previous 5 minutes.

Artie encrypts license keys, access tokens, and header values at rest. Credentials aren’t shown again after you connect: Manage shows only the destination and, for OTLP destinations, the endpoint.

To switch destinations, disconnect the current one first.

New Relic

  1. In New Relic, create or copy an ingest license key for the account that should receive Artie metrics.
  2. In the Connect OpenTelemetry dialog, choose New Relic.
  3. Select US or EU to match your New Relic data center.
  4. Paste the key into License key (ingest) and select Connect.

Artie sends the key as the api-key header to https://otlp.nr-data.net/v1/metrics (US) or https://otlp.eu01.nr-data.net/v1/metrics (EU). For more on keys, see New Relic API keys.

Amazon CloudWatch

Artie sends metrics to CloudWatch’s OTLP endpoint, https://monitoring.<region>.amazonaws.com/v1/metrics, and signs each request with credentials from an IAM role that you create. You don’t share AWS access keys with Artie.

  1. Choose CloudWatch and a region

    In the Connect OpenTelemetry dialog, choose Amazon CloudWatch and select the AWS region that should receive metrics. GovCloud, China, and isolated (ISO) regions are not supported.

  2. Create the IAM role

    Create an IAM role with the trust policy shown in the dialog. It lets Artie assume the role only when it presents the external ID shown in AWS external ID:

    JSON
    {
      "Version": "2012-10-17",
      "Statement": [{
        "Effect": "Allow",
        "Principal": {
          "AWS": "arn:aws:iam::788826912768:user/ci"
        },
        "Action": "sts:AssumeRole",
        "Condition": {
          "StringEquals": {
            "sts:ExternalId": "AWS_EXTERNAL_ID"
          }
        }
      }]
    }

    AWS_EXTERNAL_ID is the value in AWS external ID. The dialog fills in a random external ID. To use your own, enter 2 to 1,224 letters, digits, or +=,.@:/-_. The trust policy in the dialog updates to match.

  3. Attach the permissions policy

    Attach this permissions policy to the role:

    JSON
    {
      "Version": "2012-10-17",
      "Statement": [{
        "Effect": "Allow",
        "Action": "cloudwatch:PutMetricData",
        "Resource": "*"
      }]
    }
  4. Connect

    Paste the role’s ARN into AWS role ARN, in the form arn:aws:iam::<account>:role/<name>. Confirm AWS external ID matches the trust policy, then select Connect.

CloudWatch bills metrics sent to its OTLP endpoint per GB ingested, with no per-metric charge. See OTel metrics pricing and storage for pricing, and CloudWatch OTLP endpoints for CloudWatch’s OTLP support and limits.

Grafana

Artie sends metrics to Grafana Cloud Metrics, or to a self-hosted Prometheus-compatible endpoint, with Prometheus remote write. You do not need to run Prometheus, Grafana Alloy, or a collector.

Grafana Cloud

  1. In the Grafana Cloud Portal, select Details on your stack’s Prometheus card.
  2. Copy the remote-write URL, which ends in /api/prom/push, and the instance ID, which Grafana uses as the username.
  3. Create an access policy token with the metrics:write scope, then copy the token.
  4. In the Connect OpenTelemetry dialog, choose Grafana.
  5. Enter the Remote write URL, Username or instance ID (required for Grafana Cloud), and Access token or password, then select Connect.

After the next export run, query the artie_* metrics in Grafana Cloud.

Self-hosted Prometheus remote write

Artie also sends metrics to a self-hosted remote-write endpoint, such as Grafana Mimir, Prometheus with the remote-write receiver enabled, or VictoriaMetrics. Query them from your own Grafana. Fill in the same three fields:

  • Remote write URL: your endpoint’s HTTPS push URL, for example https://mimir.example.com/api/v1/push.
  • Username or instance ID (required for Grafana Cloud): the basic-auth username, without a :. Leave it empty to send a bearer token instead.
  • Access token or password: the basic-auth password or bearer token.

Import the Artie dashboard

Artie’s Datadog integration dashboard organizes rows processed, performance, and database-health metrics. The Grafana dashboard uses the same six pipeline metrics.

  1. Download the Artie Grafana dashboard JSON.
  2. In Grafana, open Dashboards and select New > Import.
  3. Upload the JSON file, select the Prometheus data source that receives Artie metrics, and select Import.
  4. Open the imported Artie Overview dashboard. It includes rows processed, ingestion lag, row lag, flush time, flush count, and replication slot size panels.

The dashboard groups series by the labels pipeline, table, operation, reason, and slotname. It includes no credentials, data-source URL, or customer identifiers.

Other OTLP endpoint

Use this for an OpenTelemetry Collector or any vendor that accepts OTLP over HTTP with protobuf encoding.

  1. In the Connect OpenTelemetry dialog, choose Other OTLP endpoint.
  2. Enter the full OTLP/HTTP metrics endpoint, including the path, for example https://collector.example.com/v1/metrics. Artie uses the URL as entered.
  3. Enter each authentication header in Header 1 name and Header 1 value, for example Authorization and Bearer <token>.
  4. To send more than one header, select Add header.
  5. Select Connect.

The endpoint URL must not include credentials, a query string, or a fragment. Header names must be unique, ignoring case, and every header needs both a name and a value.

An OpenTelemetry Collector usually listens on port 4318. Because Artie only sends to port 443, put the collector’s OTLP/HTTP receiver behind an HTTPS listener on port 443.

Exported metrics

Artie exports the same six pipeline metrics to every destination, plus the Managed Kafka metrics below when your workspace has an active cluster. OTLP destinations receive dotted names. Grafana receives Prometheus-style names.

MetricOTLP nameGrafana nameOTLP type
Rows processedartie.rows_processedartie_rows_processedSum (delta, monotonic)
Ingestion lagartie.ingestion_lag_msartie_ingestion_lag_msGauge
Row lagartie.row_lagartie_row_lagGauge
Flush timeartie.flush_time_msartie_flush_time_msGauge
Flush countartie.flush_countartie_flush_countSum (delta, monotonic)
Replication slot sizeartie.replication_slot_size_mbartie_replication_slot_size_mbGauge

Each data point carries the pipeline dimensions that apply to it, as OTLP attributes or Grafana labels. They are pipeline, source, destination, data_plane, environment, table, operation, reason (the flush reason), and slotname. Each point also carries deployuuid (the pipeline’s ID) and deployment (the same value as pipeline). The operation values are create, update, delete, backfill, and other. OTLP requests set the resource attribute service.name to artie.

If your workspace has an active Managed Kafka cluster, Artie also exports six cluster metrics. They leave out Kafka’s internal topics.

MetricOTLP nameGrafana nameOTLP typeLabels
Messages inartie.kafka_messages_inartie_kafka_messages_inSum (delta, monotonic)kafka_cluster, topic
Bytes inartie.kafka_bytes_inartie_kafka_bytes_inSum (delta, monotonic)kafka_cluster, topic
Bytes outartie.kafka_bytes_outartie_kafka_bytes_outSum (delta, monotonic)kafka_cluster, topic
Under-replicated partitionsartie.kafka_under_replicated_partitionsartie_kafka_under_replicated_partitionsGaugekafka_cluster
Offline partitionsartie.kafka_offline_partitionsartie_kafka_offline_partitionsGaugekafka_cluster
Consumer lagartie.kafka_consumer_lagartie_kafka_consumer_lagGaugekafka_cluster, consumergroup, topic

For OTLP destinations, every sum is a one-minute delta. Each point is the total for that minute, so add points over time to get totals. An OTLP request holds at most 1,000 data points.

Your destination must accept delta temporality; New Relic does. If an OpenTelemetry Collector forwards to a backend that only accepts cumulative sums, add the delta_to_cumulative processor (deltatocumulative in Collector versions before v0.158.0).

Five of the six pipeline metrics carry a table label, so each table adds time series, or custom metrics, in your destination. Review your plan and usage before connecting pipelines with many tables.

This integration sends metrics only, not logs or traces.

Disconnect

  1. In Settings > Integrations, select Manage on the OpenTelemetry row.
  2. Select Disconnect, then confirm with Disconnect.

Artie stops future exports. Also revoke the license key, IAM role, or token in your destination.

Troubleshoot OpenTelemetry exports

Match the error or symptom to its fix:

Error or symptomFix
failed to validate OpenTelemetry destination or failed to validate remote write credentialsConfirm the endpoint is publicly reachable over HTTPS on port 443, returns no redirect, and accepts the credentials. For Grafana Cloud, confirm the instance ID and token come from the same stack.
invalid endpoint or invalid remote write URLUse an https URL on port 443 without credentials, a query string, or a fragment.
OpenTelemetry and Grafana can't both be connected: disconnect the current one firstDisconnect the current destination, then connect the new one.
CloudWatch fails to connectConfirm the role’s trust policy uses the external ID in AWS external ID, and the role has cloudwatch:PutMetricData.
Another OTLP endpoint fails to connectConfirm the endpoint accepts OTLP/HTTP with protobuf encoding at the exact URL you entered.
Metrics stop appearingCheck that the key, token, or role still exists, then disconnect and connect again.

PagerDuty

Artie opens a PagerDuty incident on one of your services when a custom monitor with Also notify PagerDuty turned on fires. Artie sends each alert with critical severity and resolves it when the monitor recovers.

When you connect, Artie uses your API key to list your services. It then adds an integration named Artie - Events V2 API to the service you pick. Artie keeps the key, encrypted at rest, to show the connected service and to remove that integration when you disconnect.

PagerDuty prerequisites

  • Workspace admin access in Artie.
  • A general access REST API key (recommended), or a personal API user token if you aren’t a PagerDuty admin and your account has Advanced Permissions.

Only a PagerDuty Admin or Account Owner can create a general access REST API key, under Integrations > Developer Tools > API Access Keys > Create New API Key. Leave Read-only API Key unchecked, because Artie has to add an integration to your service.

If your PagerDuty account has Advanced Permissions, create a personal API user token under your user icon > My Profile > User Settings > Create API User Token. It has the same permissions as your PagerDuty user, so your role must let you edit the service’s integrations.

If you can’t create either, ask a PagerDuty Admin or Account Owner to create a general access key for you.

Connect PagerDuty

  1. Open integrations

    In Artie, open Settings and select Integrations.

  2. Load your services

    On the PagerDuty row, select Connect. Paste the key into API key and select Load services.

  3. Pick a service

    In Service, choose the service that should receive alerts, then select Connect. The PagerDuty row shows the service name.

  4. Send a test alert

    Select Manage > Send test alert. Check that an incident named [TEST] Artie alert, followed by the date, opens on that service.

  5. Turn it on in your monitors

    In each custom monitor that should page you, turn on Also notify PagerDuty. The checkbox appears only while PagerDuty is connected.

Disconnect PagerDuty

Select Manage on the PagerDuty row, select Disconnect, then confirm with Disconnect. Artie removes its integration from your service. Also revoke the API key in PagerDuty.

Artie blocks the disconnect when PagerDuty is your only alert channel. Add an alert email or webhook first.

Was this page helpful?