Find me at:
Liberal AF: #BLM #LGBTQ πΊπ¦
π Fuck Trump, Fuck Putin π
Stats sending for Adhearsion
License: MIT License
Find me at:
Liberal AF: #BLM #LGBTQ πΊπ¦
π Fuck Trump, Fuck Putin π
I'm not sure if this belongs in the library hard-coded, should be config, or should be left up to the Application exclusively. But I did something like this to namespace my probes to make it easier to separate development from production. This module was mixed in so that every call go #gauge
, #increment
or #timing
had prefixes:
module CoreUtility
def gauge(*args)
AdhearsionStats.gauge prefixed_label(args.shift), *args
end
def increment(*args)
# Increment gets a special label so it shows up in Graphite at a similar
# nesting level to timers and gauges
AdhearsionStats.increment "counters.#{prefixed_label(args.shift)}", *args
end
def timing(*args)
label = prefixed_label args.shift
if block_given?
start = Time.now
yield
value = Time.now - start
else
value = args.shift
end
AdhearsionStats.timing label, value
end
def prefixed_label(label)
"#{Adhearsion.config.platform.environment}.#{node_name}.#{label}"
end
def node_name
@node_name ||= Socket.gethostname.split('.').first
end
end
We should create a default counter for each exception that is raised within an Adhearsion app
Would be cool if there was an option to hook into Adhearsion::Statistics
with this plugin, so that graphite could graph all those stats with no programming needed on the users part...
Celluloid::Actor[:statistics]
to Celluloid::Actor[:statistics_original]
and insert our own Celluloid::Actor[:statistics]
that also sends stats.A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.