Documentation ¶
Index ¶
Constants ¶
View Source
const ( BaseUrlDefaut = "https://dashboard.meraki.com/api/" APIVersionDefaut = "v0" APIScrapFrequencyDefaut = time.Duration(5 * time.Second) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Addr string // The address to listen on for HTTP requests. BaseUrl *url.URL // the Meraki Dashboard API Base Url APIVersion string // the Meraki Dashboard API version Tokens []string // list of Meraki Dashboard API token Freq time.Duration // the scraping frequency Labels map[string]string // Labels added automaticaly to all metrics }
Config used to store the exporter configuration
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter represent the Meraki exporter
func NewExporter ¶
NewExporter return new Exporter instance
func (*Exporter) InitExporter ¶
InitExporter used to init the exporter resources
func (*Exporter) ListenAndServe ¶
ListenAndServe listens on the TCP network address addr and then calls Serve with handler to handle requests on incoming connections.
Click to show internal directories.
Click to hide internal directories.