pyroproxy

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package pyroproxy provides Pyroscope proxy for observability and research.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server implement proxy server.

func NewServer

func NewServer(api *pyroscopeapi.Client) *Server

NewServer initializes new proxy Server from openapi client.

func (*Server) GetApps

GetApps implements getApps operation. Returns list of application metadata. Used by Grafana to test connection to Pyroscope.

GET /api/apps

func (*Server) Ingest

Ingest implements ingest operation.

Push data to Pyroscope.

POST /ingest

func (*Server) LabelValues

LabelValues implements labelValues operation.

Returns list of label values.

GET /label-values

func (*Server) Labels

Labels implements labels operation.

Returns list of labels.

GET /labels

func (*Server) NewError

func (s *Server) NewError(ctx context.Context, err error) *pyroscopeapi.ErrorStatusCode

NewError creates *ErrorStatusCode from error returned by handler.

Used for common default response.

func (*Server) Render

Render implements render operation.

Renders given query. One of `query` or `key` is required.

GET /render

Jump to

Keyboard shortcuts

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