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

feat: improve otel to promql compat #281

Open
ernado opened this issue Dec 30, 2023 · 0 comments
Open

feat: improve otel to promql compat #281

ernado opened this issue Dec 30, 2023 · 0 comments

Comments

@ernado
Copy link
Member

ernado commented Dec 30, 2023

Following metric, if exporter as otlp

sentRequestsCount, err := meter.Int64Counter("oteldemo.client.sent_requests")
if err != nil {
	return errors.Wrap(err, "create counter")
}

Exported as otlp:

oteldemo_client_sent_requests{}

Exported as prometheus:

oteldemo_client_sent_requests_total{}
ernado added a commit that referenced this issue Dec 30, 2023
@ernado ernado mentioned this issue Jan 4, 2024
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