mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 15:36:48 +00:00
feat(statsreporter): add ecs platform detection (#8529)
This commit is contained in:
parent
c36c492877
commit
168a7baf6c
@ -108,6 +108,8 @@ func detectPlatform() string {
|
||||
return "coolify"
|
||||
case os.Getenv("RAILWAY_SERVICE_ID") != "":
|
||||
return "railway"
|
||||
case os.Getenv("ECS_CONTAINER_METADATA_URI_V4") != "":
|
||||
return "ecs"
|
||||
}
|
||||
|
||||
// Try to detect cloud provider through metadata endpoints
|
||||
@ -165,6 +167,5 @@ func detectPlatform() string {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return "unknown"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user