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

micro metrics #143

Open
r65535 opened this issue Jun 13, 2023 · 0 comments
Open

micro metrics #143

r65535 opened this issue Jun 13, 2023 · 0 comments

Comments

@r65535
Copy link

r65535 commented Jun 13, 2023

I'm not sure if this is in scope for surveyor, but exposing prometheus metrics based on the micro $SRV.STATS events would be great! Something like:

nats_micro_num_requests{"name": "IsEven", "id": "2727vjBdgfg1SEDeXRrmxl", "version": "0.0.1", "endpoint": "default"} 200
nats_micro_num_errors{"name": "IsEven", "id": "2727vjBdgfg1SEDeXRrmxl", "version": "0.0.1", "endpoint": "default"} 1
nats_micro_processing_time{"name": "IsEven", "id": "2727vjBdgfg1SEDeXRrmxl", "version": "0.0.1", "endpoint": "default"} 9083022
nats_micro_avg_processing_time{"name": "IsEven", "id": "2727vjBdgfg1SEDeXRrmxl", "version": "0.0.1", "endpoint": "default"} 12191
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

No branches or pull requests

1 participant