otel-collector/

directory
v0.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0

README

otel-collector

This module encapsulates producing a sidecar image for publishing otel collected metrics, and granting the service account as which the sidecar runs permission to write those metrics (so it's impossible to forget):

module "otel-collector" {
  source = "chainguard-dev/common/infra//modules/otel-collector"

  project_id      = var.project_id
  service_account = google_service_account.this.email
}

resource "google_cloud_run_v2_service" "this" {
  template {
    service_account = google_service_account.this.email
    containers {
      image = "..."

      // Specifying port is necessary when there are multiple containers.
      ports { container_port = 8080 }
    }
    // Install the sidecar!
    containers { image = module.otel-collector.image }
  }
}

This module is automatically invoked by the regional-go-service module.

Requirements

No requirements.

Providers

Name Version
cosign n/a
google n/a
ko n/a

Modules

No modules.

Resources

Name Type
cosign_sign.otel-image resource
google_project_iam_member.metrics-writer resource
google_project_iam_member.trace-writer resource
ko_build.otel-image resource

Inputs

Name Description Type Default Required
otel_collector_image The otel collector image to use as a base. string "cgr.dev/chainguard/opentelemetry-collector-contrib:latest" no
project_id n/a string n/a yes
service_account The service account as which the collector will run. string n/a yes

Outputs

Name Description
image n/a

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL