--- title: Stackdriver overview: Adapter to deliver logs and metrics to Stackdriver location: https://istio.io/docs/reference/config/adapters/stackdriver.html layout: protoc-gen-docs number_of_entries: 10 ---
The stackdriver adapter enables Istio to deliver log and metric data to the
Stackdriver logging and monitoring backend.
Configuration format for the stackdriver adapter.
Describes how to represent an Istio Log in Stackdriver.
Maps from template variable names to the various fields of Stackdriver’s HTTP request struct. See https://godoc.org/cloud.google.com/go/logging#HTTPRequest
Describes how to represent an Istio metric in Stackdriver. See https://github.com/googleapis/googleapis/blob/master/google/api/metric.proto
Describes buckets for DISTRIBUTION valued metrics. TODO: look into using google.api.distribution.proto instead - we would pull it in but it has a ton of dependencies it doesn’t actually use.
Specifies a set of buckets with arbitrary widths.
There are size(bounds) + 1 (= N) buckets. Bucket i has the following
boundaries:
0 <= i < N-1): bounds[i]1 <= i < N): bounds[i - 1]The bounds field must contain at least one element. If bounds has
only one element, then there are no finite buckets, and that single
element is the common boundary of the overflow and underflow buckets.
Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.
There are num_finite_buckets + 2 (= N) buckets. The two additional
buckets are the underflow and overflow buckets.
Bucket i has the following boundaries:
scale * (growth_factor ^ i)scale * (growth_factor ^ (i - 1))Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.
There are num_finite_buckets + 2 (= N) buckets. The two additional
buckets are the underflow and overflow buckets.
Bucket i has the following boundaries:
0 <= i < N-1): offset + (width * i)1 <= i < N): offset + (width * (i - 1))The kind of measurement. It describes how the data is reported.
| Name | Description |
|---|---|
METRIC_KIND_UNSPECIFIED |
Do not use this default value. |
GAUGE |
An instantaneous measurement of a value. |
DELTA |
The change in a value during a time interval. |
CUMULATIVE |
A value accumulated over a time interval. Cumulative measurements in a time series should have the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points. |
The value type of a metric.
| Name | Description |
|---|---|
VALUE_TYPE_UNSPECIFIED |
Do not use this default value. |
BOOL |
The value is a boolean.
This value type can be used only if the metric kind is |
INT64 |
The value is a signed 64-bit integer. |
DOUBLE |
The value is a double precision floating point number. |
STRING |
The value is a text string.
This value type can be used only if the metric kind is |
DISTRIBUTION |
The value is a |
MONEY |
The value is money. |