-
Notifications
You must be signed in to change notification settings - Fork 122
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
A request to expose the latest revision and latest committed at of the watcher as metrics #1092
Comments
ApproachI am considering the following approach: First, I will add a module named Watcher watcher = ...;
WatcherMetrics.monitor(watcher); A similar implementation can be found in the following examples: Why separate the module?centraldogma-client does not have a dependency on Micrometer. QuestionIs it possible to retrieve the committed time? |
I prefer adding
The watch metrics seem useful for most users. What do you think of automatically adding the watcher metrics if a new ArmeriaCentralDogmaBuilder()
.meterReigistry(meterRegistry, meterIdPrefix)
// If the prefix is omitted, it defaults to `centraldogma.client`.
.meterReigistry(meterRegistry)
.build();
// The watcher exposes metrics if meterRegistry is set until closed.
Watcher watcher = ...; |
Additionally, it would be perfect if we could integrate Lines 58 to 63 in 98e0446
If a MeterRegistry is registered as a bean, the injected bean could be used to create ArmeriaCentralDogma internally.
|
I agree.
Let's go with that approach. If we want to add more metrics to the Central Dogma client in the future, this structure seems more convenient. |
Yes, we are. |
I am considering this approach. What do you think? |
Hello, I have a feature request for centraldogma.
How about adding the following metrics?
Motivation:
Having these metrics would allow us to represent changes in centraldogma using Grafana annotations.
Many services use centraldogma as a feature flag system, and being able to visualize changes in Grafana would be highly useful.
The text was updated successfully, but these errors were encountered: