Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
f02b940e
Commit
f02b940e
authored
Mar 07, 2022
by
Matthew Slipper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use promauto
parent
22054dfb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
metrics.go
go/indexer/metrics/metrics.go
+2
-2
No files found.
go/indexer/metrics/metrics.go
View file @
f02b940e
...
@@ -66,7 +66,7 @@ func NewMetrics(monitoredTokens map[string]string) *Metrics {
...
@@ -66,7 +66,7 @@ func NewMetrics(monitoredTokens map[string]string) *Metrics {
"symbol"
,
"symbol"
,
}),
}),
StateBatchesCount
:
prom
etheus
.
NewCounter
(
prometheus
.
CounterOpts
{
StateBatchesCount
:
prom
auto
.
NewCounter
(
prometheus
.
CounterOpts
{
Name
:
"state_batches_count"
,
Name
:
"state_batches_count"
,
Help
:
"The number of state batches indexed."
,
Help
:
"The number of state batches indexed."
,
Namespace
:
metricsNamespace
,
Namespace
:
metricsNamespace
,
...
@@ -101,7 +101,7 @@ func NewMetrics(monitoredTokens map[string]string) *Metrics {
...
@@ -101,7 +101,7 @@ func NewMetrics(monitoredTokens map[string]string) *Metrics {
"chain"
,
"chain"
,
}),
}),
CachedTokensCount
:
prom
etheus
.
NewCounterVec
(
prometheus
.
CounterOpts
{
CachedTokensCount
:
prom
auto
.
NewCounterVec
(
prometheus
.
CounterOpts
{
Name
:
"cached_tokens_count"
,
Name
:
"cached_tokens_count"
,
Help
:
"How many tokens are in the cache"
,
Help
:
"How many tokens are in the cache"
,
Namespace
:
metricsNamespace
,
Namespace
:
metricsNamespace
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment