Skip to content

[dbsql] [ffapi] DB Stats and Metrics #213

Open
onelapahead wants to merge 8 commits intohyperledger:mainfrom
kaleido-io:go-and-db-metrics
Open

[dbsql] [ffapi] DB Stats and Metrics #213
onelapahead wants to merge 8 commits intohyperledger:mainfrom
kaleido-io:go-and-db-metrics

Conversation

@onelapahead
Copy link
Copy Markdown
Contributor

Redo of #205

We nabled build info metrics and have ffapi tests to ensure the metrics endpoint works as expected.

DB metrics are in two forms:

  1. stats collector wraps Stats() from *sql.DB with basic gauges around conn settings and pool usage
    instrumentation of all operations and transactions
  2. Similar to ffresty, there's then a global func for clients to enable DB metrics, ensuring all initialized databases in a process are metered by the collector and instrumentation.

Signed-off-by: hfuss <hayden.fuss@kaleido.io>
Signed-off-by: hfuss <hayden.fuss@kaleido.io>
Signed-off-by: hfuss <hayden.fuss@kaleido.io>
Signed-off-by: hfuss <hayden.fuss@kaleido.io>
Signed-off-by: hfuss <hayden.fuss@kaleido.io>
Signed-off-by: hfuss <hayden.fuss@kaleido.io>
Signed-off-by: hfuss <hayden.fuss@kaleido.io>
Signed-off-by: hfuss <hayden.fuss@kaleido.io>
@onelapahead onelapahead requested a review from a team as a code owner April 9, 2026 12:22
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.

1 participant