diff --git a/models/config.go b/models/config.go index 53151828..23c32178 100644 --- a/models/config.go +++ b/models/config.go @@ -326,6 +326,7 @@ type ConfigScraper struct { ID uuid.UUID `json:"id"` AgentID uuid.UUID `json:"agent_id,omitempty"` Name string `json:"name"` + Namespace string `json:"namespace"` Description string `json:"description,omitempty"` Spec string `json:"spec,omitempty"` Source string `json:"source,omitempty"` diff --git a/schema/config.hcl b/schema/config.hcl index 3fa7cbb9..f325fc40 100644 --- a/schema/config.hcl +++ b/schema/config.hcl @@ -546,6 +546,10 @@ table "config_scrapers" { column "name" { type = text } + column "namespace" { + null = true + type = text + } column "spec" { null = false type = jsonb