mirror of
https://github.com/hanzoai/o11y-foundry.git
synced 2026-11-03 02:08:34 +00:00
# Conflicts: # api/v1alpha1/casting.go # api/v1alpha1/installation/signoz.go # docs/casting.md # docs/examples/docker/compose/pours/deployment/configs/ingester/opamp.yaml # docs/examples/systemd/binary/pours/deployment/signoz-ingester.service # docs/examples/systemd/binary/pours/deployment/signoz-signoz.service # docs/examples/systemd/binary/pours/deployment/signoz-telemetrystore-migrator.service # docs/schemas/v1alpha1.yaml # internal/foundry/registry.go # internal/instrumentation/handler.go # internal/molding/signozmolding/signoz.go
26 lines
839 B
Go
26 lines
839 B
Go
package telemetrystoremolding
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"github.com/hanzoai/o11y-foundry/internal/types"
|
|
)
|
|
|
|
//go:embed templates/*.gotmpl
|
|
var templates embed.FS
|
|
|
|
var (
|
|
ConfigClickhousev2556YAML *domain.Template = domain.MustNewTemplateFromFS(templates, "templates/config.clickhouse.v2556.yaml.gotmpl", domain.FormatYAML)
|
|
FunctionsClickhousev2556YAML *domain.Template = domain.MustNewTemplateFromFS(templates, "templates/functions.clickhouse.v2556.yaml.gotmpl", domain.FormatYAML)
|
|
)
|
|
|
|
// Data is the template data for rendering ClickHouse telemetry store configs.
|
|
type Data struct {
|
|
StoreAddresses []domain.Address
|
|
KeeperAddresses []domain.Address
|
|
ShardCount int
|
|
ReplicaCount int
|
|
ShardID int // 0-indexed, used to render per-node macros.shard
|
|
ReplicaID int // 0-indexed, used to render per-node macros.replica
|
|
}
|