I have a problem with custom metric for Google Stackdriver logging. I have created a simple metric for 404 errors, with this filter:
resource.type="gce_instance" textPayload: "HTTP" textPayload: "404" logName: "logs/apache-access"
Everything is working ok, but when I try to create chart in Stackdriver, I can't specify resource, what results, that Stackdriver don't know from where it should takes data.
Printscreen from Stackdriver Another printscreen from Stackdriver