Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInstrumentedCodec ¶
func NewInstrumentedCodec(uc v1.Codec, m *InstrumentedCodecMetrics) v1.Codec
Types ¶
type InstrumentedCodec ¶
type InstrumentedCodec struct {
// contains filtered or unexported fields
}
func (*InstrumentedCodec) ContentType ¶
func (c *InstrumentedCodec) ContentType() v1.MIMEType
type InstrumentedCodecMetrics ¶
type InstrumentedCodecMetrics struct {
// contains filtered or unexported fields
}
func NewInstrumentedCodecMetrics ¶
func NewInstrumentedCodecMetrics(reg prometheus.Registerer) *InstrumentedCodecMetrics
type ProtobufCodec ¶
type ProtobufCodec struct { // cortexInternal enables encoding the whole native histogram data fields in response instead of keeping // only few sparse information like the default JSON/Protobuf codec does. // This will be used by Cortex Ruler to get native histograms data from Cortex Query Frontend because // rule evaluation requires the full native histogram data. CortexInternal bool }
func (ProtobufCodec) ContentType ¶
func (p ProtobufCodec) ContentType() v1.MIMEType
func (ProtobufCodec) Encode ¶
func (p ProtobufCodec) Encode(resp *v1.Response) ([]byte, error)
ProtobufCodec implementation is derived from https://github.com/prometheus/prometheus/blob/main/web/api/v1/json_codec.go
Click to show internal directories.
Click to hide internal directories.