Part 1: Adding custom metrics to a Phoenix 1.5 live dashboard

The code for this demo is available here

As I mentioned in the previous post, one of the downsides to the new Phoenix live dashboard is that the metrics and graphs are transient. …


Part 2: Sending Phoenix 1.5 metrics to InfluxDb

The code for this demo is available here

To get started, make sure you have the Phoenix 1.5 project generator:

mix archive.uninstall phx_new
mix archive.install hex phx_new 1.5.1

Create a new Phoenix 1.5 project:

mix phx.new metrics_demo
cd metrics_demo && mix ecto.create


The Heroku buildpacks make some assumptions about your project based on earlier versions, but with a few tweaks can be used with version 1.4 of Elixir and 1.3 of Phoenix.

This assumes you created your project with mix phx.new hello_phoenix --umbrella. …


In case you missed it, check out Part 1.

Creating the URL to HTML Lambda

The first lambda works great, and is actually all we’re using for our original use case. However, uploading html files to S3 is a little clunky. …


Creating PDFs from HTML with AWS Lambda and API Gateway

There are quite a few cases in which we’d like to be able to output a dynamic PDF (invoices, statements, receipts, etc.) However, our experience has been that working with PDF templates and editors is fairly painful. We would instead like to be able to work with the tools we’re…


Say you’re writing a test and you have an intermediate method that takes some input and uses it to construct some output. In the context of your test case you don’t care what this intermediate method does, but the method under test expects the output to correspond to the input.


We’ve all been guilty of doing a lazy git commit -a, accidentally including a file we didn’t mean to in the commit. Or perhaps you meant to at the time, but later decided to split it into two commits. You can easily fix this with git reset.

TL;DR

I know you’re…

Marc Delagrammatikas

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store