Skip to content
M

Metrics

Lightweight alternative to github.com/prometheus/client_golang

by VictoriaMetricsFree

#2451in Developer Tools
0In stores

Description

metrics is a lightweight Go package from the VictoriaMetrics team for exporting application metrics in the Prometheus text format. It is off…

Highlights

  • Exports metrics in Prometheus text format
  • Minimal, small third-party dependencies
  • Separate metric sets on separate endpoints
  • Histograms that need no bucket tuning
  • Push metrics to VictoriaMetrics or other remote storage

Ratings & Reviews

No ratings yet

Be the first to rate Metrics.

People also visit

V

VictoriaMetrics

Application monitoring and observability platform

Developer Tools
Launch
C

Client JS

Prometheus client for node.js

Developer Tools
Launch
P

Promster

A Prometheus exporter for Hapi, express, Apollo

Developer Tools
Launch
P

Prometheus.erl

Prometheus.io client in Erlang

Developer Tools
Launch
M

Micrometer

An application observability facade for the most popular observability tools

Developer Tools
Launch
P

Prometheus.ex

Prometheus.io Elixir client

Developer Tools
Launch

Metrics FAQ

What is this package for?

Instrumenting Go applications and exposing their metrics in the Prometheus text exposition format with a small, simple library.

Is it compatible with prometheus/client_golang?

No. The authors chose a simpler API because they consider client_golang too complex, and advanced client_golang features are not implemented.

How do I get TYPE and HELP lines?

They are not emitted by default. Call ExposeMetadata(true) to generate them for each metric.

How do I do the equivalent of CounterVec?

Use GetOrCreateCounter instead of CounterVec.With.

Can it push metrics instead of being scraped?

Yes. It can push to VictoriaMetrics or any remote storage that accepts the Prometheus text format.

What are the best Metrics alternatives?

Popular alternatives to Metrics include VictoriaMetrics, Client JS and Promster. See all Metrics alternatives

Developer Stuff

Badges