Documentation ¶
Index ¶
- func GetSystemState(ctx context.Context, server *state.Server, logger *util.Logger) (system state.SystemState)
- func SetupWebsocketHandlerLogs(ctx context.Context, wg *sync.WaitGroup, logger *util.Logger, ...)
- type Data
- type JSONLogEvent
- type Metric
- type MetricResult
- type Response
- type StreamMetadata
- type StreamResult
- type StreamSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSystemState ¶
func GetSystemState(ctx context.Context, server *state.Server, logger *util.Logger) (system state.SystemState)
GetSystemState - Gets system information for a Tembo Cloud instance
func SetupWebsocketHandlerLogs ¶
func SetupWebsocketHandlerLogs(ctx context.Context, wg *sync.WaitGroup, logger *util.Logger, servers []*state.Server, globalCollectionOpts state.CollectionOpts, parsedLogStream chan state.ParsedLogStreamItem)
SetupWebsocketHandlerLogs - Sets up a websocket handler for Tembo logs
Types ¶
type Data ¶
type Data struct { ResultType string `json:"resultType"` Result []MetricResult `json:"result"` }
type JSONLogEvent ¶
type Metric ¶
type Metric struct { Name string `json:"__name__"` Endpoint string `json:"endpoint"` Instance string `json:"instance"` Job string `json:"job"` MetricsPath string `json:"metrics_path"` Namespace string `json:"namespace"` Node string `json:"node"` PersistentVolumeClaim string `json:"persistentvolumeclaim"` Service string `json:"service"` }
type MetricResult ¶
type MetricResult struct { Metric Metric `json:"metric"` Value []interface{} `json:"value"` }
type StreamMetadata ¶
type StreamResult ¶
type StreamResult struct {
Streams []StreamSet `json:"streams"`
}
type StreamSet ¶
type StreamSet struct { Stream StreamMetadata `json:"stream"` Values [][]string `json:"values"` }
Click to show internal directories.
Click to hide internal directories.