Enable plugins to emit stat into L5D stat trees for Announcer
See original GitHub issueIssue Type:
- Bug report
- [ X] Feature request
We are writing multiple plugins for our L5D mesh, there are needs to initialize a finagle client to perform RPC, however there is no way to submit the stat into L5D metrics system.
Suggestion: Is it possible to enable this user scenario?
def getClient(withRequestTimeoutMS: Int = 1000 , addr: InetSocketAddress, path:Path): Service[http.Request, http.Response] = {
val monitor: Monitor = new Monitor {
def handle(t: Throwable): Boolean = {
logger.error(t, t.getMessage, t.getStackTrace)
true
}
}
val metrics = MetricsTree() // possible to get the metrics tree from global
val stats = new MetricsTreeStatsReceiver(metrics) // register this stat object to be collected?
Http.client
.withStatsReceiver(stats)
.withHttpStats
.withRequestTimeout(Duration.fromMilliseconds(withRequestTimeoutMS))
.withMonitor(monitor)
.newService(s"${addr.getHostName()}:${addr.getPort()}", "hc_client")
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
ValhallaMMO | SpigotMC - High Performance Minecraft
The plugin features entirely customizable skill trees players can spend skill points in to unlock perks. Skill points are earned through ...
Read more >Aurelium Skills Minecraft Plugin - Apex Hosting
This is rectified with Aurelium Skills, a Minecraft plugin that adds a level progression ... This will include stat rewards, ability unlocks, and...
Read more >https://mirrors.aliyun.com/oldubuntu-releases/ubun...
built-in plugins for user and groups administration, * different set of User ... plotting statistics of backups Bugs: mailto:ubuntu-users@lists.ubuntu.com ...
Read more >Skill Trees System | Page 9 - RPG Maker Forums
@SomeFire Is there a plugin command to remove a single specific skill/node on a skill tree? I'm trying to migrate my stat allocation...
Read more >Untitled
Sophia in hershel's barn, Anchor glass lawrenceburg indiana? Dzelil abdula, El periodico extremadura/portada? Bright star soundtrack letters, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If the intention is to see stats under
admin/metrics.json
, then it is already possible with linkerd.Usually (I’d say, always, but maybe some type of plugins miss that still) plugin factory method receives
Stack.Params
as an argument, and one can obtainStatsReceiver
from it:Resolved!