graphite

Deleted/Empty Graphite Whisper Files Automatically Re-Generating

筅森魡賤 提交于 2019-12-03 13:07:43
问题 I am trying to delete some old graphite test whisper metrics without any success. I can delete the metrics by removing the files. (See: How to cleanup the graphite whisper's data? ) But, within a few seconds of blowing away the files they regenerate (they are empty of metrics and stay that way since nothing is creating new metrics in those files). I've tried stopping carbon (carbon-cache.py stop) before deleting the files, but when I restart carbon (carbon-cache.py --debug start &) they just

graphite summarize datapoints

Deadly 提交于 2019-12-03 10:52:38
I'm using graphite to collect data, and I'd like to retrieve the total count of certain events over a period of time. Say, number of logins per week. However, I just need the total number, and don't need to see how it evolves over time. When I use something like from=-1w&target=summarize(stats.events.login.success,"1w")&format=json then I still get two datapoints, and not one. Is there a way to get a single datapoint from the summarize function? or use a different function to return a single datapoint value? The problem here is that summarize doesn't align to the from field by default.

Getting accurate graphite stats_counts

心已入冬 提交于 2019-12-03 07:03:34
问题 We have etsy/statsd node application running that flushes stats to carbon/whisper every 10 seconds. If you send 100 increments (counts), in the first 10 seconds, graphite displays them properly, like: localhost:3000/render?from=-20min&target=stats_counts.test.count&format=json [{"target": "stats_counts.test.count", "datapoints": [ [0.0, 1372951380], [0.0, 1372951440], ... [0.0, 1372952460], [100.0, 1372952520]]}] However, 10 seconds later, and this number falls to 0, null and or 33.3.

Graphite简要教程

允我心安 提交于 2019-12-03 06:27:59
转载自 DevOps实战:Graphite监控上手指南 英文原文 Getting Started with Monitoring using Graphite 英文原文 Google快照 作者 Franklin Angulo , 译者 丛一 发布于 2015年3月17日 在本文中, 我将提供一个帮助读者了解用Graphite套件创建监控系统所涉及的全部工作的指南. 主要讨论内容 在本文中我们将会谈及如下用于创建Graphite监控系统的主题: Carbon和Whisper简介 Whisper存储模式和聚合 Graphite Web应用 前提条件 首先, 我们需要能够运行Graphite套件的硬件资源. 为了简单起见, 我将使用Amazon Web Services EC2主机. 不过, 你也可以使用办公室或家中已有的任何型号的计算机. 技术规格: 操作系统:Red Hat Enterprise Linux (RHEL) 6.5 实例类型:m3.xlarge 弹性存储区块(EBS)容量:250 GB Python版本:2.6.6 Carbon和Whisper简介 Graphite由多个后端和前端组件组成. 后端组件用于存储数值型的时间序列数据. 前端组件则用于获取指标项数据并根据情况渲染图表. 在本文中, 我首先会介绍后端组件: Carbon 和 Whisper .

Graphite: multiple series with a single command

烂漫一生 提交于 2019-12-03 06:26:17
I would like to put two series in the same graph on the graphite dashboard . However, since the dashboard requires single-line commands I could not find a way that doesn't involve the use of a wildcard. Here's an example of the two series I would like in the same graph: sum(base.foo.bar.positive.*) sum(base.foo.bar.negative.*) I tried several separators but I could not get it to work. Any ideas? dannyla You have a few options here... Merge the 2 graphs on to the graph via the drag and drop in the dashboard OR Use the sumSeriesWithWildcards () function Merge 2 or more wildcard matching Open

Deleted/Empty Graphite Whisper Files Automatically Re-Generating

╄→尐↘猪︶ㄣ 提交于 2019-12-03 03:25:22
I am trying to delete some old graphite test whisper metrics without any success. I can delete the metrics by removing the files. (See: How to cleanup the graphite whisper's data? ) But, within a few seconds of blowing away the files they regenerate (they are empty of metrics and stay that way since nothing is creating new metrics in those files). I've tried stopping carbon (carbon-cache.py stop) before deleting the files, but when I restart carbon (carbon-cache.py --debug start &) they just come back. How do I permanently delete these files/metics so they never come back? Are you running

Graphite: sum all stats that match a pattern?

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm sending stats to a Graphite server via statsd . My stats are fairly fine-grained, and can be easily added by developers. I'd like to roll up all statistics matching a certain pattern ( stats.timers.api.*.200.count , for example). Is that possible within Graphite? If not, are there other systems that I should be looking at that can generate that type of roll-up data from statsd ? Or is this the sort of thing that I should do within my statsd configuration directly? 回答1: If you after a blanket sum of all the data that matches, then you can

Why use statsd when graphite's Carbon aggregator can do the same job?

可紊 提交于 2019-12-03 01:02:45
问题 I have been exploring the Graphite graphing tool for showing metrics from multiple servers, and it seems that the 'recommended' way is to send all metrics data to StatsD first. StatsD aggregates the data and sends it to graphite (or rather, Carbon). In my case, I want to do simple aggregations like sum and average on metrics across servers and plot that in graphite. Graphite comes with a Carbon aggregator which can do this. StatsD does not even provide aggregation of the kind I am talking

How to change the x axis in Graphite/Grafana (to graph by day)?

匿名 (未验证) 提交于 2019-12-03 00:50:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to have a bar graph in graphite/grafana that has a single bar per day, over the week. Ideally we would have the days of the week (Monday,Tuesday...etc) on the x axis labels, and then seven bars in the graph, one for each day of the week. I can't seem to change the X axis at all though. Thoughts: I could cook the time data, and send it a fixed time since epoch value, but this results in a very thin bar on the grafana page. I could write a script to send a huge amount of metrics with seconds since epoch values representing the

accumulation of value in Graphite

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I send one message each time a user connect to my site. With this format: "user_login 1 13xxxxxxx" (key value timestamp) My problem is Graphite give me a graph with only a line with the value "1", each minute. I send a random number of messages each minutes (between 6 and 60), but I think Graphite limits to the first (or last?) message, to display a value. How to do to have an sum of each message, each minute ? 回答1: You could also try carbon aggregation service so that metrics are aggregated when they are collected instead of in the Graphite