标签: graphite

Grafana Combine By Alias

我有一个带有多个模板变量的石墨查询。当我合并多个分支时,我会得到多个同名的别名。如果有办法通过别名将 sum 组合成一个指标?

这是我的查询:

aliasByNode(graphs.$site.items.$item.*.job.queued, 6)
Run Code Online (Sandbox Code Playgroud)

metrics graphite grafana

4
推荐指数
1
解决办法
2288
查看次数

如何用Spring Boot启动千分尺?

我想通过千分尺将石墨指标添加到我的 Spring Boot 应用程序中。

我将其添加到我的 pom 中

    <!-- https://mvnrepository.com/artifact/io.micrometer/micrometer-registry-graphite -->
    <dependency>
        <groupId>io.micrometer</groupId>
        <artifactId>micrometer-registry-graphite</artifactId>
        <version>1.5.5</version>
    </dependency>
    <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
        <version>2.3.4.RELEASE</version>
    </dependency>
Run Code Online (Sandbox Code Playgroud)

并将注册表定义为:

@Configuration
public class MircoMeterConfig {

    @Bean
    MeterRegistryCustomizer meterRegistryCustomizer(MeterRegistry meterRegistry) {
        return registry -> {
            meterRegistry.config().commonTags("application", "name");
        };
    }
}
Run Code Online (Sandbox Code Playgroud)

但是当我运行该应用程序时,我收到此错误:

io.micrometer.core.instrument.config.validate.Validated
Run Code Online (Sandbox Code Playgroud)

这是完整的堆栈跟踪。

2020-10-12 20:37:05.332  INFO 34747 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1243 ms
2020-10-12 20:37:05.343 ERROR 34747 --- [           main] o.s.b.web.embedded.tomcat.TomcatStarter  : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating …
Run Code Online (Sandbox Code Playgroud)

graphite spring-boot spring-boot-actuator micrometer spring-micrometer

4
推荐指数
1
解决办法
2万
查看次数

使用AMQP和石墨9.9

我正在尝试使用内置于Graphite中的AMQP将RabbitMQ连接到Graphite.但是当我取消注释carbon.conf我得到的设置时:

notroot@ubuntu:/opt/graphite/bin$ sudo python carbon-cache.py start
Starting carbon-cache (instance a)
Traceback (most recent call last):
  File "carbon-cache.py", line 30, in <module>
    run_twistd_plugin(__file__)
  File "/opt/graphite/lib/carbon/util.py", line 92, in run_twistd_plugin
    runApp(config)
  File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 23, in runApp
    _SomeApplicationRunner(config).run()
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 386, in run
    self.application = self.createOrGetApplication()
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 446, in createOrGetApplication
    ser = plg.makeService(self.config.subOptions)
  File "/opt/graphite/lib/twisted/plugins/carbon_cache_plugin.py", line 21, in makeService
    return service.createCacheService(options)
  File "/opt/graphite/lib/carbon/service.py", line 115, in createCacheService
    root_service = createBaseService(config)
  File "/opt/graphite/lib/carbon/service.py", line 50, in createBaseService
    from …
Run Code Online (Sandbox Code Playgroud)

python amqp rabbitmq graphite

3
推荐指数
1
解决办法
2272
查看次数

不接受从Heroku上的Rails发送到HostedGraphite的UDP数据包

我在Heroku上有一个Rails应用程序,用于向HostedGraphite发送UDP数据包(在某些用户操作上)(我只是试用免费版本).

我已经在我自己的UDP服务器上指向了"socket.send"调用,所以我知道UDP数据包是从Heroku发送的.

我知道来自HostedGraphite的API密钥是正确的(无数次检查).

我还修改了正在发送的数据的格式 - 包括并排除行尾的"\n"(文档指定包含"\n").

我也尝试从我的开发环境发送数据包.

最后我试过这个:

echo "YOUR-API-KEY.test 1" | nc carbon.hostedgraphite.com 2003
Run Code Online (Sandbox Code Playgroud)

我发送数据包的ruby代码是:

sock.send(data, 0, 'carbon.hostedgraphite.com', 2003)
Run Code Online (Sandbox Code Playgroud)

很明显,从文档中 Ruby可以处理UDPSocket而不是IP地址,所以这肯定不是问题.

好吧,有可能没有UDP数据包实际到达......但似乎非常不可能.

除此之外,我处于死胡同,我不知道还有什么可尝试的.有没有其他人成功使用过此服务(尤其是在Heroku上托管的Rails应用程序)?我开始怀疑也许我需要付钱给他们......

接下来我将把它重写为POST给HostedGraphite(但我仍然提出这个问题,因为它是UDP特定的).

我还尝试了一个curl请求的POSTing(不能再添加任何链接,所以你必须自己找到这个文档),而且,HostedGraphite方面没有任何东西出现(你可以在那里搜索你的指标).

ruby-on-rails heroku graphite

3
推荐指数
1
解决办法
495
查看次数

石墨和statsd中的命名模式

问题描述:我有做以下事情的模块.

delete/folder
delete/file
move/folder
move/file
Run Code Online (Sandbox Code Playgroud)

此应用程序在多个主机上运行.我无法找到更好的命名空间模式将其存储在statsd中:

我考虑过以下模式:

<env>.<app>.<action>.<object>.<host>.exec_time
<env>.<app>.<action>.<object>.<host>.failed
<env>.<app>.<action>.<object>.<host>.succeeded
Run Code Online (Sandbox Code Playgroud)

我想的第二种模式是:

<env>.<app>.<object>.<action>.<host>.exec_time
<env>.<app>.<object>.<action>.<host>.failed
<env>.<app>.<object>.<action>.<host>.succeeded
Run Code Online (Sandbox Code Playgroud)

我可以有更多这样的模式吗?

<env>.<app>.<object>.<action>.exec_time.<host>
<env>.<app>.<object>.<action>.failed.<host>
Run Code Online (Sandbox Code Playgroud)

我无法找到哪种模式会好,为什么?你能建议吗?

目前我正在考虑遵循指标.

  1. 全球QOS
  2. 全球行动层面的QOS
  3. 全局对象级QOS
  4. 主机QOS
  5. 主机行动级别QOS
  6. 主机对象级别QOS

namespaces graphite statsd

3
推荐指数
1
解决办法
3169
查看次数

在Graphite中按时间间隔拆分计数度量值

我有一个计数器指标,我会打电话给 a.metric.count

当绘制正常情况时,这将是一个不断增加的向上线,这不是那么有用.我想要的是显示每小时发生的事件数量.

graphite

3
推荐指数
1
解决办法
2481
查看次数

如何获得一周中每一天的移动平均值?

我以一个小时的粒度将数据放入石墨中。例如

2013-12-06-12:00    15
2013-12-08-09:00    14
2013-12-09-12:00     3
2013-12-13-00:00    10
2013-12-14-08:00    20
2013-12-14-09:00     1
2013-12-15-00:00     5
2013-12-16-00:00    11
2013-12-16-02:00    12
Run Code Online (Sandbox Code Playgroud)

... 等等

现在,我希望能够将其绘制为“一周中每一天的值的演变”,因此显示的实际值是几周内特定日期的值的总和(或平均值) (例如,假设 2 周)。

如果我只看上周,我的图表看起来像这样:

  ^       21
20|       |
  |       |
  |   12.5|       13
10|   |   |   9.5 |
  |   |   |   |   |
  |   |   |   |   |
 0+--------------------------------->
   Mon Tue Wed Thu Fri Sat Sun
    12  13  14  15  16
Run Code Online (Sandbox Code Playgroud)

因此,例如,对于“星期五”点,它取今天 (11+12) 的值、上星期五 (3) 的值并取两者的平均值 ((11+12)+3)/2

这可能吗,如何?

graphite

3
推荐指数
1
解决办法
7241
查看次数

石墨碳继电器不工作

我有两个石墨设置,我试图在两者之间传递流量,但不知何故碳继电器不起作用.我的缓存在2003/2004运行,在2013/2014中继,以下是完成的配置:

#carbon file


[cache:b]
LINE_RECEIVER_PORT = 2003
PICKLE_RECEIVER_PORT = 2004
CACHE_QUERY_PORT = 7012



[relay]
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2013
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2014
RELAY_METHOD = rules

REPLICATION_FACTOR = 1

 DESTINATIONS = 127.0.0.1:2003:a, aa.bb.cc.dd:2003:b


#relay-rules file

[default]
default = true
destinations = 127.0.0.1:2003:a, aa.bb.cc.dd:2003:b

Any pointers will be helpful
Run Code Online (Sandbox Code Playgroud)

monitoring metrics graphite

3
推荐指数
1
解决办法
1894
查看次数

在 Graphite 中,如何计算某个值上方的数据点数?

我想知道是否有一个 Graphite 函数或一种获得高于某个值的点数的方法。假设我同时有 2,44,24,522,52,534 并且我想获得超过 40 的点数,在这种情况下它将是 3。有什么提示吗?

谢谢

graphite statsd

3
推荐指数
1
解决办法
2904
查看次数

nPercentile在Graphite中做了什么以及它与percentileOfSeries有何不同?

我阅读了一百万次的文档,但我无法弄清楚它的作用.nPercentile在Graphite中做了什么以及它与percentileOfSeries有何不同?

graphite

3
推荐指数
1
解决办法
767
查看次数