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

chore: rename some metrics #100

Closed
wants to merge 2 commits into from
Closed

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Oct 10, 2023

Description

I just reviewed the names of the metrics again and they look great. With these ones, we have more than enough. Great job.

This PR suggests changing some naming on only a few of them

@anxolin anxolin requested a review from mfw78 October 10, 2023 10:50
@@ -21,7 +21,7 @@ import {
} from "../utils";
import {
blockHeight,
blockTime,
blockProducingRate,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

producing, production?

@@ -46,20 +46,20 @@ export const blockHeight = new client.Gauge({
});

export const reorgDepth = new client.Gauge({
name: "watch_tower_reorg_depth",
help: "Depth of the current reorg",
name: "watch_tower_latest_reorg_depth",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if find this more clear

labelNames: ["chain_id"],
});

export const blockTime = new client.Gauge({
name: "watch_tower_block_time_seconds",
export const blockProducingRate = new client.Gauge({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

block time i would expect the latest epoc there, with this i try to show that it tracks the producing rate

help: "Time since last block",
labelNames: ["chain_id"],
});

export const eventsProcessedTotal = new client.Counter({
name: "watch_tower_events_processed_total",
help: "Total number of events processed",
name: "watch_tower_order_creation_events_total",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

events might be too generic. Its good to specify imo

export const newContractsTotal = new client.Counter({
name: "watch_tower_new_contracts_total",
help: "Total number of new contracts",
export const contractsTotal = new client.Counter({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i don't love the previous nor the new suggestion.
I feel the contractsTotal is also a bit generic.

maybe conditional_order_owners_total is nicer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually i will change this in the PR (my first suggestion was watch_tower_contracts_total)

@anxolin anxolin closed this Oct 10, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant