Skip to content

Commit

Permalink
Add mixin for Ruby Rack applications. (grafana#447)
Browse files Browse the repository at this point in the history
This mixin includes a dashboard to monitor Ruby Rack applications using
the default middleware collector from Prometheus's client library.

The dashboard follows RED method and shows rate of http requests,
requests duration and rate of errors (5xx response codes).
  • Loading branch information
cristiangreco authored Feb 5, 2021
1 parent 98dc5f3 commit a5c8e40
Show file tree
Hide file tree
Showing 3 changed files with 450 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ruby-mixin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Ruby Mixin

_This mixin is a work in progress. We aim for it to become a good role model for dashboards eventually, but it's not there yet._

Mixins are a collection of configurable, reusable Prometheus rules, alerts and/or Grafana dashboards for a particular system, usually created by experts in that system. By applying them to Prometheus and Grafana, you can quickly set up appropriate monitoring for your systems.

This mixin is for Ruby applications, and contains a dashboard for visualizing the http metrics produced by the [Rack middleware collector](https://github.com/prometheus/client_ruby/blob/master/lib/prometheus/middleware/collector.rb) included with the Prometheus client library for Ruby.

To use the mixin, you need to have `mixtool` and `jsonnetfmt` installed. If you have a working Go development environment, it's easiest to run the following:

```bash
$ go get github.com/monitoring-mixins/mixtool/cmd/mixtool
$ go get github.com/google/go-jsonnet/cmd/jsonnetfmt
```

For more advanced uses of mixins, see https://github.com/monitoring-mixins/docs.
Loading

0 comments on commit a5c8e40

Please sign in to comment.