Categorygithub.com/raykov/apm-charts
modulepackage
0.0.6
Repository: https://github.com/raykov/apm-charts.git
Documentation: pkg.go.dev

# README

APM charts

Application performance management (APM) charts

Usage

f, _ := os.Create("apdex.png")
defer f.Close()

data := []float64{
    1.0,
    0.99,
    0.95,
    0.8,
    1.0,
}
times := []float64{
    1619954810000.0,
    1619954820000.0,
    1619954830000.0,
    1619954840000.0,
    1619954850000.0,
}
options := charts.Options{
    Width: 800,
    Height: 400
    Legend: []string{"Service Apdex"},
    TimeFormat: "15:04",
    ColorPalette: apmcharts.DefaultColorPalette,
    Title: "Service Apdex",
}

apmcharts.RenderApdex(data, times, f, options)

Apdex

apdex

Latency

apdex

Response Time

apdex

Throughput

apdex

Timeseries

apdex

Total Request / Errors

apdex

# Packages

No description provided by the author

# Functions

Max returns the maximum float number from the slice.
RenderApdex renders Apdex chart.
RenderLatency renders latency chart.
RenderResponseTime renders response time chart, aka.
RenderThroughput renders throughput chart.
RenderTimeseries renders time series.
RenderTotalRequestErrors renders throughput with errors.

# Variables

Blue stroke color.
BlueFill color.
Green stroke color.
GreenFill color.
Red stroke color.
RedFill color.
Yellow stroke color.
YellowFill color.

# Structs

DataWithLegend used to sort series to put less time consuming services down in chart.
No description provided by the author
Options used to set chart options.