Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var QueueMutex sync.Mutex
QueueMutex is used thread safe operations on promSamples list object.
Functions ¶
Types ¶
type Client ¶
Client - struct to hold critical values
func (*Client) HealthCheck ¶
HealthCheck implements the healtcheck interface
func (*Client) Read ¶
func (c *Client) Read(req *prompb.ReadRequest) (*prompb.ReadResponse, error)
Read implements the Reader interface and reads metrics samples from the database
type Config ¶
type Config struct {
CommitSecs int
CommitRows int
PGWriters int
PGParsers int
PartitionScheme string
}
Config for the database
type PGParser ¶
PGParser - Threaded parser
func (*PGParser) PGParserShutdown ¶
func (p *PGParser) PGParserShutdown()
PGParserShutdown is a graceful shutdown
type PGWriter ¶
type PGWriter struct {
DB *pgx.Conn
KeepRunning bool
Running bool
PGWriterMutex sync.Mutex
// contains filtered or unexported fields
}
PGWriter - Threaded writer
func (*PGWriter) PGWriterShutdown ¶
func (c *PGWriter) PGWriterShutdown()
PGWriterShutdown - Set shutdown flag for graceful shutdown
Click to show internal directories.
Click to hide internal directories.