-
Notifications
You must be signed in to change notification settings - Fork 672
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
SMQ- 2546 - Add clients telemetry to journals service #2647
base: main
Are you sure you want to change the base?
Conversation
7750fa4
to
c52b865
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's OK to use Journal service as telemetry aggregator, but we should consider using some actual telemetry collectors for event processing. I.e. we can use journaling service as a final destination and apply access control and some processing to provide nice API, but what we need is an integration with telemetry collectors that will consume events, process them, store them, and provide search and filtering on them. Then, we need a background task to sync Journal service with them. Take a look at Elastic, Prometheus, InfluxDB.
} | ||
|
||
return nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an empty line.
|
||
func (am *authorizationMiddleware) RetrieveClientTelemetry(ctx context.Context, clientID, domainID string) (journal.ClientsTelemetry, error) { | ||
return am.svc.RetrieveClientTelemetry(ctx, clientID, domainID) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an empty line.
}(time.Now()) | ||
|
||
return mm.service.RetrieveClientTelemetry(ctx, clientID, domainID) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an empty line.
Signed-off-by: Felix Gateru <[email protected]>
c52b865
to
d166090
Compare
What type of PR is this?
This is a feature because it adds clients telemetry to the journals service
What does this do?
This pr adds a means to monitor information about clients
Which issue(s) does this PR fix/relate to?
Have you included tests for your changes?
No,
Did you document any new/modified feature?
No
Notes