{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/fluent-plugin-google-cloud/issues/193","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/fluent-plugin-google-cloud","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/fluent-plugin-google-cloud/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/fluent-plugin-google-cloud/issues/193/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/fluent-plugin-google-cloud/issues/193/events","html_url":"https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud/issues/193","id":278422936,"node_id":"MDU6SXNzdWUyNzg0MjI5MzY=","number":193,"title":"Include instance labels in COMPUTE_CONSTANTS for Google Compute Engine","user":{"login":"eastlondoner","id":8148776,"node_id":"MDQ6VXNlcjgxNDg3NzY=","avatar_url":"https://avatars3.githubusercontent.com/u/8148776?v=4","gravatar_id":"","url":"https://api.github.com/users/eastlondoner","html_url":"https://github.com/eastlondoner","followers_url":"https://api.github.com/users/eastlondoner/followers","following_url":"https://api.github.com/users/eastlondoner/following{/other_user}","gists_url":"https://api.github.com/users/eastlondoner/gists{/gist_id}","starred_url":"https://api.github.com/users/eastlondoner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eastlondoner/subscriptions","organizations_url":"https://api.github.com/users/eastlondoner/orgs","repos_url":"https://api.github.com/users/eastlondoner/repos","events_url":"https://api.github.com/users/eastlondoner/events{/privacy}","received_events_url":"https://api.github.com/users/eastlondoner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-01T10:31:39Z","updated_at":"2018-11-20T09:53:04Z","closed_at":null,"author_association":"NONE","body":"This is a feature suggestion:\r\n\r\nGCE allows administrators to apply [resource labels](https://cloud.google.com/compute/docs/labeling-resources). \r\n\r\nOne of the main reasons for using labels is to create arbitrary groupings of resources.\r\n \r\nIt would be really great if the resource labels for a compute instance were automatically included in the Stackdriver logs for that instance so users could easily search for all logs from instances with a particular label.\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/fluent-plugin-google-cloud/issues/comments/440211821","html_url":"https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud/issues/193#issuecomment-440211821","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/fluent-plugin-google-cloud/issues/193","id":440211821,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDIxMTgyMQ==","user":{"login":"eastlondoner","id":8148776,"node_id":"MDQ6VXNlcjgxNDg3NzY=","avatar_url":"https://avatars3.githubusercontent.com/u/8148776?v=4","gravatar_id":"","url":"https://api.github.com/users/eastlondoner","html_url":"https://github.com/eastlondoner","followers_url":"https://api.github.com/users/eastlondoner/followers","following_url":"https://api.github.com/users/eastlondoner/following{/other_user}","gists_url":"https://api.github.com/users/eastlondoner/gists{/gist_id}","starred_url":"https://api.github.com/users/eastlondoner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eastlondoner/subscriptions","organizations_url":"https://api.github.com/users/eastlondoner/orgs","repos_url":"https://api.github.com/users/eastlondoner/repos","events_url":"https://api.github.com/users/eastlondoner/events{/privacy}","received_events_url":"https://api.github.com/users/eastlondoner/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T09:53:04Z","updated_at":"2018-11-20T09:53:04Z","author_association":"NONE","body":"@qingling128 It doesn't happen today.\r\nI have an instance with an `environment` label. When I look at logs from that instance I only see:\r\n```\r\n{\r\n insertId:  \"1o7kg3tg2iumqcb\"   \r\n jsonPayload: {\r\n  MESSAGE:  \"I1120 09:46:31.278769    3083 server.go:796] GET /metrics: (20.703208ms) 200 [[python-requests/2.19.1] 10.8.2.5:59990]\"    \r\n  PRIORITY:  \"6\"    \r\n  SYSLOG_FACILITY:  \"3\"    \r\n  SYSLOG_IDENTIFIER:  \"kubelet\"    \r\n  _BOOT_ID:  \"b4215ff6aa9648f3b9dd10b1328e6b53\"    \r\n  _CAP_EFFECTIVE:  \"3fffffffff\"    \r\n  _CMDLINE:  ...\r\n  _COMM:  \"kubelet\"    \r\n  _EXE:  \"/home/kubernetes/bin/kubelet\"    \r\n  _GID:  \"0\"    \r\n  _HOSTNAME:  ...\r\n  _MACHINE_ID:  ...\r\n  _PID:  \"3083\"    \r\n  _SYSTEMD_CGROUP:  \"/system.slice/kubelet.service\"    \r\n  _SYSTEMD_INVOCATION_ID:  \"8aee3f7f32e54b86a4ff49eb85b2292f\"    \r\n  _SYSTEMD_SLICE:  \"system.slice\"    \r\n  _SYSTEMD_UNIT:  \"kubelet.service\"    \r\n  _TRANSPORT:  \"stdout\"    \r\n  _UID:  \"0\"    \r\n }\r\n labels: {\r\n  compute.googleapis.com/resource_name:  \"fluentd-gcp-v3.1.0-bsw9d\"    \r\n }\r\n logName:  \"projects/neo4j-cloud/logs/kubelet\"   \r\n receiveTimestamp:  \"2018-11-20T09:46:35.393328228Z\"   \r\n resource: {\r\n  labels: {\r\n   instance_id:  ...\r\n   project_id:  ...\r\n   zone:  ...\r\n  }    \r\n  type:  \"gce_instance\"    \r\n }\r\n timestamp:  \"2018-11-20T09:46:31Z\"   \r\n}\r\n```"}}
{"actor":{"display_login":"eastlondoner"}}