TTR Dashboard Assistance Required

26 views
Skip to first unread message

Ravi Tomar

unread,
Dec 2, 2020, 5:55:05 AM12/2/20
to Google Stackdriver Discussion Forum
Hi Team,

below is set of steps i have followed to get TTR on GCP dashboard ,please have a look and suggest me .
As i am not able to post image of same hence i attached doc of same 

1.       We have created a custom metric such as the following.

2.       Inserted Logs via Gcloud like the following :

gcloud logging write logname  { servicename: service1, subsytemsname:subsystem1, TTRValue: 700 }  --payload-type=json 

 

example payload:

 

{

insertId: "pta2dmf1d4ey3"

jsonPayload: {

EndTimestamp: "2020-12-01 13:30:50+00:00"

correlation_exec_id: "correlation_id"

Node_ipfirst: "x.x.x.x.x:80"

Node_ipsecound: "x.x.x.x:80"

SenerioName: "Senerio1"

ServiceName: "Service1"

Starttimestamp: "2020-12-01 08:05:34+00:00"

SubsystemName: "subsystem1"

TTRTime: "19516"

}

logName: "projects/MYPROJECT/logs/Service-TTR"

receiveTimestamp: "2020-12-01T13:30:51.032430868Z"

resource: {…}

timestamp: "2020-12-01T13:30:51.032430868Z"

 

3.       Now, I have not problem with the this save. And I can see this log in the Log Viewer But I can not figure out how to see the Value to TTRTime (which is 19516) in the above example in the Monitoring Dashboard. I have tried , Gauge,Scorecard able to see min max count over there but I want to get TTRTime (which is 19516) on dashboard(Gauge or ScoreCard).

stackoverflow.docx

Joy Wang

unread,
Dec 2, 2020, 9:39:10 AM12/2/20
to Ravi Tomar, Google Stackdriver Discussion Forum
Hi Ravi,

Thanks for your question! To view the desired value in the scorecard chart (with single value) correctly, you will need to use the right aggregation to display a value in your log based metric.
We are actively working on making Advanced mode to be available in a few weeks so you should be able to use advance mode to display the value on your custom log based metrics.

Below example is the setting for a delta kind log based metrics that count something. You can refer to the screenshot for configuration. Noticing you need to select no preprocessing step to keep the value of your data point.

Cheers,
Joy

Screen Shot 2020-12-02 at 9.30.42 AM.png






--
© 2020 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/31f68aa5-39f7-41f5-93c6-f6a9eb3094e6n%40googlegroups.com.

Ravi Tomar

unread,
Dec 3, 2020, 2:21:18 AM12/3/20
to Google Stackdriver Discussion Forum
Team ,

please let us know once this feature is available for ScoreCard  on GCP, Actually Delta timeseries will not solve our concern I need to display exact value real time latest one as per specified labels.

Reply all
Reply to author
Forward
0 new messages