Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) HTTPClient() *http.Client
- func (c *Client) LabelValues(ctx context.Context, label, metric string) ([]string, error)
- func (c *Client) Labels(ctx context.Context, metric string) ([]string, error)
- func (c *Client) MetricNames(ctx context.Context, search string) ([]string, error)
- func (c *Client) Query(ctx context.Context, query string, start, end time.Time, step time.Duration, ...) (*datasource.QueryResult, error)
- func (c *Client) TestConnection(ctx context.Context) error
Constants ¶
View Source
const Type = "prometheus"
Type is the RegisterDatasource key Ace uses for this module.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements the Ace Prometheus query datasource.
func New ¶
New constructs a Prometheus datasource client. httpClient is required so Ace can inject DatasourceClient (dial/redirect policy + auth).
func (*Client) HTTPClient ¶
HTTPClient returns the injected HTTP client. Ace SSRF tests inspect policy wiring.
func (*Client) LabelValues ¶
func (*Client) MetricNames ¶
Click to show internal directories.
Click to hide internal directories.