8000 How to metrics with labels when connect two db in one program · Issue #37 · go-gorm/opentelemetry · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
How to metrics with labels when connect two db in one program #37
Open
@yxxchange

Description

@yxxchange

Your Question

How to metrics with labels when connect two db in one program

The document you expected this should be explained

Expected answer

add a label to

go_sql_connections_idle{otel_scope_name="opentelemetry/otel",otel_scope_version=""} 1

like
go_sql_connections_idle{otel_scope_name="opentelemetry/otel",otel_scope_version="",db="xxx"} 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0