gcp_stackdriver_metrics makes invalid calls to GCP monitoring API #14890
Labels
sink: gcp_stackdriver_metrics
Anything `gcp_stackdriver_metrics` sink related
type: bug
A code related bug.
A note for the community
Problem
The code (https://github.com/vectordotdev/vector/blob/master/src/sinks/gcp/stackdriver_metrics.rs) is posting to the timeSeries create endpoint (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/create), which expects a MonitoredResource, like this:
However the error response below suggests that
project_id
,instance_id
, andzone
is getting flattened by https://github.com/vectordotdev/vector/blob/master/src/sinks/gcp/stackdriver_metrics.rs#L222. My rust is nonexistent, but could this be the cause: https://github.com/vectordotdev/vector/blob/master/src/sinks/gcp/mod.rs#L28 ?Configuration
Version
vector 0.24.2 (x86_64-unknown-linux-gnu 5e47b89 2022-10-13)
Debug Output
I get the following error:
Extracting the GCP error response from the above log:
Example Data
No response
Additional Context
No response
References
#14057
The text was updated successfully, but these errors were encountered: