Skip to content

Conversation

@ulemons
Copy link
Contributor

@ulemons ulemons commented Dec 3, 2025

PR: Dashboard Total Metrics Sink + Kafka Connect Image Update

Overview

This pull request introduces improvements to the data pipeline and infrastructure stability:

🚀 Changes

  • Added a new sink pipeline to aggregate and expose total dashboard metrics
  • Updated the Kafka Connect Docker image to a more reliable and compatible version

Note

Introduces a Tinybird sink that computes and exports global CDP dashboard totals.

  • Adds services/libs/tinybird/pipes/cdp_dashboard_metrics_total_sink.pipe with node cdpDashboardMetricsTotal to aggregate activitiesTotal, activitiesLast30Days, membersTotal, membersLast30Days, organizationsTotal, and organizationsLast30Days using cdp_member_segment_aggregates_MV and cdp_organization_segment_aggregates_MV
  • Exports results to Kafka (lfx-oracle-kafka-streaming) as JSON on topic cdp_dashboard_metrics_total_sink, scheduled 0 9 * * *

Written by Cursor Bugbot for commit 50e6955. This will update automatically on new commits. Configure here.

@ulemons ulemons self-assigned this Dec 3, 2025
@ulemons ulemons added the Feature Created by Linear-GitHub Sync label Dec 3, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conventional Commits FTW!

@ulemons ulemons changed the title Feat/add sink dashboard metrics feat: add sink dashboard metrics (CM-811) Dec 3, 2025
@ulemons ulemons marked this pull request as ready for review January 7, 2026 09:36
ms.membersTotal,
ms.membersLast30Days,
os.organizationsTotal,
os.organizationsLast30Days
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing date column in dashboard metrics sink

Medium Severity

The sink output is missing a date column that other Kafka sink pipes in the codebase include (using toStartOfDay(now()) as date). Both health_score_sink.pipe and insights_projects_populated_sink.pipe follow this pattern. Without a date column, downstream consumers cannot determine when the metrics snapshot was generated, making historical analysis, deduplication, and data tracking difficult.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature Created by Linear-GitHub Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants