Custom log based Metrics doesn't work

142 views
Skip to first unread message

Falk Voigt

unread,
Jan 29, 2018, 11:23:22 AM1/29/18
to Google Stackdriver Discussion Forum
Feature is not working on my side.
i setup log based metric but when i try to use it in Stackdriver Monitoring no entries where shown.
The Metric itself is shown in Dropdown but it has no Resource Type :( so no items.

On the logging i get information's for my Filter.


Igor Peshansky

unread,
Jan 29, 2018, 11:30:39 AM1/29/18
to Falk Voigt, Google Stackdriver Discussion Forum
Please make sure your logs are sent to the correct project. If you have a mismatch between the project that receives your logs and the project that your VMs are running in, you'll get behavior like this.

Such a mismatch may happen when you use a private key from the wrong project to authenticate.
        Igor
-- sent from a mobile device, please excuse tyops and omissns

--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Stackdriver Discussion Google Group (google-stackdriver-discu...@googlegroups.com) to participate in discussions with other members of the GoogleStackdriver community.
---
You received this message because you are subscribed to the Google Groups "Google Stackdriver Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-stackdriver-discussion+unsub...@googlegroups.com.
To post to this group, send email to google-stackdriver-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/21ceaa38-6382-4bd0-a156-416aa31268b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mary Koes

unread,
Jan 29, 2018, 11:41:28 AM1/29/18
to Igor Peshansky, falk.v...@gmail.com, Google Stackdriver Discussion Forum
Hey Falk,

Another (related) option is that you may not have any matching log entries since the metric was created.  Logs based metrics are not retroactive so log entries would need to arrive after you saved your logs based metric. 

Best,

Mary
Product Manager, Stackdriver Logging


On Mon, Jan 29, 2018 at 11:30 AM 'Igor Peshansky' via Google Stackdriver Discussion Forum <google-stackdr...@googlegroups.com> wrote:
Please make sure your logs are sent to the correct project. If you have a mismatch between the project that receives your logs and the project that your VMs are running in, you'll get behavior like this.

Such a mismatch may happen when you use a private key from the wrong project to authenticate.
        Igor
-- sent from a mobile device, please excuse tyops and omissns
On Jan 29, 2018 11:23 AM, "Falk Voigt" <falk.v...@gmail.com> wrote:
Feature is not working on my side.
i setup log based metric but when i try to use it in Stackdriver Monitoring no entries where shown.
The Metric itself is shown in Dropdown but it has no Resource Type :( so no items.

On the logging i get information's for my Filter.


--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Stackdriver Discussion Google Group (google-stackdr...@googlegroups.com) to participate in discussions with other members of the GoogleStackdriver community.

---
You received this message because you are subscribed to the Google Groups "Google Stackdriver Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-stackdriver-d...@googlegroups.com.
To post to this group, send email to google-stackdr...@googlegroups.com.

--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Stackdriver Discussion Google Group (google-stackdr...@googlegroups.com) to participate in discussions with other members of the GoogleStackdriver community.

---
You received this message because you are subscribed to the Google Groups "Google Stackdriver Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-stackdriver-d...@googlegroups.com.
To post to this group, send email to google-stackdr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/CAN%3DUupes_wQP1XGyYRy9Quv7WwrAi40Uit4i3mhEE4beO2_dFQ%40mail.gmail.com.

Falk Voigt

unread,
Jan 29, 2018, 12:00:44 PM1/29/18
to Google Stackdriver Discussion Forum
That could be the Solution. The metric i created only has entries sone day‘s back. I will test that
Reply all
Reply to author
Forward
0 new messages