To integrate StatsD and Heroku with your monitoring system, please reach out to MetricFire. Book a demo with the MetricFire team to discuss integrating StatsD and Heroku and how that can support your monitoring system.
StatsD is an open-source network daemon that listens for statistics defined as counters, gauges, and timers sent via UDP, performs aggregation of this data, then sends it on to a configurable backend service - such as Hosted Graphite. You can use StatsD to perform such aggregation before sending your metrics to us by following this short guide:
{
port: 8125,
flushInterval: 10000,
graphitePort: 2003,
graphiteHost: "carbon.hostedgraphite.com",
graphite: {
legacyNamespace: false,
globalPrefix: "<your-api-key>"
}
}
The key benefit of using StatsD is the customizability. Unlike standard Agents, you can tailor StatsD to do exactly what you want. You can map out hundreds of metrics, give the metrics customized names, and have them sent into your monitoring backend. Once you collect and forward StatsD metrics to your Hosted Graphite account, you can use these metrics to build custom dashboards and alerts.
MetricFire manages a Heroku Add-On that forwards your Log-Drain output to a Hosted Graphite backend. All you need to do is provision the Add-On from within your Heroku UI, or from within your Heroku CLI with a similar command:
heroku addons:add hostedgraphite -a <app-name>
You can now navigate to your new account by clicking on the Hosted Graphite add-on link in the Heroku UI, and wait for the metrics to appear. You can use the Heroku dyno/router metrics to build custom dashboards and alerts. See the Hosted Graphite Heroku docs for more details and configuration options.
MetricFire also has automatically generated dashboards specifically designed for Heroku apps. Once you have provisioned the hostedgraphite Add-On with Heroku, you will be able to see your automatically generated dashboards displaying data from your Heroku app(s):
Additionally, you can create a Heroku app webhook in your Hosted Graphite account, and configure in your Heroku account to send annotations around your Heroku events, like when you provision Add-Ons or make a new deployment. Just navigate to Add-Ons => Heroku i your HG account and copy the webhook:
Now you can just copy this webhook and paste it into your Heroku account (More => View Webhooks => Create Webhook):
MetricFire is a full-scale platform that provides infrastructure, system, and application monitoring using a suite of open-source tools. We will aggregate and store your data as time series metrics, which can be used to build custom dashboards and alerts. MetricFire takes away the burden of self-hosting your own monitoring solution, allowing you more time and freedom to work on your most important tasks.
MetricFire offers a complete ecosystem of end-to-end infrastructure monitoring, comprised of open-source Graphite and Grafana. MetricFire handles the aggregation, storage, and backups of your data, and offers alerting, team features, and API's for easy management of your monitoring environment. You can send server metrics using one of our agents, custom metrics from within your application code, and integration metrics from a variety of popular 3rd party services that we integrate with like Heroku, AWS, Azure, GCP, and many more!
Our Hosted Graphite product has improved upon standard Graphite to add data dimensionality, optimized storage, and offers additional tools and features that provide customers with a robust and well-rounded monitoring solution.
By integrating inventory stats with your other K8 performance metrics, you can better correlate... Continue Reading