Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( BrokersInfo = prometheus.NewDesc( prometheus.BuildFQName(namespace, "broker_status", "info"), "Information about CUBRID Broker Status", []string{"broker_name", "num_as", "pid", "port", "qsize", "num_select", "num_insert", "num_update", "num_delete", "num_trans", "num_conns"}, nil, ) BrokerInfo = prometheus.NewDesc( prometheus.BuildFQName(namespace, "broker_status", "info"), "Information about CUBRID Broker Status", []string{"broker_name", "key"}, nil, ) )
Metric descriptors.
var ( SpaceDbInfo = prometheus.NewDesc( prometheus.BuildFQName(namespace, "spacedb", "info"), "Information about CUBRID SpaceDB", []string{"vol_no", "type", "purpose", "count", "used_pages", "free_pages"}, nil, ) VolNoInfo = prometheus.NewDesc( prometheus.BuildFQName(namespace, "spacedb", "info"), "Information about CUBRID SpaceDB", []string{"vol_no", "key"}, nil, ) )
Metric descriptors.
var ( StatdumpInfo = prometheus.NewDesc( prometheus.BuildFQName(namespace, "statdump", "info"), "Information about CUBRID Statdump", []string{"key"}, nil, ) )
Metric descriptors.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter collects CUBRID metrics. It implements prometheus.Collector.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
type Metrics ¶
type Metrics struct { TotalScrapes prometheus.Counter ScrapeErrors *prometheus.CounterVec Error prometheus.Gauge CubridUp prometheus.Gauge }
Metrics represents exporter metrics which values can be carried between http requests.
type ScrapeBrokerStatus ¶
type ScrapeBrokerStatus struct{}
ScrapeBrokerStatus
func (ScrapeBrokerStatus) Help ¶
func (ScrapeBrokerStatus) Help() string
Help describes the role of the Scraper.
func (ScrapeBrokerStatus) Name ¶
func (ScrapeBrokerStatus) Name() string
Name of the Scraper. Should be unique.
func (ScrapeBrokerStatus) Scrape ¶
func (ScrapeBrokerStatus) Scrape(ctx context.Context, db *sql.DB, ch chan<- prometheus.Metric) error
Scrape collects data from database connection and sends it over channel as prometheus metric.
func (ScrapeBrokerStatus) Version ¶
func (ScrapeBrokerStatus) Version() float64
Version of CUBRID from which scraper is available.
type ScrapeSpaceDBStatus ¶
type ScrapeSpaceDBStatus struct{}
ScrapeSpaceDBStatus
func (ScrapeSpaceDBStatus) Help ¶
func (ScrapeSpaceDBStatus) Help() string
Help describes the role of the Scraper.
func (ScrapeSpaceDBStatus) Name ¶
func (ScrapeSpaceDBStatus) Name() string
Name of the Scraper. Should be unique.
func (ScrapeSpaceDBStatus) Scrape ¶
func (ScrapeSpaceDBStatus) Scrape(ctx context.Context, db *sql.DB, ch chan<- prometheus.Metric) error
Scrape collects data from database connection and sends it over channel as prometheus metric.
func (ScrapeSpaceDBStatus) Version ¶
func (ScrapeSpaceDBStatus) Version() float64
Version of CUBRID from which scraper is available.
type ScrapeStatdump ¶
type ScrapeStatdump struct{}
ScrapeStatdump
func (ScrapeStatdump) Help ¶
func (ScrapeStatdump) Help() string
Help describes the role of the Scraper.
func (ScrapeStatdump) Name ¶
func (ScrapeStatdump) Name() string
Name of the Scraper. Should be unique.
func (ScrapeStatdump) Scrape ¶
func (ScrapeStatdump) Scrape(ctx context.Context, db *sql.DB, ch chan<- prometheus.Metric) error
Scrape collects data from database connection and sends it over channel as prometheus metric.
func (ScrapeStatdump) Version ¶
func (ScrapeStatdump) Version() float64
Version of CUBRID from which scraper is available.
type Scraper ¶
type Scraper interface { // Name of the Scraper. Should be unique. Name() string // Help describes the role of the Scraper. // Example: "SHOW Brokers" Help() string // Version of CUBRID from which scraper is available. Version() float64 // Scrape collects data from database connection and sends it over channel as prometheus metric. Scrape(ctx context.Context, db *sql.DB, ch chan<- prometheus.Metric) error }