Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Platform : Stackdriver Agent installation and Condiguration error on GCP VM instance

Tags:

stackdriver

I dont have hands on experience on stackdriver monitoring configuration for google cloud platform VM instances monitoring. our basic monitoring for our project works fine but while trying to install stackdriver agent in Ubuntu 14.04 OS it gives us error and stack driver with agent does not works for us. below is the error for your reference.

Jan 3 10:43:42 ubuntu-uat01 collectd[2283]: write_gcm: Unsuccessful HTTP request 403: {#012 "error": {#012 "code": 403,#012
"message": "User is not authorized to access the project monitoring records.",#012 "status": "PERMISSION_DENIED"#012 }#012} Jan 3 10:43:42 ubuntu-uat01 collectd[2283]: write_gcm: Error -2 from wg_curl_get_or_post Jan 3 10:43:42 ubuntu-uat01 collectd[2283]: write_gcm: wg_transmit_unique_segment failed.

Can someone help me in setting up stackdriver monitoring with Agent installed on server or provide me some documentation link if any available.

like image 232
Mahipal Jhala Avatar asked Mar 12 '26 05:03

Mahipal Jhala


1 Answers

I got this precise error on my instances until I added the permission 'Monitoring Metric Writer' to the service account.

You could also, as Igor suggested, add the monitoring api scope to the instance See the StackDriver Monitoring docs

like image 164
Rondo Avatar answered Mar 15 '26 05:03

Rondo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!