scraper

package
v0.0.0-...-d2f20a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LanDevicesOnline = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "fritzbox_lan_devices_online",
		Help: "Gauge showing online state of device",
	}, []string{"name", "ip", "mac", "dev_type"})
	LanDevicesActive = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "fritzbox_lan_devices_active",
		Help: "Gauge showing active state of device",
	}, []string{"name", "ip", "mac", "dev_type"})
	LanDevicesSpeed = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "fritzbox_lan_devices_speed",
		Help: "Gauge showing speed of device",
	}, []string{"name", "ip", "mac", "dev_type"})
	WlanDeviceSignal = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "fritzbox_wlan_devices_signal",
		Help: "Gauge showing signal strength of wifi devices",
	}, []string{"name", "ip", "mac", "dev_type"})
	WlanDeviceSpeed = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "fritzbox_wlan_devices_speed",
		Help: "Gauge showing current speed of wifi devices",
	}, []string{"name", "ip", "mac", "dev_type", "direction"})
	WlanDeviceSpeedMax = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "fritzbox_wlan_devices_speed_max",
		Help: "Gauge showing maximum speed of wifi devices",
	}, []string{"name", "ip", "mac", "dev_type", "direction"})
	WlanDeviceInfo = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "fritzbox_wlan_devices_info",
		Help: "Gauge showing maximum speed of wifi devices",
	}, []string{"name", "ip", "mac", "dev_type", "band", "standard", "encryption"})

	InternetDownstreamSpeed = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "fritzbox_internet_downstream_current",
		Help: "Gauge showing latest internet downstream speed",
	}, []string{"type"})
	InternetUpstreamSpeed = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "fritzbox_internet_upstream_current",
		Help: "Gauge showing latest internet upstream speed",
	}, []string{"type"})
)

Functions

func GetMD5Hash

func GetMD5Hash(text string) string

Types

type Scraper

type Scraper struct {
	// contains filtered or unexported fields
}

func NewScraper

func NewScraper(config *config.Config, logger log.Logger) *Scraper

func (*Scraper) Login

func (s *Scraper) Login() error

func (*Scraper) Run

func (s *Scraper) Run(ctx context.Context) error

func (*Scraper) Scrape

func (s *Scraper) Scrape() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL