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(x/metrics): add module for emiting custom chain metrics #1668

Merged
merged 5 commits into from
Aug 25, 2023

Conversation

pirtleshell
Copy link
Member

@pirtleshell pirtleshell commented Aug 24, 2023

Description

Add a new module: x/metrics

A non-consensus breaking module for emitting chain metrics .

See spec for more details. It only emulates the forthcoming CometBFT (v0.38+) metric for latest_block_height during blocksync. I decided to match the CometBFT prometheus gauges implementation (using go-kit) because it supports float64s, whereas cosmos-sdk telemetry only handles float32s.

Checklist

  • Changelog has been updated as necessary.

@pirtleshell pirtleshell added the A:backport/kava_2222-10 Backport patches to all kava_2222-10 release/* branches label Aug 25, 2023
@pirtleshell pirtleshell merged commit 9a0aed7 into master Aug 25, 2023
10 checks passed
@pirtleshell pirtleshell deleted the rp-x-metrics branch August 25, 2023 19:23
mergify bot pushed a commit that referenced this pull request Aug 25, 2023
* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
#	app/app.go
#	go.mod
mergify bot pushed a commit that referenced this pull request Aug 25, 2023
* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
#	app/app.go
#	go.mod
mergify bot pushed a commit that referenced this pull request Aug 25, 2023
* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
#	app/app.go
#	go.mod
mergify bot pushed a commit that referenced this pull request Aug 25, 2023
* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
#	go.mod
mergify bot pushed a commit that referenced this pull request Aug 25, 2023
* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
mergify bot pushed a commit that referenced this pull request Aug 25, 2023
* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
pirtleshell added a commit that referenced this pull request Aug 25, 2023
…#1668) (#1672)

* feat(x/metrics): add module for emiting custom chain metrics (#1668)

* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
#	app/app.go
#	go.mod

* fix merge conflicts, add docker-build command

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
pirtleshell added a commit that referenced this pull request Aug 25, 2023
…#1668) (#1673)

* feat(x/metrics): add module for emiting custom chain metrics (#1668)

* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
#	app/app.go
#	go.mod

* fix merge conflicts, add docker-build command

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
pirtleshell added a commit that referenced this pull request Aug 25, 2023
…1675)

* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
#	go.mod

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
pirtleshell added a commit that referenced this pull request Aug 25, 2023
…#1668) (#1674)

* feat(x/metrics): add module for emiting custom chain metrics (#1668)

* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
#	app/app.go
#	go.mod

* fix merge conflicts, add docker-build command

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
pirtleshell added a commit that referenced this pull request Aug 25, 2023
* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
#	go.mod
pirtleshell added a commit that referenced this pull request Aug 25, 2023
…#1668) (#1679)

* feat(x/metrics): add module for emiting custom chain metrics (#1668)

* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md
#	go.mod

* fix merge conflicts, add docker-build command
pirtleshell added a commit that referenced this pull request Aug 25, 2023
…#1668) (#1676)

* feat(x/metrics): add module for emiting custom chain metrics (#1668)

* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md

* fix changelog merge conflict

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
pirtleshell added a commit that referenced this pull request Aug 25, 2023
…#1668) (#1677)

* feat(x/metrics): add module for emiting custom chain metrics (#1668)

* initialize x/metrics with metrics collection

* include global labels in x/metrics metrics

* add x/metrics spec

* add x/metrics test coverage

* update changelog

(cherry picked from commit 9a0aed7)

# Conflicts:
#	CHANGELOG.md

* fix changlog conflicts

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/kava_2222-10 Backport patches to all kava_2222-10 release/* branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants