Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDBAdapter ¶
type MongoDBAdapter struct {
// contains filtered or unexported fields
}
MongoDBAdapter is an implemantation of prometheus remote stprage adapter for MongoDB
func New ¶
func New(urlString, database, collection string) (*MongoDBAdapter, error)
New provides a MongoDBAdapter after initialization
func (*MongoDBAdapter) Close ¶
func (p *MongoDBAdapter) Close()
Close closes the connection with MongoDB
func (*MongoDBAdapter) Run ¶
func (p *MongoDBAdapter) Run(address string) error
Run serves with http listener
Click to show internal directories.
Click to hide internal directories.