GoogleCloudPlatform / GoogleCloudPlatform/opentelemetry-operations-python

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

Offen
#360 4 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @dashpole Auf GitHub ansehen
priority: p3 question
Vorherrschende Sprache
Python
Sterne
83
Forks
46
Ø Merge
11 Std. 40 Min.
Gemergte PRs (30 T.)
2

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.