简体   繁体   English

使用 Graphite 将自定义指标写入 InfluxDB

[英]Writing custom metrics to InfluxDB with Graphite

Gatling reported metrics are not sufficient for me, and thus, I calculate additional metrics during execution. Gatling 报告的指标对我来说是不够的,因此,我在执行过程中计算了额外的指标。

Is there a way to report these additional metrics using Gatling's built-in support for Graphite & InfluxDB integration?有没有办法使用 Gatling 对 Graphite 和 InfluxDB 集成的内置支持来报告这些额外的指标?

If not, I have to report these values myself?如果没有,我必须自己报告这些值吗? for example in the after block:例如在after块中:

  setUp(
    secenario1
      .inject(atOnceUsers(10))
  ).assertions(assertions())

  after {
    // use influx DB client and send the additional values.
    reportMetricsToInfluxDB()
  }

Gatling doesn't provide send any custom values to Influxdb. Gatling 不提供向 Influxdb 发送任何自定义值。 You can get influxdb client library and then realize what you want.您可以获得influxdb 客户端库,然后实现您想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM