package
1.18.2
Repository: https://github.com/nguyencatpham/go-micro.git
Documentation: pkg.go.dev

# README

metrics

The metrics package provides a simple metrics "Reporter" interface which allows the user to submit counters, gauges and timings (along with key/value tags).

Implementations

  • Prometheus (pull): will be first
  • Prometheus (push): certainly achievable
  • InfluxDB: could quite easily be done
  • Telegraf: almost identical to the InfluxDB implementation
  • Micro: Could we provide metrics over Micro's server interface?

Todo

  • Include a handler middleware which uses the Reporter interface to generate per-request level metrics
    • Throughput
    • Errors
    • Duration

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Address is the listen address to serve metrics on:.
DefaultTags will be added to every metric:.
NewOptions prepares a set of options:.
Path used to serve metrics over HTTP:.
Percentiles defines the desired spread of statistics for histogram / timing metrics:.

# Structs

Options for metrics implementations:.

# Interfaces

Reporter is an interface for collecting and instrumenting metrics.

# Type aliases

Option powers the configuration for metrics implementations:.
Tags is a map of fields to add to a metric:.