slingdata-io / sling-cli

Sling is a CLI tool that extracts data from a source storage/database and loads it in a target storage/database.
https://docs.slingdata.io
GNU General Public License v3.0
445 stars 34 forks source link

Add Support for writing to Prometheus #449

Open AncientPatata opened 15 hours ago

AncientPatata commented 15 hours ago

Issue Description

but it's not been

None

2024-11-25 09:14:57 DBG opened "s3" connection (conn-s3-BIm)
2024-11-25 09:14:57 WRN Could not successfully get format values. Blank values for: object_schema
2024-11-25 09:14:57 DBG Could not successfully format target object name. Blank values for: __name__!=""
fatal:
--- proc.go:271 main ---
--- sling_cli.go:452 main ---
--- sling_cli.go:496 cliInit ---
panic occurred! "invalid memory address or nil pointer dereference"
goroutine 1 [running]:
runtime/debug.Stack()
        /github/sling-cli/_work/_tool/go/1.22.6/x64/src/runtime/debug/stack.go:24 +0x5e
main.processRun.func1()
        /github/sling-cli/_work/sling-cli/sling-cli/cmd/sling/sling_run.go:46 +0x38
panic({0x2fc5d40?, 0x6931470?})
        /github/sling-cli/_work/_tool/go/1.22.6/x64/src/runtime/panic.go:770 +0x132
github.com/slingdata-io/sling-cli/core/sling.(*Config).Prepare(0xc0013b2008)
        /github/sling-cli/_work/sling-cli/sling-cli/core/sling/config.go:581 +0x33c9
main.runTask(0xc0013b2008, 0xc0013be000)
        /github/sling-cli/_work/sling-cli/sling-cli/cmd/sling/sling_run.go:328 +0x16a
main.processRun(0x69954c0)
        /github/sling-cli/_work/sling-cli/sling-cli/cmd/sling/sling_run.go:216 +0x2350
github.com/flarco/g.CliProcess()
        /home/larco/go/pkg/mod/github.com/flarco/g@v0.1.131/cli.go:286 +0x43b
main.cliInit(0x2e50ce0?)
        /github/sling-cli/_work/sling-cli/sling-cli/cmd/sling/sling_cli.go:488 +0x205
main.main()
        /github/sling-cli/_work/sling-cli/sling-cli/cmd/sling/sling_cli.go:452 +0x1fc
flarco commented 13 hours ago

Sling does not support importing into Prom at the moment. Will add an error for this.