Files
zeekay 4e3a8ef9ca merge: upstream/main (preserve Hanzo brand, 50 commits)
# 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
2026-06-02 09:59:25 -07:00

45 lines
1.2 KiB
Go

package installation
import "github.com/hanzoai/o11y-foundry/internal/types"
type Ingester struct {
// Specification for the ingester.
Spec v1alpha1.MoldingSpec `json:"spec" yaml:"spec" jsonschema:"description=Specification for the ingester"`
// Status of the ingester.
Status IngesterStatus `json:"status" yaml:"status,omitempty" jsonschema:"description=Status of the ingester"`
_ struct{} `additionalProperties:"false"`
}
type IngesterStatus struct {
v1alpha1.MoldingStatus `json:",inline" yaml:",inline"`
Addresses IngesterStatusAddresses `json:"addresses" yaml:"addresses,omitempty" jsonschema:"description=Addresses of the ingester"`
_ struct{} `additionalProperties:"false"`
}
type IngesterStatusAddresses struct {
OTLP []string `json:"otlp" yaml:"otlp" jsonschema:"description=OTLP addresses"`
_ struct{} `additionalProperties:"false"`
}
func DefaultIngester() Ingester {
return Ingester{
Spec: v1alpha1.MoldingSpec{
Enabled: v1alpha1.BoolPtr(true),
Cluster: v1alpha1.TypeCluster{
Replicas: v1alpha1.IntPtr(1),
},
Version: "latest",
Image: "ghcr.io/hanzoai/otel-collector:latest",
Env: map[string]string{},
Config: v1alpha1.TypeConfig{
Data: map[string]string{},
},
},
}
}