graphite

Sending System Metrics to Graphite with Spring-Boot

半城伤御伤魂 提交于 2019-12-07 17:55:12
问题 Spring-Boot actuator exposes many useful metrics at /metrics such as uptime, memory usage, GC count. Only a subset of these are sent to Graphite when using the Dropwizard Metrics integration. In specific, only the counters and gauges Is there any way to get these other metrics to be published to graphite? The documentation suggests that it should be possible: Users of the Dropwizard ‘Metrics’ library will find that Spring Boot metrics are automatically published to com.codahale.metrics

聊聊storm的GraphiteStormReporter

人走茶凉 提交于 2019-12-07 01:48:41
序 本文主要研究一下storm的GraphiteStormReporter GraphiteStormReporter storm-core-1.2.2-sources.jar!/org/apache/storm/metrics2/reporters/GraphiteStormReporter.java public class GraphiteStormReporter extends ScheduledStormReporter { private final static Logger LOG = LoggerFactory.getLogger(GraphiteStormReporter.class); public static final String GRAPHITE_PREFIXED_WITH = "graphite.prefixed.with"; public static final String GRAPHITE_HOST = "graphite.host"; public static final String GRAPHITE_PORT = "graphite.port"; public static final String GRAPHITE_TRANSPORT = "graphite.transport"; @Override public void

Storing Months of Historical Metrics from Hystrix in Graphite

时间秒杀一切 提交于 2019-12-06 11:09:17
摘要:RelatedMicroZoneResourcesWhyyouneedtoestablishaDevOpscultureHowtheEvernoteopsteamgetspeaceofmindfromPagerDuty'ssmartalerting&;on-callschedulingMetrics-DrivenDevelopmentNewCompositeMetricsLanguageFunctionsMetrics-DrivenDevelopment-PartII Related MicroZone Resources Why you need to establish a DevOps culture How the Evernote ops team gets peace of mind from PagerDuty's smart alerting &; on-call scheduling Metrics-Driven Development New Composite Metrics Language Functions Metrics-Driven Development - Part II Like this piece? Share it with your friends: One of the killer-features of Hystrix is

安装Collectd+Statsd + Graphite 监控openstack swift

ぃ、小莉子 提交于 2019-12-06 01:07:52
Graphite 安装必要软件包: $ sudo apt-get install apache2 libapache2-mod-wsgi python-django \ python-twisted python-cairo python-pip python-django-tagging 用 pip 安装 whisper (简单的存放和操作数据的库), carbon (监控数据的 Twisted 守护进程) 和 graphite-web (Django webapp): $ sudo pip install whisper $ sudo pip install carbon $ sudo pip install graphite-web 初始化配置,直接用 example 文件里的默认配置就可以: $ cd /opt/graphite/conf/ $ sudo cp carbon.conf.example carbon.conf $ sudo cp storage-schemas.conf.example storage-schemas.conf $ sudo cp graphite.wsgi.example graphite.wsgi 修改 apache 配置,增加一个 vhost 或者偷懒下载一个配置文件覆盖 default,覆盖后需要重新 reload 配置: $ wget

Sending System Metrics to Graphite with Spring-Boot

寵の児 提交于 2019-12-05 23:26:24
Spring-Boot actuator exposes many useful metrics at /metrics such as uptime, memory usage, GC count. Only a subset of these are sent to Graphite when using the Dropwizard Metrics integration. In specific, only the counters and gauges Is there any way to get these other metrics to be published to graphite? The documentation suggests that it should be possible: Users of the Dropwizard ‘Metrics’ library will find that Spring Boot metrics are automatically published to com.codahale.metrics.MetricRegistry System Metrics created by Spring boot are not reported automatically because MetricsRegistry

How to alert in Seyren with Graphite if transactions in last 60 minutes are less than x?

旧时模样 提交于 2019-12-05 23:21:12
问题 I'm using Graphite+Statsd (with Python client) to collect custom metrics from a webapp: a counter for successful transactions. Let's say the counter is stats.transactions.count , that also has a rate/per/second metric available at stats.transactions.rate . I've also setup Seyren as a monitor+alert system and successfully pulled metrics from Graphite. Now I want to setup an alert in Seyren if the number of successful transactions in the last 60 minutes is less than a certain minimum . Which

Graphite will only display data for the past 24 hours

血红的双手。 提交于 2019-12-05 15:44:39
问题 Here's the display for a stat for the past 24 hours (in Graphite Composer): Here's the display for a stat for the "past 14 days": Not much difference there. I cannot convince Graphite to display any data for any period past the past 24 hours. Here are the relavent entries from storage-schemas.conf (I'm using StatsD): [stats] pattern = ^stats.* retentions = 10:2160,60:10080,600:262974 [stats_counts] pattern = ^stats_counts.* retentions = 10:2160,60:10080,600:262974 and my storage-aggregation

Graphite, datapoints disappear if I choose a wider time range

北慕城南 提交于 2019-12-05 04:42:19
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 resolution of the datapoints are every 10 seconds and when the date range chosen is 7 hours or bigger

Graphite 介绍

帅比萌擦擦* 提交于 2019-12-04 19:26:55
Overview 概述 What Graphite is and is not ? Graphite能做什么和不能做什么? Graphite does two things: Graphite 做两件事情: Store numberic time-series data 存储 numberic time-series 数据 Render graphs of this data on demand 使用这些数据按需求渲染图表 What Graphite does not do is collect data for you, Graphite 不能为你收集数据, however there are some tools out there that know how to send data to graphite. 然而这里有很多工具,使用它们发送数据给graphite. Even though if often requires a little code , sending data to Graphite is very simple. 虽然这需要一点代码, 但是发送数据给Graphithe非常简单。 About the project 关于这个项目 Graphite is an enterprise-scale monitoring tool that runs well

Replace image and javascript absolute paths through proxy_redirect in nginx

半城伤御伤魂 提交于 2019-12-04 19:24:18
I have a scenario as follows. Nginx is being used as a reverse proxy to a apache server listening at port 8080. nginx is running at port 80. There is a wsgi application which is being run by the apache server. Now, I have added a proxy_pass to the nginx configuration such that whatever requests come to localhost/ (nginx port is the default port 80) they get redirected to localhost:8080. Here is an excerpt from the nginx conf file: server { listen 80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; location <app_name> { proxy