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

Enhancement/advanced metric extension tagging entrytype #1609

Conversation

Billzaifei
Copy link
Contributor

@Billzaifei Billzaifei commented Jul 16, 2020

Describe what this PR does / why we need it

For the below interface, We implement it to export prometheus metrics.
com.alibaba.csp.sentinel.metric.extension.MetricExtension

Take the method addPass(String resource, int n, Object... args) for example.
We want to distinguish [in] type from [out] type using it as the prometheus tag.

provider[in]/consumer[out]

Does this pull request fix one issue?

Resolves #1566

Describe how you did it

Enhance com.alibaba.csp.sentinel.metric.extension.MetricExtension with com.alibaba.csp.sentinel.metric.extension.AdvancedMetricExtension

Describe how to verify it

Run test cases.

Special notes for reviews

@CLAassistant
Copy link

CLAassistant commented Jul 16, 2020

CLA assistant check
All committers have signed the CLA.

@cdfive cdfive added area/metrics Issues or PRs related to metrics and monitoring to-review To review labels Jul 16, 2020
@sczyh30
Copy link
Member

sczyh30 commented Jul 22, 2020

Maybe we could just refactor the original MetricExtension (some breaking changes are okay for 1.8.0).

@sczyh30 sczyh30 added this to the 1.8.0 milestone Jul 28, 2020
@sczyh30
Copy link
Member

sczyh30 commented Jul 30, 2020

It's recommended to submit another PR for flaky test cases in sentinel-demo-quarkus module (#1623) to keep the single PR pure :)

@Billzaifei
Copy link
Contributor Author

It's recommended to submit another PR for flaky test cases in sentinel-demo-quarkus module (#1623) to keep the single PR pure :)

Get it. I will close this PR. And summit two new ones.

@Billzaifei Billzaifei closed this Jul 30, 2020
@sczyh30 sczyh30 removed the to-review To review label Jul 30, 2020
@sczyh30 sczyh30 removed this from the 1.8.0 milestone Jul 30, 2020
@sczyh30
Copy link
Member

sczyh30 commented Aug 12, 2020

@Billzaifei Any progress regarding this PR?

@Billzaifei
Copy link
Contributor Author

Created the new one #1665.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/metrics Issues or PRs related to metrics and monitoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prometheus metrics extension need a tag to distinguish [IN] from [OUT]
4 participants