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

Metrics #1

Open
olivierACRI opened this issue Dec 18, 2023 · 2 comments
Open

Metrics #1

olivierACRI opened this issue Dec 18, 2023 · 2 comments
Labels
feature-request Feature requests plugins Anything related to the plugins

Comments

@olivierACRI
Copy link

Hi,
That would be interesting to have metrics (in Prometheus form) about the requests made (insert, select, update, delete...) with some KPIs on the size for instance (x rows returned). And this will be perfect if we can segregate per client application (application connecting to the Gateway) and server (Database).

@mostafa
Copy link
Member

mostafa commented Dec 18, 2023

Hey @olivierACRI,

That's a really good idea for a plugin. Also, the other parameters you introduced, like application_name, database and others, can be metrics' labels. And the good part is that you don't need to worry about exposing metrics from the plugin, as it is taken care of by GatewayD using the metrics merger.

Creating a new plugin is fairly straightforward using the SDK and the plugin template for Go. There are also guides in the docs about developing plugins.

I'll move the ticket to the proposals repository, so I can track them there in one place.

@mostafa mostafa transferred this issue from gatewayd-io/docs Dec 18, 2023
@mostafa mostafa added feature-request Feature requests plugins Anything related to the plugins labels Dec 18, 2023
@olivierACRI
Copy link
Author

Great info about the plugin, looks like this is something I can achieve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Feature requests plugins Anything related to the plugins
Projects
Development

No branches or pull requests

2 participants