package prometheus
import "go.opencensus.io/exporter/stats/prometheus"
Package prometheus contains the Prometheus exporters for Stackdriver Monitoring.
Please note that this exporter is currently work in progress and not complete.
Index ¶
- type Exporter
- func NewExporter(o Options) (*Exporter, error)
- func (e *Exporter) Export(vd *stats.ViewData)
- func (e *Exporter) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type Options
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter exports stats to Prometheus, users need to register the exporter as an http.Handler to be able to export.
func NewExporter ¶
NewExporter returns an exporter that exports stats to Prometheus.
func (*Exporter) Export ¶
Export exports to the Prometheus if view data has one or more rows.
func (*Exporter) ServeHTTP ¶
func (e *Exporter) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP serves the Prometheus endpoint.
type Options ¶
Options contains options for configuring the exporter.
Source Files ¶
prometheus.go
- Version
- v0.1.0
- Published
- Dec 15, 2017
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 4 hours ago –
Tools for package owners.