I'm planning to migrate Nagios to stackdriver and I can't find documentation on how to do it: like everyone my applications run in custom ports that I've to monitor if they're open and listening, and also it would be ideal if I could execute my own binary scripts (exec plugin perhaps?).
Finally I see no option to force the execution of a check from the stackdriver console or dashboard.
Anyone suffers from the same disease?
Thanks and best regards.
--
© 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/cc009480-5786-4091-9cd6-b58d96d7f0cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
#!/bin/bash echo '{ "timeSeries": [ { "metric": { "type": "custom.googleapis.com/port-open", "labels": { "my_label": "port" } }, "resource": { "type": "gce_instance", "labels": { "project_id": "my-project", "instance_id": "my-instance", "zone": "my-zone-" } }, "points": [ { "interval": { "endTime": "'$(date -Iseconds)'" }, "value": { "doubleValue": "'$(netstat -antl | grep LIST | grep -w 8080 | wc -l)'" } } ] } ] }' > /tmp/data.json
#!/bin/bash#Generate databash data.sh 2>/dev/null#Get my tokenACCESS_TOKEN="$(gcloud auth application-default print-access-token)" 2>/dev/null#Send the datacurl -H "Authorization: Bearer ${ACCESS_TOKEN}" \-vX POST https://monitoring.googleapis.com/v3/projects/my-project/timeSeries -d @/tmp/data.json \--header "Content-Type: application/json" 2>/dev/null
Circuit conversation "[google-stackdriver-discussion] Custom
monitoring with stackdriver" created for this email thread.
View at: https://adfs01.circuitsandbox.net/#/conversation/3ffcabeb-a5c8-4460-86db-8985d8c85157