File: main.go

package info (click to toggle)
prometheus-tplink-plug-exporter 0.2.0+git20200622.cc4a731-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 120 kB
  • sloc: sh: 18; makefile: 8
file content (15 lines) | stat: -rw-r--r-- 274 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import (
	"net/http"

	"github.com/prometheus/common/log"

	"github.com/fffonion/tplink-plug-exporter/exporter"
)

func main() {
	s := exporter.NewHttpServer()
	log.Infoln("Accepting Prometheus Requests on :9233")
	log.Fatal(http.ListenAndServe(":9233", s))
}