codahale   49

redstarssystems/metrics: Metrics library designed to perform application monitoring.
Metrics library designed to perform application monitoring. - redstarssystems/metrics
clojure  metrics  slf4j  codahale  jmx  console  logs  log  statsd 
2 days ago by fmjrey
gquintana/metrics-sql
This a Yammer|Codahale|Dropwizard Metrics extension to instrument JDBC resources and measure SQL execution times.

Build Status
Setup
DataSource level

Wrap your existing DataSource using JdbcProxyFactory or MetricsSql builder class:

metricRegistry = new MetricRegistry();
dataSource = MetricsSql.forRegistry(metricRegistry)
.wrap("mysql", mysqlDataSource);

The String mysql is a datasource Id used in metric names.
Connection level

Same as DataSource

metricRegistry = new MetricRegistry();
connection = MetricsSql.forRegistry(metricRegistry)
.wrap("mysql", mysqlConnection);

Driver level

Register Metrics SQL JDBC Driver: replace the original JDBC driver by com.github.gquintana.metrics.sql.Driver
Change JDBC URL prefix: jdbc:xxx becomes jdbc:metrics:xxx

Examples:

jdbc:metrics:mysql://localhost:3306/sakila?profileSQL=true&metrics_name=sakila
jdbc:metrics:postgresql://localhost/demo?metrics_driver=org.postgresql.Driver&ssl=true
jdbc:metrics:h2:~/test;AUTO_SERVER=TRUE;;AUTO_RECONNECT=TRUE;metrics_driver=org.h2.Driver;metrics
metrics-sql  codahale  metrics  jdbc  proxy  github  gquintana 
april 2015 by bfritz
(JVM) Metrics + Grails = Awesomeness | Voxxed
So I would like this application to behave properly, and in a more than ideal world, what I would want to find would be :

Operation manuals – how to setup and configure the application
Start and stop scripts
Monitoring entry points
Healthchecks for load balancers and monitoring tools
Latches for maintenance: easy way to make a web app return 503 errors on purpose (maintenance mode). For instance, to remove it from a load balancer and update its configuration while the rest of the servers are happily serving requests).

You often find 1 and 2, but I’ve rarely found any of last 3 items in that list. Have you ever seen all of that in your standard, out-of-the-box Java application?

To my knowledge, only one Java framework has most of that embedded right into its core: Dropwizard. Check it out. That fat jar idea: including everything the application needs into one big jar file, including the servlet container, and use an external configuration file in YML is a dream come true for an operator.
Enter metrics

From the same nice guys who wrote DropWizard comes a very fine library, metrics, which plugs easily into any Java application and provides annotations to add meters, gauges, histograms, etc…to any method in your application. You can also easily write simple health checks.

The library also comes with a servlet that allows anyone (so you have to take care of controlling access to that servlet in the container) to access the recorded metrics as simple JSON documents, and a simple page which will return a 500 HTTP return code if one of the registered health checks doesn’t pass.
grails  codahale  dropwizard  metrics  webops  jvm  jmx  blog 
february 2015 by bfritz
rcrowley/go-metrics
go-metrics - Go port of Coda Hale's Metrics library
golang  metrics  codahale 
february 2014 by pinterb

related tags

2010  2010_01_31  2011  2011_02_24  443  advice  akka  apache  architecture  articles  attack  availability  basho  bcrypt  bcryptruby  benbertola  best-practices  bicycle  blacklocus  blog  business  cap  clojure  cloudwatch  coda-hale  coda  codeconf  coding  computer  computers  consistency  console  cracking  cryptography  cryptology  culture  database  databases  decay  distributed  distributedsystems  donaldfischer  drama  dropwizard  egineering-llc  encryption  etsy  evaluation  failure  february  framework  gist  github  go  golang  good  gquintana  grails  graphite  hale  hash  hashes  hashing  histogram  hmac  host  infrastructure  instrumental  january  java  javascript  javasimon  jdbc  jmason  jmx  jvm  kafka  languages  libraries  log  log4j  logback  logs  martinodersky  md5  metrics-kafka  metrics-sql  metrics-watcher  metrics  mongrel  monitor  monitoring  moskito  node.js  nosql  observability  partition  password  passwords  performance  presentation  programming  proxy  python  read  reporter  rest  riemann  ruby  salt  salts  sample  scala  scalability  scaling  security  servo  sha1  sha256  sha3  sha512  slf4j  slides  slideshare  snippets  software  ssl  statsd  tech  technology  theorem  threading  threads  timer  tracing  tulipmetrics  tulipplatform  tutorial  vhosts  virtual  virtualhost  visualization  webops  work  yammer  yammermetrics  zipkin 

Copy this bookmark:



description:


tags: