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

Update service + resource path for the TAG_KEY_HTTP_URL #31706

Merged
merged 3 commits into from
Jul 21, 2021

Conversation

chamil321
Copy link
Contributor

@chamil321 chamil321 commented Jul 14, 2021

Purpose

$subject

Related ballerina-platform/ballerina-library#1630

Approach

[Micro-GW] (VASTTRAFIKAPIMSUB-53) Prometheus metrics per unique url.

Sample

service passthrough on new http:Listener(9090) {
    @http:ResourceConfig {
        path: "/{abc}"
    }
    resource function passthrough(http:Caller caller, http:Request req) {
    }
}

Metric: http_url="/passthrough/_abc_

http_response_time_seconds_mean{protocol="http",http_method="POST",service="passthrough",http_url="/passthrough/_abc_",resource="passthrough",timeWindow="60000",} 0.1337890625

Check List

  • Read the Contributing Guide
  • Updated Change Log
  • Checked Tooling Support (#)
  • Added necessary tests
    • Unit Tests
    • Spec Conformance Tests
    • Integration Tests
    • Ballerina By Example Tests
  • Increased Test Coverage
  • Added necessary documentation
    • API documentation
    • Module documentation in Module.md files
    • Ballerina By Examples

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.

3 participants