-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
@@ -21,7 +21,7 @@ import { | |||
} from "../utils"; | |||
import { | |||
blockHeight, | |||
blockTime, | |||
blockProducingRate, |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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({ |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
src/utils/metrics.ts
Outdated
export const newContractsTotal = new client.Counter({ | ||
name: "watch_tower_new_contracts_total", | ||
help: "Total number of new contracts", | ||
export const contractsTotal = new client.Counter({ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
)
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