GoogleCloudPlatform / GoogleCloudPlatform/opentelemetry-operations-python

[Question] Why does metricDescriptor have to be created from the app

Open
#360 4 comments 0 reactions 1 assignee Claimed by @dashpole View on GitHub
priority: p3 question
Dominant language
Python
Stars
83
Forks
46
Avg merge
11h 40m
Merged PRs (30d)
2

Description

Hi,

Couldn't find any better place to ask this question (so sorry in advance)

I was just curious to understand what the relationship is between opentelemetry instrumentation and the [Terraform monitoring resource](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_metric_descriptor#argument-reference)?

The `CloudMonitoringMetricsExporter` when sending the metrics also appears to be making requests to create metric descriptors thus requiring the `"roles/monitoring.metricWriter"` permission on the running identity.

but then what is the purpose of the terraform resource? It would have been quite neat if I could just define the metric descriptors through terraform and then have my application use that without having to add additional permissions.

Thanks!
Jonas

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.