prometheus

command module
v0.0.0-...-80d5b31 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

MicroShift Prometheus exporter

A MicroShift Prometheus exporter to collect unique metrics from a MicroShift cluster

Prerequisites

  • MicroShift installed and running
  • Go version >= 1.21.11

Usage

Export metrics: go run .

Fetch metrics: curl -s http://localhost:9090/metrics:

# HELP microshift_info MicroShift info
# TYPE microshift_info gauge
microshift_info{buildDate="2024-06-14T21:18:09Z",gitCommit="c5a37dff79a7a4428e94f7da448569821cdc2970",gitVersion="4.16.0~rc.5"} 1
# HELP microshift_version MicroShift version
# TYPE microshift_version gauge
microshift_version{level="major"} 4
microshift_version{level="minor"} 16
microshift_version{level="patch"} 0

Grafana dashboard

You can try it out running grafana from a container and then add the dashboard from the json definition: alt text

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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