package tiny_httpd

  1. Overview
  2. Docs
Minimal HTTP server using threads

Install

Dune Dependency

Authors

Maintainers

Sources

tiny_httpd-0.18.tbz
sha256=ef806444b2f9e53d10976b9124902560d0855124433537080e6d0bec48d202e5
sha512=539530eb9e511b6ed4d69bb083f421d5f51b183c347c116a52f24210f30b1c9b14a029e2b82d6e0d698c74ab75ba5c307a1976711558a1419df287335b2a8f51

doc/tiny_httpd.prometheus/Tiny_httpd_prometheus/index.html

Module Tiny_httpd_prometheusSource

Expose metrics over HTTP in the prometheus format.

This sub-library tiny_httpd.prometheus provides definitions for counters, gauges, and histogram, and endpoints to expose them for Prometheus to scrape them.

  • since 0.16
Sourcetype tags = (string * string) list
Sourcemodule Registry : sig ... end

Registry for metrics.

Sourceval global : Registry.t
Sourcemodule Counter : sig ... end

Counters

Sourcemodule Gauge : sig ... end

Gauges

Sourcemodule Histogram : sig ... end

Middleware to get basic metrics about HTTP requests

Sourceval add_route_to_server : Tiny_httpd_core.Server.t -> Registry.t -> unit

Add a "/metrics" route to the server

Sourceval instrument_server : Tiny_httpd_core.Server.t -> Registry.t -> unit

Add middleware and route

Sourcemodule GC_metrics : sig ... end
OCaml

Innovation. Community. Security.