API Gateway Community v1.3

Older version: v1.3

Released on February 24, 2021

Document updated on

Exporting metrics to Prometheus

Prometheus is an open-source systems monitoring and alerting toolkit.

The Opencensus exporter allows you push data to Prometheus. Enabling it only requires you to include in the root level of your configuration the Opencensus middleware with the prometheus exporter. Specify the port on which Prometheus is running, the namespace (optional), and Prometheus will start receiving the data.

"github_com/devopsfaith/krakend-opencensus": {
    "exporters": {
      "prometheus": {
          "port": 9091,
          "namespace": "krakend"
      }
  }
}
  • port on which Prometheus is listening
  • namespace sets the domain the metric belongs to. Optional field.

See also the additional settings of the Opencensus module that can be declared.