Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MetricDCCurrent *prometheus.GaugeVec MetricDCVoltage *prometheus.GaugeVec MetricDCPower *prometheus.GaugeVec MetricETotal *prometheus.GaugeVec MetricHoursTotal *prometheus.GaugeVec MetricInverterHoursTotal *prometheus.GaugeVec MetricGridVoltage *prometheus.GaugeVec MetricActivePower *prometheus.GaugeVec MetricScrapeDuration *prometheus.HistogramVec )
Functions ¶
func RegisterMetrics ¶
func RegisterMetrics()
func Run ¶
func Run(init Initializer, channels []string) (err error)
func StartMetricsLoop ¶
Types ¶
type Initializer ¶
type Initializer interface { Initialize() error Detect() ([]inverter.ScrapeableInverter, error) Shutdown() }
type Plant ¶
type Plant struct { Inverters []inverter.ScrapeableInverter Channels []string Initializer Initializer }
Plant implements the scraper interface to make its metrics available via prometheus
func NewPlant ¶
func NewPlant(init Initializer, inverters []inverter.ScrapeableInverter, channels []string) (*Plant, error)
type SimulationInitializer ¶
type SimulationInitializer struct {
Devices int
}
func (*SimulationInitializer) Detect ¶
func (i *SimulationInitializer) Detect() ([]inverter.ScrapeableInverter, error)
func (*SimulationInitializer) Initialize ¶
func (i *SimulationInitializer) Initialize() error
func (*SimulationInitializer) Shutdown ¶
func (i *SimulationInitializer) Shutdown()
type YasdiInitializer ¶
func (*YasdiInitializer) Detect ¶
func (i *YasdiInitializer) Detect() ([]inverter.ScrapeableInverter, error)
func (*YasdiInitializer) Initialize ¶
func (i *YasdiInitializer) Initialize() error
func (*YasdiInitializer) Shutdown ¶
func (i *YasdiInitializer) Shutdown()
Click to show internal directories.
Click to hide internal directories.