Documentation / Product / Features / Account Management

Monitoring Lytics

Lytics provides a variety of important metrics that can be consumed by downstream monitoring tools, such as Google Stackdriver or New Relic. Using industry-standard, inexpensive tools that are built for alerting and monitoring, you can have visibility into Lytics within your existing ecosystem.

Consuming Metrics Downstream

Once you have connected Lytics to your monitoring tool, there are a variety of ways you can apply metrics from Lytics to support your operational and IT audit processes. Below are a few examples:

  • Active monitoring - defined by alerting, requires additional configuration within your downstream tools to monitor Lytics.
  • Oncall distribution lists - control who within your operational teams to inform.
  • Quiet-hours - manage within a tool where you are already doing that for other metrics.
  • Correlation of metrics - show existing metrics (e.g. website performance) in the context of Lytics metrics.
  • Operational users - watch for signals without having to create a Lytics admin user account.
  • Anomaly detection - use threshold-based alerts that most monitoring tools have that go beyond the capabilities Lytics provides natively.

Platform Monitoring via Metric API

The Metric API provides access to a variety of metrics that are recorded in the Lytics platform. With this API, you can access segment size metrics, events received per hour, and many workflow specific metrics.

  • Heartbeats: metrics with a value of 1 for "up & healthy" and 0 for "not healthy" (or missing).
monitoring_heartbeatA simple 1 (up) for each minute a workflow is running, indicating the overall integrations platform.Every minute*
collection_countMetric for the count (gauge) for the 1 minute window in total events ingressed (web collection or import workflows).Every minute
stream_countMetric per stream for count of events seen this cycle.Every hour
Coming SoonLytics has several more metrics (API Status Heartbeat, Backlog/Latency) coming soon, or via a request.N/A

*Availability of Metrics: the Lytics Metric API, along with all Lytics export workflows, run inside of Lytics' work runtime system in Kubernetes. During deploys or scaling events, these processes can move between servers which can result in 1 or 2 minute gaps in metrics. Therefore, alerts on single heartbeat misses are not recommended. Instead, look for a missing window of 5.

Account Activity Monitoring via System Events API

System Events provide visibility into system changes such as creating segments, updating schema, deleting items, new authorizations added, and users added to roles. This is a wealth of audit data about changes in your account. These events are shown in many different places inside Lytics, such as the history of work sync events, status changes, failures of work due to expiring authorization, or password changes on source for OAuth tokens. See our System Events API documentation for more information.

Status Events Monitoring via Webhooks

Work status events can be observed by creating a webhook subscription which POSTs data (or JSON) to a specific URL. These updates can be consumed downstream for your monitoring use cases, like email alerting and reporting. Some common examples include listening for audience exports that have been created/updated/deleted, or being notified any time a batch import or export for a given integration fails.

These events have three attributes used for filtering:

  • Subject Type: what the event is about, such as work, workflow, user, campaign. See the list of subject types below.
  • Subject ID: identifier of a subject, such as work ID, workflow ID, campaign ID, etc.
  • Verb: action described by the event that was performed on a subject. See the list of available verbs below.
synccompleteFor completion of one synchronization cycle. Emitted when a work cycle finishes successfully. Shown at the end when there are multiple cycles per scheduled sync, or when there is a sleep cycle.Real-time
updateFor when work configuration is modified. May occur multiple times per work.Real-time, batch
createdFor work creation, occurs only once per work.Real-time, batch
deletedFor when a work is deleted.Real-time, batch
syncedFor the completion of one sync unit (multiple units may happen per sleep-cycle).Real-time
completedFor the final successful completion of a work, occurs once per work.Batch
startedFor the first-time start of work, occurs once per work.Real-time, batch
failedFor the final failure of a work, occurs once per work unless work is bounced.Real-time, batch
syncingFor the start of a series of sync cycles for a work.Real-time

Subject Types

  • account
  • auth
  • campaign
  • data
  • entity
  • experience
  • journey
  • program
  • provider
  • query
  • report
  • rollup
  • schema
  • schematable
  • scoring
  • segment
  • segmentcollection
  • segmentml
  • stream
  • subscription
  • topic-document
  • user
  • variation
  • work
  • workflow

To subscribe to a Lytics webhook, please contact your Account Manager for more information.