GoogleCloudPlatform / GoogleCloudPlatform/opentelemetry-operations-python

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

Aperta
#360 4 commenti 0 reazioni 1 assegnatario Rivendicata da @dashpole Vedi su GitHub
priority: p3 question
Lingua principale
Python
Stelle
83
Fork
46
Merge medio
11h 40m
PR unite (30g)
2

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.