statsd

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

早过忘川 提交于 2019-12-23 10:04:55
问题 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

Pattern matching based on the function signature

对着背影说爱祢 提交于 2019-12-23 09:17:31
问题 In F# can you pattern match on a function signature. I want to decorate a number of functions with a function that measures the execution of the function and calls out to statsd. The current function I have is: let WrapFunctionWithPrefix(metrics:Metric.Client.IRecorder, functionToWrap, prefix) = let metricsIdentifier = (sprintf "%s.%s" prefix Environment.MachineName) using (metrics.StartTimer(metricsIdentifier)) ( fun metrics -> functionToWrap) As you can see above, the prefix will vary, and

datadog agent not reachable from inside docker container

不羁的心 提交于 2019-12-18 13:24:27
问题 I installed dd-agent on Amazon linux ec2. If I run my python script directly on the host machine (I used the SDK named "dogstatsd-python"), all the metrics can be sent to datadog (I logged in to datadoghq.com and saw the metrics there). the script is something like: from statsd import statsd statsd.connect('localhost', 8125) statsd.increment('mymetrics') However, I launched a docker container and run the same script from inside the container: from statsd import statsd statsd.connect('172.14.0

Telegraf daemon not receiving metrics from app deployed with Dokku

北战南征 提交于 2019-12-12 18:17:37
问题 I've already monitored NodeJS apps in the past with Telegraf+InfluxDB+Grafana, but it's the first time I try to monitor a Dokku app, without success so far. I have the following setup app server monitoring serveur - telegraf daemon (listening on udp 8125) ------> InfluxDB + Grafana - dokku - myapp : sending metrics on localhost:udp:8125 I have the issue that metrics sent from myapp on udp://localhost:8125 are not received by telegraf . The connectivity from telegraf to influxdb and grafana is

Data aggregation and caching: How to quickly graph large time series datasets by interval

我只是一个虾纸丫 提交于 2019-12-10 16:07:31
问题 I have a huge time series dataset that I'd like to graph. The time series spans back 5 years. From a backend standpoint, what are the common approaches to displaying this data at various resolutions (intervals)? Essentially I would like to chart data like this: https://bitcoinwisdom.com/markets/bitstamp/btcusd I'd like to offer the user the ability to select a time interval (seconds, minutes, hours, days, months, years). How is this data typically aggregated and stored? Would I want to store

Statsd and InfluxDB: how to handle host information?

懵懂的女人 提交于 2019-12-10 09:46:04
问题 I want to measure statsd performance metrics in a couple of applications on a couple of hosts. Those measurements will be aggregated by statsd, then stored in influxdb and then visualized in grafana. The architecture will be very similar to the one shown in this blog post: http://www.symantec.com/connect/blogs/metrics-cocktail-statsdinfluxdbgrafana App -> Statsd -> InfluxDB -> Grafana My application 'app1' runs on host1, host2, host3 in environment 'prod'. So my statsd metrics names as sent

Graphite: sum all stats that match a pattern?

≡放荡痞女 提交于 2019-12-09 15:54:12
问题 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

Go之NSQ

痴心易碎 提交于 2019-12-08 17:34:28
NSQ   NSQ是目前比较流行的一个分布式的消息队列,本文主要介绍了NSQ及Go语言如何操作NSQ。 NSQ介绍 NSQ 是Go语言编写的一个开源的 实时分布式内存消息队列 ,其性能十分优异。 NSQ的优势有以下优势: NSQ提倡分布式和分散的拓扑,没有单点故障,支持容错和高可用性,并提供可靠的消息交付保证 NSQ支持横向扩展,没有任何集中式代理。 NSQ易于配置和部署,并且内置了管理界面。 NSQ的应用场景 通常来说,消息队列都 适用以下场景。 异步处理 参照下图利用消息队列把业务流程中的非关键流程异步化,从而显著降低业务请求的响应时间。 应用解耦 通过使用消息队列将不同的业务逻辑解耦,降低系统间的耦合,提高系统的健壮性。后续有其他业务要使用订单数据可直接订阅消息队列,提高系统的灵活性。 流量削峰 类似秒杀(大秒)等场景下,某一时间可能会产生大量的请求,使用消息队列能够为后端处理请求提供一定的缓冲区,保证后端服务的稳定性。 安装 官方下载页面 根据自己的平台下载并解压即可。 NSQ组件 nsqd nsqd是一个守护进程,它接收、排队并向客户端发送消息。 启动 nsqd , 指定 -broadcast-address=127.0.0.1 来配置广播地址 $./nsqd -broadcast-address=127.0.0.1 如果是在 搭配 nsqlookupd

Are there any existing programs for scraping Prometheus-formatted metrics and sending them to StatsD?

老子叫甜甜 提交于 2019-12-08 06:35:38
问题 I have an application that exposes metrics in the Prometheus format at an HTTP endpoint but want to run it in an environment that uses StatsD. Prometheus provides a program that accepts StatsD metrics and exports them to Prometheus, but I can't seem to find a program to do the reverse. I understand that all metric types might not map cleanly, but are there any such programs out there or libraries that do some of the work for you? 回答1: I'm not aware of any such tool, however several Prometheus

Obtaining a total of two series of data from InfluxDB in Grafana

霸气de小男生 提交于 2019-12-07 10:04:39
问题 I am perplexed at this point. I spent a day or three in the deep end of Influx and Grafana, to get some graphs plotted that are crucial to my needs. However, with the last one I need to total up two metrics (two increment counts, in column value). Let's call them notifications.one and notifications.two. In the graph I would like them displayed, it would work well as a total of the two, a single graph line, showing (notifications.one + notifications.two) instead of two separate ones. I tried