operations

package
v0.4.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

README

QuicSec Operations Manager

Operations Manager provides plugins for various operational integrations.

The currently supported operations integrations are:

  • (Logging) -
  • (Metrics) - Prometheus
  • (Dashboard) - Grafana

Contributing Plugins

(ToDo) Provide documentation on creating and contributing additional plugins

Documentation

Overview

ref: https://github.com/libp2p/go-libp2p/blob/master/p2p/transport/quic/tracer_metrics.go

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpRequestsPathIdClient *prometheus.CounterVec
	HttpRequestsPathIdServer *prometheus.CounterVec
	AuthzConnectiontClientId *prometheus.CounterVec
	AuthzConnectiontServerId *prometheus.CounterVec

	HTTPHistogramAppProcessId = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:    "appedge_inbound_rq_latency",
			Help:    "The application latency to process a HTTP request by tuple of identity",
			Buckets: prometheus.ExponentialBuckets(0.001, 1.25, 20),
		}, []string{"myId", "downstreamId"})

	HTTPHistogramNetworkLatencyId = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:    "appedge_outbound_rq_latency",
			Help:    "The network latency between the request and the response by tuple of identity",
			Buckets: prometheus.ExponentialBuckets(0.001, 1.25, 20),
		}, []string{"myId", "upstreamId"})
)

Functions

func OperationsInit

func OperationsInit() (io.Writer, logging.Tracer)

OperationsInit initialize the Operations Manager The following tasks are: 1. Starts the logger 2. Creates the shared secret file to dump the traffic secrets 3. Creates the qlog 4. Start tracing the metrics

Types

type MetricsTracer

type MetricsTracer struct {
	logging.NullTracer
}

func (*MetricsTracer) NegotiatedVersion

func (m *MetricsTracer) NegotiatedVersion(chosen logging.VersionNumber, client, server []logging.VersionNumber)

need to be implemented - quic-go/qlog has these interfaces implemented

func (*MetricsTracer) TracerForConnection

Directories

Path Synopsis
ref: https://gist.github.com/Boerworz/b683e46ae0761056a636
ref: https://gist.github.com/Boerworz/b683e46ae0761056a636

Jump to

Keyboard shortcuts

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