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

Add metrics instrumentation to Morty #13

Merged
merged 3 commits into from
May 8, 2023
Merged

Add metrics instrumentation to Morty #13

merged 3 commits into from
May 8, 2023

Conversation

thomasgouveia
Copy link
Member

@thomasgouveia thomasgouveia commented Apr 30, 2023

This PR brings the following improvements :

  • New module pkg/telemetry to easily create metrics HTTP server. This module will be improved in the future to provide common methods to add metrics data to our components.
  • Updated controller component to create telemetry data for function invocations
  • Introduce official Morty Grafana dashboard to visualize your instance telemetry data :

Image PNG

Closes #12

@thomasgouveia thomasgouveia added enhancement New feature or request minor labels Apr 30, 2023
@thomasgouveia thomasgouveia self-assigned this Apr 30, 2023
- Provide convenience method to create an HTTP server to expose metrics on `/metrics` of the given address.

Signed-off-by: thomasgouveia <gouveia.thomas@outlook.fr>
@thomasgouveia thomasgouveia force-pushed the f-add-metrics branch 2 times, most recently from 2c12591 to 1509663 Compare May 2, 2023 11:27
@thomasgouveia thomasgouveia marked this pull request as ready for review May 2, 2023 14:05
@thomasgouveia thomasgouveia requested a review from a team May 2, 2023 14:05
alexandrebrg
alexandrebrg previously approved these changes May 2, 2023
Copy link
Member

@alexandrebrg alexandrebrg left a comment

Choose a reason for hiding this comment

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

Nice to have telemetry on the project now!

Copy link
Member

Choose a reason for hiding this comment

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

Along the current docker-compose you could give an extension with a grafana dashboard and monitoring capabilities.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will be done through another PR, I hope someone will do it !

controller/api/handlers/invoke-function.go Outdated Show resolved Hide resolved
controller/config/config.go Outdated Show resolved Hide resolved
- Added metrics to controller component to (Histogram and counter) for function invocations etc.
- Configurable port for metrics server

Signed-off-by: thomasgouveia <gouveia.thomas@outlook.fr>
…12)

Signed-off-by: thomasgouveia <gouveia.thomas@outlook.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

Add metrics instrumentation to Morty controller
2 participants