-
Notifications
You must be signed in to change notification settings - Fork 33
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
Migrated metrics to prometheus #434
Conversation
sample.stop(meterRegistry.timer("snapshot-factory.new-snapshot.time")) | ||
sample.stop( | ||
meterRegistry.timer( | ||
"snapshot-factory.seconds", |
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.
maybe snapshot_factory to be consistent with other metrics?
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.
yea, I was looking at some our other metrics, but looks like this way would be better, I changed to dots everywhere
groupSample.stop(meterRegistry.timer("snapshot-factory.get-snapshot-for-group.time")) | ||
groupSample.stop( | ||
meterRegistry.timer( | ||
"snapshot-factory.seconds", |
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.
same here - snapshot_factory for consistency
.checkpoint("snapshot-updater-groups-published") | ||
.name("snapshot-updater-groups-published").metrics() | ||
.name("snapshot-updater.count.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.
snapshot_updater/snapshot.updater - . is mapped to _, right?
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.
. is, - isn't
...main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/consul/services/ConsulServiceChanges.kt
Show resolved
Hide resolved
...pl/allegro/tech/servicemesh/envoycontrol/server/callbacks/MetricsDiscoveryServerCallbacks.kt
Outdated
Show resolved
Hide resolved
...pl/allegro/tech/servicemesh/envoycontrol/server/callbacks/MetricsDiscoveryServerCallbacks.kt
Outdated
Show resolved
Hide resolved
.name("snapshot-updater-merged").metrics() | ||
.name("snapshot.updater.count.total") | ||
.tag("status", "merged") | ||
.tag("type", "global") |
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.
what this type means?
Co-authored-by: kozjan <[email protected]>
meterRegistry.gauge(metricName, Tags.of("status", "instance-changed"), it.instanceChanges) | ||
meterRegistry.gauge(metricName, Tags.of("status", "snapshot-changed"), it.snapshotChanges) | ||
meterRegistry.gauge("cache.groups.count", it.cacheGroupsCount) | ||
it.meterRegistry.more().counter("services.watch.errors.total", listOf(), it.errorWatchingServices) |
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 think it would be better to have consistent name. So if we have watched-services
, then it should be watched-services.errors.total
}, 0, interval, TimeUnit.SECONDS) | ||
}, FluxSink.OverflowStrategy.LATEST) | ||
return aclFlux.doOnCancel { | ||
meterRegistry.counter("cross-dc-synchronization.cancelled").increment() | ||
meterRegistry.counter("cross.dc.synchronization.cancelled").increment() |
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.
Why there is not total
at the end of metric name?
...main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/consul/services/ConsulServiceChanges.kt
Outdated
Show resolved
Hide resolved
25bef87
to
d4d5cf3
Compare
d4d5cf3
to
1b340fa
Compare
…oved reactor micrometer)
…oved reactor micrometer)
https://pastebin.cert.qxlint/view/raw/370ffe1e the resulting metrics |
No description provided.