Skip to content

Commit

Permalink
feat: add aws and gcp resource attributes detector to data-collection…
Browse files Browse the repository at this point in the history
… collector (#967)
  • Loading branch information
blumamir authored Feb 11, 2024
1 parent 31f219e commit 0af6f78
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions autoscaler/controllers/datacollection/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ func getConfigMapData(apps *odigosv1.InstrumentedApplicationList, dests *odigosv
"action": "upsert",
}},
},
"resourcedetection": commonconf.GenericMap{
"detectors": []string{"ec2", "gcp", "azure"},
},
},
Extensions: commonconf.GenericMap{
"health_check": empty,
Expand Down Expand Up @@ -270,15 +273,15 @@ func getConfigMapData(apps *odigosv1.InstrumentedApplicationList, dests *odigosv

cfg.Service.Pipelines["logs"] = commonconf.Pipeline{
Receivers: []string{"filelog"},
Processors: []string{"batch", "odigosresourcename", "resource"},
Processors: []string{"batch", "odigosresourcename", "resource", "resourcedetection"},
Exporters: []string{"otlp/gateway"},
}
}

if collectTraces {
cfg.Service.Pipelines["traces"] = commonconf.Pipeline{
Receivers: []string{"otlp", "zipkin"},
Processors: []string{"batch", "odigosresourcename", "resource"},
Processors: []string{"batch", "odigosresourcename", "resource", "resourcedetection"},
Exporters: []string{"otlp/gateway"},
}
}
Expand All @@ -293,7 +296,7 @@ func getConfigMapData(apps *odigosv1.InstrumentedApplicationList, dests *odigosv

cfg.Service.Pipelines["metrics"] = commonconf.Pipeline{
Receivers: []string{"otlp", "kubeletstats"},
Processors: []string{"batch", "odigosresourcename", "resource"},
Processors: []string{"batch", "odigosresourcename", "resource", "resourcedetection"},
Exporters: []string{"otlp/gateway"},
}
}
Expand Down

0 comments on commit 0af6f78

Please sign in to comment.