twitter icon

Blog

OpenCensus with Prometheus and Kubernetes

Twitter profile image
on Jan 18, 2018

Yesterday, Google announced OpenCensus, an instrumentation framework for monitoring and tracing. It comes with a set of client libraries for Golang and Java, with more to come. More importantly, it introduces a set of abstractions (records, views, exporters) that could shape how apps will be instrumented.

Today we’ve been kicking the tyres by building their example Go app and connecting it to a local Prometheus.

Developing Grafana Dashboards with Jsonnet

Twitter profile image
on Jan 17, 2018

We are currently developing KLUMPS, a set of preconfigured Kubernetes dashboards for Grafana. To define these dashboards we are using Jsonnet, a JSON templating language. This allows us to define panel templates that we can compose and parameterize, like g.queryPanel('up{job="node-exporter"}') which outputs tens of lines of JSON for a time-series chart (we’ll write another blog post about why and how we are using Jsonnet). These templates are ideal for large repetitive configurations like Grafana dashboards. This blog post describes the development setup we use to achieve a short feedback loop while working on the dashboards.

Videos from CloudNativeCon Austin

Twitter profile image
on Dec 19, 2017

I recently presented “The RED Method: How to Instrument Your Services” at CloudNativeCon Austin. The conference was a blast, and whilst my talk was beset by a couple of technical challenges I still think it went quite well! Here’s the video for those who couldn’t make it, and a full write up will be coming in the next few weeks:

Prometheus Tab-completion For Everybody

Twitter profile image
on Nov 22, 2017

I still remember my first steps with PromQL. Even after I learned more about the available functions and the Prometheus data model, the queries just would not flow as quickly as I liked. At Kausal, we believe making the writing of those queries easier will benefit the general adoption of Prometheus. That is why we decided to make our PromQL query editor open source.

Usage overview

The editor comes with tab-completion for metric names, label keys, label values, ranges, etc. It is now available as prom-editor at our public mono-repo: https://github.com/kausalco/public, wrapped inside an example React application. We previously wrote about Slate and Prism, the underlying editor libraries. This blog post will dive a little deeper into the mechanics of the editor and its integration into an application.

The RED Method: How To Instrument Your Services

Twitter profile image
on Nov 17, 2017

I recently gave a preview of my CloudNativeCon 2017 talk at the London Go User Group and turns out they live streamed it! Here is the recording, skip to 57mins for my talk: