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

enhance metric support for product catalog service #231

Closed

Conversation

Frapschen
Copy link
Contributor

Fixes #66

Changes

supprot runtime metrics for productcatalogservice.

For significant contributions please make sure you have completed the following items:

@Frapschen Frapschen requested a review from a team July 26, 2022 03:30
@Frapschen
Copy link
Contributor Author

Frapschen commented Jul 26, 2022

@cartersocha, please review. current implementation is not a push style, we really need it? it will add a new component,a Prometheus Pushgateway, I think it more costly, a static config for promethues is ok for me.

@@ -76,6 +80,30 @@ func init() {
if err != nil {
log.Warnf("could not parse product catalog")
}

//init runtime metrics
Copy link
Member

Choose a reason for hiding this comment

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

is this using the prometheus client for Go? Should we not use the OTel library for Go instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, should use otel library.

@fatsheep9146
Copy link
Contributor

@cartersocha, please review. current implementation is not a push style, we really need it? it will add a new component,a Prometheus Pushgateway, I think it more costly, a static config for promethues is ok for me.

I think push gateway is not needed, we should use otel library to export metrics to otel-collector, the prometheus already scraped metrics from collector.

Copy link
Member

@austinlparker austinlparker left a comment

Choose a reason for hiding this comment

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

We should be using the OTel Go Metrics library rather than Prometheus.

@Frapschen
Copy link
Contributor Author

ok, I will use the OTel library to do it

@github-actions
Copy link

github-actions bot commented Aug 9, 2022

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Aug 9, 2022
@austinlparker
Copy link
Member

Any updates on this?

@Frapschen
Copy link
Contributor Author

Frapschen commented Aug 16, 2022

I want wait this issue finish open-telemetry/opentelemetry-go-contrib#2624, its a new version of instrumentation

@github-actions github-actions bot removed the Stale label Aug 16, 2022
@austinlparker
Copy link
Member

I want wait this issue finish open-telemetry/opentelemetry-go-contrib#2624, its a new version of instrumentation

Does that issue have anyone actively working on it? It doesn't seem like it does... could we just use whatever the current version of go otel metrics instrumentation is, then when the new version comes out, update to that?

@@ -40,4 +40,5 @@ COPY ./src/productcatalogservice/products.json ./
COPY --from=builder /go/bin/productcatalogservice/ ./

EXPOSE ${PRODUCT_SERVICE_PORT}
EXPOSE 2112
Copy link
Member

Choose a reason for hiding this comment

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

Can we add this port to the .env file, just to have more control over everything?

@@ -16,53 +16,129 @@ package main

Copy link
Member

Choose a reason for hiding this comment

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

I think you need to merge main into your branch.
This PR is undoing a couple of changes that we have merged already.

@cartersocha
Copy link
Contributor

Closing as the product catalog service was overhauled and will need to be updated.

@Frapschen Frapschen deleted the enhance_metric_support branch December 11, 2022 13:07
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.

Review and enhance metric support for product catalog service (Go)
6 participants