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
49 lines
1.4 KiB
Go
49 lines
1.4 KiB
Go
package installation
|
|
|
|
import (
|
|
"github.com/hanzoai/o11y-foundry/internal/types"
|
|
)
|
|
|
|
type TelemetryStore struct {
|
|
// Kind of the telemetry store to use.
|
|
Kind TelemetryStoreKind `json:"kind,omitzero" yaml:"kind,omitempty" description:"Kind of the telemetry store to use" examples:"[\"clickhouse\"]"`
|
|
|
|
// Specification for the telemetry store.
|
|
Spec v1alpha1.MoldingSpec `json:"spec" yaml:"spec" description:"Specification for the telemetry store"`
|
|
|
|
// Status of the telemetry store.
|
|
Status TelemetryStoreStatus `json:"status" yaml:"status,omitempty" description:"Status of the telemetry store"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
type TelemetryStoreStatus struct {
|
|
v1alpha1.MoldingStatus `json:",inline" yaml:",inline"`
|
|
|
|
Addresses TelemetryStoreStatusAddresses `json:"addresses" yaml:"addresses,omitempty" description:"Addresses of the telemetry store"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
type TelemetryStoreStatusAddresses struct {
|
|
// TCP addresses.
|
|
TCP []string `json:"tcp" yaml:"tcp" description:"TCP addresses"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
func DefaultTelemetryStore() TelemetryStore {
|
|
return TelemetryStore{
|
|
Kind: TelemetryStoreKindClickhouse,
|
|
Spec: v1alpha1.MoldingSpec{
|
|
Enabled: v1alpha1.BoolPtr(true),
|
|
Cluster: v1alpha1.TypeCluster{
|
|
Replicas: v1alpha1.IntPtr(0),
|
|
Shards: v1alpha1.IntPtr(1),
|
|
},
|
|
Version: "25.5.6",
|
|
Image: "ghcr.io/hanzoai/datastore:25.5.6",
|
|
},
|
|
}
|
|
}
|