diff options
| author | Saumit <justsaumit@protonmail.com> | 2025-09-27 02:14:26 +0530 |
|---|---|---|
| committer | Saumit <justsaumit@protonmail.com> | 2025-09-27 02:14:26 +0530 |
| commit | 82e03978b89938219958032efb1448cc76baa181 (patch) | |
| tree | 626f3e54d52ecd49be0ed3bee30abacc0453d081 /src/prometheus | |
Initial snapshot - OpenTelemetry demo 2.1.3 -f
Diffstat (limited to 'src/prometheus')
| -rw-r--r-- | src/prometheus/prometheus-config.yaml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/prometheus/prometheus-config.yaml b/src/prometheus/prometheus-config.yaml new file mode 100644 index 0000000..212f5b8 --- /dev/null +++ b/src/prometheus/prometheus-config.yaml @@ -0,0 +1,48 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +global: + # Align Prometheus scrape interval with the OTel SDKs' export interval for consistency (see OTEL_METRIC_EXPORT_INTERVAL) + scrape_interval: 60s + +otlp: + keep_identifying_resource_attributes: true + promote_resource_attributes: + - service.instance.id + - service.name + - service.namespace + - service.version + - cloud.availability_zone + - cloud.region + - deployment.environment.name + + # When deploying on Kubernetes, resource attributes used to identify the + # kubernetes resources in dashboards and alerts. + - k8s.cluster.name + - k8s.container.name + - k8s.cronjob.name + - k8s.daemonset.name + - k8s.deployment.name + - k8s.job.name + - k8s.namespace.name + - k8s.node.name + - k8s.pod.name + - k8s.replicaset.name + - k8s.statefulset.name + - container.name + + # When deploying on VMs, resource attributes used to identify + # the host in dashboards and alerts. + - host.name + + # PostgreSQL resource attributes produced by the OTel Collector PostgreSQL receiver + # and used in dashboards and alerts. + # See https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/postgresqlreceiver/metadata.yaml + - postgresql.database.name + - postgresql.schema.name + - postgresql.table.name + - postgresql.index.name + +storage: + tsdb: + out_of_order_time_window: 30m |
