From f8909f218a3939b1034002db7e2f564dc5662792 Mon Sep 17 00:00:00 2001 From: Francisco Valente Date: Mon, 28 Mar 2022 18:48:44 +0000 Subject: [PATCH] Add documentation for labels parameter in out_stackdriver. Signed-off-by: Francisco Valente --- pipeline/outputs/stackdriver.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pipeline/outputs/stackdriver.md b/pipeline/outputs/stackdriver.md index 78b5a34a3..6dcd0271d 100644 --- a/pipeline/outputs/stackdriver.md +++ b/pipeline/outputs/stackdriver.md @@ -26,6 +26,7 @@ Before to get started with the plugin configuration, make sure to obtain the pro | k8s\_cluster\_name | The name of the cluster that the container \(node or pod based on the resource type\) is running in. If the resource type is one of the _k8s\_container_, _k8s\_node_ or _k8s\_pod_, then this field is required. | | | k8s\_cluster\_location | The physical location of the cluster that contains \(node or pod based on the resource type\) the container. If the resource type is one of the _k8s\_container_, _k8s\_node_ or _k8s\_pod_, then this field is required. | | | labels\_key | The value of this field is used by the Stackdriver output plugin to find the related labels from jsonPayload and then extract the value of it to set the LogEntry Labels. | logging.googleapis.com/labels | +| labels | Optional list of comma separated of strings specifying `key=value` pairs. The resulting `labels` will be combined with the elements in obtained from `labels\_key` to set the LogEntry Labels. Elements from `labels` will override duplicate values from `labels\_key`.| | | tag\_prefix | Set the tag\_prefix used to validate the tag of logs with k8s resource type. Without this option, the tag of the log must be in format of k8s\_container\(pod/node\).\* in order to use the k8s\_container resource type. Now the tag prefix is configurable by this option \(note the ending dot\). | k8s\_container., k8s\_pod., k8s\_node. | | severity\_key | Specify the name of the key from the original record that contains the severity information. | | | autoformat\_stackdriver\_trace | Rewrite the _trace_ field to include the projectID and format it for use with Cloud Trace. When this flag is enabled, the user can get the correct result by printing only the traceID (usually 32 characters). | false |