question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable plugins to emit stat into L5D stat trees for Announcer

See original GitHub issue

Issue 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:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
koiuocommented, Apr 30, 2018

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 obtain StatsReceiver from it:

val stats = params[param.Stats].statsReceiver
0reactions
leozccommented, May 26, 2018

Resolved!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found