All Projects → deadtrickster → prometheus-cowboy

deadtrickster / prometheus-cowboy

Licence: MIT license
Expose Prometheus metrics using cowboy/cowboy2

Programming Languages

erlang
1774 projects
shell
77523 projects
elixir
2628 projects
emacs lisp
2029 projects

Projects that are alternatives of or similar to prometheus-cowboy

java-jaxrs
OpenTracing Java JAX-RS instrumentation
Stars: ✭ 37 (+94.74%)
Mutual labels:  instrumentation
dropwizard-zipkin
Dropwizard Zipkin Bundle
Stars: ✭ 48 (+152.63%)
Mutual labels:  instrumentation
uprobe-http-tracer
uprobe-based HTTP tracer for Go binaries
Stars: ✭ 45 (+136.84%)
Mutual labels:  instrumentation
opencensus-go-exporter-stackdriver
OpenCensus Go exporter for Stackdriver Monitoring and Trace
Stars: ✭ 65 (+242.11%)
Mutual labels:  instrumentation
call-graph
Capture execution and create dependency graphs.
Stars: ✭ 16 (-15.79%)
Mutual labels:  instrumentation
aws-lambda-powertools-typescript
A suite of utilities for AWS Lambda Functions that makes structured logging, creating custom metrics asynchronously and tracing with AWS X-Ray easier
Stars: ✭ 817 (+4200%)
Mutual labels:  instrumentation
console
Oracle Instrumentation Console: Lightweight PL/SQL logging tool inspired by the JavaScript Console
Stars: ✭ 14 (-26.32%)
Mutual labels:  instrumentation
ghostwriter
Solutions for instrumenting application flow tracking API calls into an existing code base in a non-invasive way
Stars: ✭ 17 (-10.53%)
Mutual labels:  instrumentation
swagger routerl
Routing library that generate the routing table from swagger.yaml.
Stars: ✭ 14 (-26.32%)
Mutual labels:  cowboy
asprom
Aerospike prometheus exporter
Stars: ✭ 38 (+100%)
Mutual labels:  instrumentation
e9afl
AFL binary instrumentation
Stars: ✭ 234 (+1131.58%)
Mutual labels:  instrumentation
metrics-okhttp
An OkHttp HTTP client wrapper providing Metrics instrumentation of connection pools, request durations and rates, and other useful information.
Stars: ✭ 18 (-5.26%)
Mutual labels:  instrumentation
zipkin-ruby-opentracing
OpenTracing Tracer implementation for Zipkin in Ruby
Stars: ✭ 15 (-21.05%)
Mutual labels:  instrumentation
sdks
Polyaxon Clients & Langange SDKS
Stars: ✭ 12 (-36.84%)
Mutual labels:  instrumentation
connect-usage
Report on RStudio Connect Usage
Stars: ✭ 24 (+26.32%)
Mutual labels:  instrumentation
prometheus-plugs
Prometheus.erl Elixir Plugs
Stars: ✭ 52 (+173.68%)
Mutual labels:  instrumentation
nginx-opentracing
Instrument nginx for OpenTracing.
Stars: ✭ 21 (+10.53%)
Mutual labels:  instrumentation
uplift
Compatibility layer for running Orbis executables natively on Windows.
Stars: ✭ 42 (+121.05%)
Mutual labels:  instrumentation
money
Dapper Style Distributed Tracing Instrumentation Libraries
Stars: ✭ 65 (+242.11%)
Mutual labels:  instrumentation
gryllidae
Opinionated CNCF-based, Docker Compose setup for everything needed to develop a 12factor app
Stars: ✭ 18 (-5.26%)
Mutual labels:  instrumentation

prometheus_cowboy

Copyright (c) 2017 Ilya Khaprov <[email protected]>.

Version: 0.1.8

Hex.pm Hex.pm Downloads Build Status

Exporting metrics with handlers

Cowboy 1:

Routes = [
          {'_', [
                 {"/metrics/[:registry]", prometheus_cowboy1_handler, []},
                 {"/", toppage_handler, []}
                ]}
         ]

Cowboy 2:

Routes = [
          {'_', [
                 {"/metrics/[:registry]", prometheus_cowboy2_handler, []},
                 {"/", toppage_handler, []}
                ]}
         ]

Exporting Cowboy2 metrics

  {ok, _} = cowboy:start_clear(http, [{port, 0}],
                               #{env => #{dispatch => Dispatch},
                                 metrics_callback => fun prometheus_cowboy2_instrumenter:observe/1,
                                 stream_handlers => [cowboy_metrics_h, cowboy_stream_h]})

Contributing

Section order:

  • Types
  • Macros
  • Callbacks
  • Public API
  • Deprecations
  • Private Parts

Install the git pre-commit hook:

./bin/pre-commit.sh install

The pre-commit check can be skipped by passing --no-verify to git commit.

License

MIT

Modules

prometheus_cowboy
prometheus_cowboy1_handler
prometheus_cowboy2_handler
prometheus_cowboy2_instrumenter
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].