graphite

Collectd pushes the actual host system metrics to graphite instead of the docker container's restricted system metrics

て烟熏妆下的殇ゞ 提交于 2019-12-11 13:00:52
问题 I've a docker container deployed with a memory restriction of 300M and CPU-1 Core. When the container starts and my program executes, it is adhering the memory restriction to 300M and CPU to 1st CPU Core. However the collectd running inside the container pushes the metrics of Memory and Swap memory of the actual box ( 16 GB RAM ) instead of the restricted containers (300MB RAM). Is there any configuration that I'm missing? Docker run command: docker run -e CONTAINER_NAME='sample_docker

Change Grafana's headers (Access-Control-Allow-Origin)

六眼飞鱼酱① 提交于 2019-12-11 05:47:07
问题 I'm trying to display a Grafana dashboard within a plain PHP page. I followed the website instructions to authentiate with oauth. Here is my code: <?php $ch = curl_init(); $authorization = "Authorization: Bearer <myToken>"; curl_setopt_array( $ch, array( CURLOPT_URL => 'url-to-my-dashboard', CURLOPT_HTTPHEADER => array('Content-Type: application/json' , $authorization), CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPAUTH => "HTTP/1.1" )); $output = curl_exec($ch); ?> <html> <head> <meta http

show graphite invalid lines

爷,独闯天下 提交于 2019-12-11 01:52:33
问题 I see lots of lines like this in my graphite logs: 01/10/2014 21:07:12 :: [listener] invalid line received from client HOST:PORT, ignoring It would greatly help if I could see the invalid line. Some documentation and tutorials suggest graphite would print the offending line directly after the invalid warning, but for me it doesn't. How can I enable this property? Thanks. 回答1: So my attempt to troubleshoot this was a total hack but it worked for me. Steps Edit protocol.py ( /opt/graphite/lib

JMeter - Graphite Backend listener rootmetricsPrefix taking previously generated value

和自甴很熟 提交于 2019-12-10 19:17:31
问题 Background : I am using graphite to store the data generated during the performance test and ideally, we would like to look at the historical graphs as well. Hence, I am creating a rootMetricsPrefix folder name dynamically in a setup thread group and assigning it to a property. The backend listener is in a different thread group and the configuration uses this folder name as the rootMetricsPrefix - <elementProp name="rootMetricsPrefix" elementType="Argument"> <stringProp name="Argument.name"

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

Collectd's curl_json plugin not sending data to graphite

痴心易碎 提交于 2019-12-10 10:46:48
问题 I've implemented curl_jason plugin to recolect and send LoadBalancer metrics to my RabbitMQ to be graphed in Graphite. Thing is, it's not sending any data, while it is working just fine (and great) with other plugins like memory, cpu, df root, network, etc. I've tried to troubleshoot following this suggestion: https://serverfault.com/questions/499378/collectd-stores-nan-instead-of-correct-value-in-ubuntu-12-04, but there're no issues coming out. Here's my collectd.conf: https://gist.github

Graphite, datapoints disappear if I choose a wider time range

南笙酒味 提交于 2019-12-10 03:55:52
问题 If I ask for this data: https://graphite.it.daliaresearch.com/render?from=-2hours&until=now&target=my.key&format=json I get, among other datapoints, this one: [ 2867588, 1398790800 ] If I ask for this data: https://graphite.it.daliaresearch.com/render?from=-10hours&until=now&target=my.key&format=json The datapoint looks like this: [ null, 1398790800 ] Why this datapoint is being nullified when I choose a wider time range? Update I'm seeing that for a chosen date range smaller than 7 hours the

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

Graphite: multiple series with a single command

萝らか妹 提交于 2019-12-09 05:26:37
问题 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? 回答1: You have a few options here... Merge the 2 graphs on to the graph via the drag and drop in

accumulation of value in Graphite

血红的双手。 提交于 2019-12-08 14:47:06
问题 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