Skip to content

Commit

Permalink
[SKIP CI] Merge pull request #611 from w3cdn/main
Browse files Browse the repository at this point in the history
Support metrics for Polygon Bor (Geth fork)
  • Loading branch information
cool-firer authored Feb 26, 2025
2 parents 2c5e1c3 + a3197a6 commit 9124fad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/indexer-coordinator/src/utils/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export function parseMetrics(metrics: string): MetricsData {
if (lines[i].startsWith('# TYPE geth_info')) {
mType = MetricsType.GETH_PROMETHEUS;
}
// geth bor
else if (lines[i].startsWith('# TYPE rpc_duration_bor')) {
mType = MetricsType.GETH_PROMETHEUS;
}
if (lines[i].startsWith('# TYPE chain_info')) {
/**
# TYPE chain_info gauge
Expand Down

0 comments on commit 9124fad

Please sign in to comment.