Document updated on May 3, 2021
Since | v1.1 |
---|---|
Namespace | telemetry/opencensus |
Log prefix | [SERVICE: Opencensus] |
Scope | service |
Source | krakend/krakend-opencensus |
The ocagent
exporter sends OpenCensus Stats and Traces to the OpenCensus Agent, instead of pushing data to backends’ exporters.
For instance, you can enable ocagent to upload data to the OpenCensus Agent, and from there, the agent is simply scraped by a Prometheus.
You can integrate the OpenCensus Agent with Azure Monitor, Jaeger, or Prometheus to name a few examples.
Enabling it only requires you to add the ocagent
exporter in the opencensus module.
The following configuration snippet sends the data:
{
"extra_config": {
"telemetry/opencensus": {
"exporters": {
"ocagent": {
"address": "collector",
"service_name": "krakend",
"reconnection": "2s",
"insecure": false,
"enable_compression": true,
"headers": {
"header1": "value1"
}
}
}
}
}
address
(string): The address of your Azure Monitor collector.service_name
(string): An identifier of your service.reconnection
(time): The reconnection time, you need to specify its units, examples: 1000ms
, 2s
, 1m
insecure
(bool): Whether the connection can be established in plain or not.enable_compression
(bool): Whether to send data compressed or not.headers
(object): List of keys and values for the headers sent:See also the additional settings of the Opencensus module that can be declared.
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.