graphite

Django import error - no module named django.conf.urls.defaults

萝らか妹 提交于 2019-11-28 16:56:01
问题 I am trying to run statsd/graphite which uses django 1.6. While accessing graphite URL, I get django module error File "/opt/graphite/webapp/graphite/urls.py", line 15, in from django.conf.urls.defaults import * ImportError: No module named defaults However, I do not find defaults django package inside /Library/Python/2.7/site-packages/django/conf/urls/ Please help fixing this issue. 回答1: django.conf.urls.defaults has been removed in Django 1.6. If the problem was in your own code, you would

How to cleanup the graphite whisper's data?

妖精的绣舞 提交于 2019-11-28 14:49:02
问题 I want to delete the graphite's storage whisper's data but there ain't anything in the graphite docs. One way I did is deleting the the files at /opt/graphite...../whispers/stats... manually. But this is tedious, so how do I do it? 回答1: currently deleting the files from /opt/graphite/storage/whisper/ is the correct way to delete whisper data. As for the tedious side of the process, you could use the find command if there is a certain pattern that your trying to remove. find /opt/graphite

Graphite returning incorrect datapoint

守給你的承諾、 提交于 2019-11-28 06:27:55
问题 I downloaded statsd and graphite 0.9.x I used the stats-client provided with source of statsd as follows: ./statsd-client.sh 'development.com.alpha.operation.testing.rate:1|c' I did the above operation 10 times. Then I tried querying for a summary for last 24 hours: http://example.com/render?format=json&target=summarize(stats.development.com.alpha.operation.testing.rate, "24hours", "sum",true)&from=-24hours&tz=UTC I get 1 datapoint as follows: "datapoints": [[0.0, 1386277560]]}] Why I am

Tracking metrics using StatsD (via etsy) and Graphite, graphite graph doesn't seem to be graphing all the data

自古美人都是妖i 提交于 2019-11-27 10:48:38
问题 We have a metric that we increment every time a user performs a certain action on our website, but the graphs don't seem to be accurate. So going off this hunch, we invested the updates.log of carbon and discovered that the action had happened over 4 thousand times today(using grep and wc), but according the Integral result of the graph it returned only 220ish. What could be the cause of this? Data is being reported to statsd using the statsd php library, and calling statsd::increment('metric

性能监控系统 | 从0到1 搭建Web性能监控系统

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 13:47:25
工具介绍 1. Statsd 是一个使用Node开发网络守护进程,它的特点是通过UDP(性能好,及时挂了也不影响主服务)或者TCP来监听各种数据信息,然后发送聚合数据到后端服务进行处理。常见支持的「Graphite」,「ElasticaSearch」,「InfluxDB」 等等 ,它集成了各种语言的客户端API,这里我们使用了jsocol/pystatsd: A Python client for statsd进行数据收集。 2. Graphite 是一套Python写的开源编程接口,主要是用来收集服务器的及时状态,在这里主要作为statsd的数据后端。分为了三个子项目 - carbon 守护进程,接收StatsD发送过来的原始统计数据。 - whisper 用来存储统计数据的时间序列数据库。 - graphite webapp 用来图形化展示统计数据的web项目 3. Grafana 使用Go开发,可以在界面上设计调整自己的统计图表,支持多重报警,可定制化。 安装 在这里我使用了[synthesize(https://github.com/obfuscurity/synthesize)进行快速安装Graphite和Statsd包,这里面需要注意安装数据在 **/opt/graphite ** 目录下面。这里面我们安装启动了 service carbon-cache start #