prometheus

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package prometheus ... Copyright 2019 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Package prometheus ... Copyright 2019 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetTotalScrapedPayload

func ResetTotalScrapedPayload()

ResetTotalScrapedPayload resets the integration totalScrapedPayload metric.

Types

type HTTPDoer

type HTTPDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPDoer executes http requests. It is implemented by *http.Client.

type MetricFamiliesByName

type MetricFamiliesByName map[string]dto.MetricFamily

MetricFamiliesByName is a map of Prometheus metrics family names and their representation.

func Get

func Get(client HTTPDoer, url string) (MetricFamiliesByName, error)

Get scrapes the given URL and decodes the retrieved payload.

Jump to

Keyboard shortcuts

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