Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGNITE-18372 metrics for k2i consumer #277

Closed
wants to merge 13 commits into from

Conversation

maksaska
Copy link
Contributor

@maksaska maksaska commented Jun 11, 2024

Metrics for CDC with Kafka

CDC with Kafka doesn't have metrics for 'Kafka To Ignite' consumer. The improvement in this pull request contains the neccessary updates to fix this issue.

What is new:

  • I2K metrics naming corrected
    | EventsCount | Count of messages sent to Kafka.
    | LastEventTime | Timestamp of last sent event to Kafka.
    | TypesCount | Count of binary types events sent to Kafka.
    | MappingsCount| Count of mappings events sent to Kafka.
    | BytesSent | Count of bytes sent to Kafka.
    | MarkersCount | Count of metadata markers sent to Kafka.
  • K2I metrics added
    | EventsReceivedCount | Count of events received from Kafka.
    | LastEventReceivedTime | Timestamp of last received event from Kafka.
    | EventsSentCount | Count of events sent to destination cluster.
    | LastBatchSentTime | Timestamp of last sent batch to the destination cluster.
    | MarkersCount | Count of metadata markers received from Kafka.

To achieve the proposed goals, I've used StandaloneGridKernalContext dummy context to get the manager for the metrics SPI. With KafkaToIgniteCdcStreamerConfiguration configured to supply the CDC toolkit with Metrics SPIs, we are now able to register metrics exporter.

Maksim Davydov added 12 commits July 15, 2024 11:29
* Standalone context fixed
* Metrics description corrected
* Metrics count fixed
* Minor fixes
* received events metrics fixed
* Code style fixes
* Constants naming fixed
* Documentation
* variable naming fixed
* streamer naming fixed
* metric spi register fix
* metric spi register fix
* CdcKafkaReplicationAppsTest fix
@asfgit asfgit closed this in c3813f7 Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants