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

Feature: telemetry module & important events recording #91

Merged
merged 19 commits into from
Nov 8, 2023

Conversation

powerfooI
Copy link
Collaborator

@powerfooI powerfooI commented Nov 2, 2023

Summary

  1. Encapsulate record.EventRecorder interface in k8s client-go package, upload telemetry data alongside operator manager create event.
  2. A throttler which hold a buffered channel and a group of workers who fetch uploading data in infinite loop.
  3. A metrics puller which extract informations from the host environment
  4. A flexible asynchronous method to generate telemetry record and send to the buffered channel of throttler
  5. Disable or debug the module with environment variables
  6. All functions pass bundled unit tests

@powerfooI powerfooI changed the title [WIP] Feature telemetry module Feature: telemetry module Nov 7, 2023
@powerfooI powerfooI marked this pull request as ready for review November 7, 2023 09:50
Recorder record.EventRecorder
Scheme *runtime.Scheme
Recorder record.EventRecorder
Telemetry telemetry.Recorder
Copy link
Member

Choose a reason for hiding this comment

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

use telemetry as Recorder

Copy link
Member

@chris-sun-star chris-sun-star left a comment

Choose a reason for hiding this comment

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

LGTM

@chris-sun-star chris-sun-star merged commit 10c14d4 into oceanbase:2.0.x_dev Nov 8, 2023
@powerfooI powerfooI deleted the feat/telemetry branch November 14, 2023 07:12
@powerfooI powerfooI changed the title Feature: telemetry module Feature: telemetry module & important events recording Nov 14, 2023
@powerfooI
Copy link
Collaborator Author

Add event recordings for important transitions. #38

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