News KrakenD Enterprise v2.6 released with OpenTelemetry, FIPS-140, gRPC server and more

Enterprise Documentation

Recent changes

You are viewing a previous version of KrakenD Enterprise Edition (v2.0) , go to the latest version

Exporting metrics, logs and events to Google Stackdriver

Document updated on Sep 15, 2019

Google Stackdriver aggregates metrics, logs, and events from infrastructure, giving developers and operators a rich set of observable signals that speed root-cause analysis and reduce mean time to resolution (MTTR).

The Opencensus exporter allows you export data to Google Stackdriver. Enabling it only requires you to add the stackdriver exporter in the opencensus module.

The following configuration snippet sends the data:

{
  "extra_config": {
    "telemetry/opencensus": {
      "exporters": {
        "stackdriver": {
          "project_id": "my-krakend-project",
          "metrics_prefix": "krakend",
          "default_labels": {
          "env": "production"
          }
        }
      }
    }
  }
}
  • project_id: The identifier of your Google Cloud project.
  • metrics_prefix: A prefix that you can add to all your metrics for better organization.
  • default_labels: Enter here any label that will be assigned by default to the reported metric so you can filter later on Stack Driver. In the example we set a label env with the value production.

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

Scarf

Unresolved issues?

The documentation is only a piece of the help you can get! Whether you are looking for Open Source or Enterprise support, see more support channels that can help you.