mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 04:55:55 +08:00
clickhouse implementation WIP
This commit is contained in:
parent
9c83319143
commit
433f3f3d94
@ -2,6 +2,7 @@ package druidReader
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
|
||||
"go.signoz.io/query-service/druidQuery"
|
||||
"go.signoz.io/query-service/godruid"
|
||||
@ -13,9 +14,10 @@ type DruidReader struct {
|
||||
SqlClient *druidQuery.SqlClient
|
||||
}
|
||||
|
||||
func NewReader(druidClientUrl string) *DruidReader {
|
||||
func NewReader() *DruidReader {
|
||||
|
||||
initialize()
|
||||
druidClientUrl := os.Getenv("DruidClientUrl")
|
||||
|
||||
client := godruid.Client{
|
||||
Url: druidClientUrl,
|
||||
@ -32,6 +34,7 @@ func NewReader(druidClientUrl string) *DruidReader {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func initialize() {
|
||||
|
||||
}
|
||||
|
@ -96,8 +96,7 @@ func createHTTPServer() (*http.Server, error) {
|
||||
|
||||
storage := os.Getenv("STORAGE")
|
||||
if storage == "druid" {
|
||||
druidClientUrl := os.Getenv("DruidClientUrl")
|
||||
reader = druidReader.NewReader(druidClientUrl)
|
||||
reader = druidReader.NewReader()
|
||||
} else if storage == "clickhouse" {
|
||||
// clickHouseClientUrl := os.Getenv("clickHouseClientUrl")
|
||||
// reader = clickHouseReader.NewTraceReader()
|
||||
|
Loading…
x
Reference in New Issue
Block a user