Skip to content

Commit

Permalink
[opentelemetry-collector] Add db spanmetrics preset (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv authored Oct 22, 2024
1 parent daa8a2b commit 615a9fd
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
3 changes: 3 additions & 0 deletions otel-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## OpenTelemtry-Integration

### v0.0.108 / 2024-10-22
- [Feat] add dbMetrics option to spanMetrics preset, which is enabled when spanMetrics enabled. You can disable it using spanMetrics.dbMetrics.enabled=false.

### v0.0.107 / 2024-10-08
- [Feat] Upgrading base otel chart to 0.95.1

Expand Down
12 changes: 6 additions & 6 deletions otel-integration/k8s-helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: otel-integration
description: OpenTelemetry Integration
version: 0.0.107
version: 0.0.108
keywords:
- OpenTelemetry Collector
- OpenTelemetry Agent
Expand All @@ -11,27 +11,27 @@ keywords:
dependencies:
- name: opentelemetry-collector
alias: opentelemetry-agent
version: "0.95.1"
version: "0.95.4"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-agent.enabled
- name: opentelemetry-collector
alias: opentelemetry-agent-windows
version: "0.95.1"
version: "0.95.4"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-agent-windows.enabled
- name: opentelemetry-collector
alias: opentelemetry-cluster-collector
version: "0.95.1"
version: "0.95.4"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-cluster-collector.enabled
- name: opentelemetry-collector
alias: opentelemetry-receiver
version: "0.95.1"
version: "0.95.4"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-receiver.enabled
- name: opentelemetry-collector
alias: opentelemetry-gateway
version: "0.95.1"
version: "0.95.4"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-gateway.enabled
sources:
Expand Down
20 changes: 18 additions & 2 deletions otel-integration/k8s-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ global:
defaultSubsystemName: "integration"
logLevel: "warn"
collectionInterval: "30s"
version: "0.0.107"
version: "0.0.108"

extensions:
kubernetesDashboard:
Expand Down Expand Up @@ -137,7 +137,23 @@ opentelemetry-agent:
enabled: true
collectionInterval: "{{.Values.global.collectionInterval}}"
spanMetrics:
enabled: false
enabled: true
dbMetrics:
enabled: true
# transformStatements:
# - set(attributes["db.namespace"], attributes["db.name"]) where attributes["db.namespace"] == nil
# - set(attributes["db.namespace"], attributes["server.address"]) where attributes["db.namespace"] == nil
# - set(attributes["db.namespace"], attributes["network.peer.name"]) where attributes["db.namespace"] == nil
# - set(attributes["db.namespace"], attributes["net.peer.name"]) where attributes["db.namespace"] == nil
# - set(attributes["db.namespace"], attributes["db.system"]) where attributes["db.namespace"] == nil
# - set(attributes["db.operation.name"], attributes["db.operation"]) where attributes["db.operation.name"] == nil
# - set(attributes["db.collection.name"], attributes["db.sql.table"]) where attributes["db.collection.name"] == nil
# - set(attributes["db.collection.name"], attributes["db.cassandra.table"]) where attributes["db.collection.name"] == nil
# - set(attributes["db.collection.name"], attributes["db.mongodb.collection"]) where attributes["db.collection.name"] == nil
# - set(attributes["db.collection.name"], attributes["db.redis.database_index"]) where attributes["db.collection.name"] == nil
# - set(attributes["db.collection.name"], attributes["db.elasticsearch.path_parts.index"]) where attributes["db.collection.name"] == nil
# - set(attributes["db.collection.name"], attributes["db.cosmosdb.container"]) where attributes["db.collection.name"] == nil
# - set(attributes["db.collection.name"], attributes["aws_dynamodb.table_names"]) where attributes["db.collection.name"] == nil
collectionInterval: "{{.Values.global.collectionInterval}}"
metricsExpiration: 5m
histogramBuckets:
Expand Down

0 comments on commit 615a9fd

Please sign in to comment.