{"record":{"id":"9bdb447aba387022","repo":"thanos-io/thanos","slug":"get-relabel-configuration","errorCode":null,"errorMessage":"get relabel configuration","messagePattern":"get relabel configuration","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/thanos/receive.go","lineNumber":228,"sourceCode":"\tif enableIngestion {\n\t\tif err := os.MkdirAll(conf.dataDir, 0o755); err != nil {\n\t\t\treturn errors.Wrapf(err, \"create data dir in %v\", conf.dataDir)\n\t\t}\n\n\t\tdataDir, err = os.OpenRoot(conf.dataDir)\n\t\tif err != nil {\n\t\t\treturn errors.Wrap(err, \"open storage dir\")\n\t\t}\n\n\t\t// Create TSDB for the default tenant.\n\t\tif err := createDefautTenantTSDB(logger, conf.defaultTenantID, dataDir); err != nil {\n\t\t\treturn errors.Wrapf(err, \"create default tenant tsdb in %v\", conf.dataDir)\n\t\t}\n\t}\n\n\trelabelConfig, err := conf.relabelCfg.RelabelConfig(nil)\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"get relabel configuration\")\n\t}\n\n\tvar cache = storecache.NoopMatchersCache\n\tif conf.matcherCacheSize > 0 {\n\t\tcache, err = storecache.NewMatchersCache(storecache.WithSize(conf.matcherCacheSize), storecache.WithPromRegistry(reg))\n\t\tif err != nil {\n\t\t\treturn errors.Wrap(err, \"failed to create matchers cache\")\n\t\t}\n\t\tmultiTSDBOptions = append(multiTSDBOptions, receive.WithMatchersCache(cache))\n\t}\n\n\tmultiTSDBOptions = append(multiTSDBOptions, receive.WithUploadConcurrency(conf.uploadConcurrency))\n\n\tdbs := receive.NewMultiTSDB(\n\t\tdataDir,\n\t\tlogger,\n\t\treg,\n\t\ttsdbOpts,","sourceCodeStart":210,"sourceCodeEnd":246,"githubUrl":"https://github.com/thanos-io/thanos/blob/35b8b991177def87ed52dcf10f9b6d87f07282c8/cmd/thanos/receive.go#L210-L246","documentation":"The relabel configuration supplied to receive (via --relabel-config-file/--relabel-config) failed to parse or validate. Receive aborts startup because an invalid relabel config would corrupt ingestion routing.","triggerScenarios":"Thrown at cmd/thanos/receive.go:228 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the relabel config YAML and action names","Validate the config with promtool or a minimal test","Check for unsupported relabel actions"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35b8b991177def87ed52dcf10f9b6d87f07282c8","analyzedAt":"2026-09-07T01:49:59.689Z","contentChangedAt":"2026-09-07T01:49:59.689Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}