prometheus_client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: BSD-3-Clause Imports: 7 Imported by: 3

README

prometheus GoDoc

Usage

local prometheus = require("prometheus")

local pp = prometheus.register(":8080")
pp:start()

local gauge = prometheus.gauge({
     namespace="node_scout",
     subsystem="nf_conntrack",
     name="insert_failed",
     help="insert_failed from nf_conntrack",
})
gauge:set(100)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gauge

func Gauge(L *lua.LState) int

Gauge prometheus.gauge(config) return lua (user data, error) config table:

{
  namespace="node_scout",
  subsystem="nf_conntrack",
  name="insert_failed",
  help="insert_failed from nf_conntrack",
}

func GaugeAdd

func GaugeAdd(L *lua.LState) int

GaugeAdd lua prometheus_client_gauge:set(value)

func GaugeSet

func GaugeSet(L *lua.LState) int

GaugeSet lua prometheus_client_gauge:set(value)

func Loader

func Loader(L *lua.LState) int

Loader is the module loader function.

func Preload

func Preload(L *lua.LState)

Preload adds prometheus to the given Lua state's package.preload table. After it has been preloaded, it can be loaded using require:

local prometheus = require("prometheus")

func Register

func Register(L *lua.LState) int

Register(string): return (prometheus_client_ud, err)

func Start

func Start(L *lua.LState) int

Start prometheus_client_ud

func Stop

func Stop(L *lua.LState) int

Stop prometheus_client_ud stop

Types

This section is empty.

Jump to

Keyboard shortcuts

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