Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/natesales/sfptpd-exporter

Export sfptpd metrics to Prometheus
https://github.com/natesales/sfptpd-exporter

sfptpd solarflare time-synchronization

Last synced: 14 days ago
JSON representation

Export sfptpd metrics to Prometheus

Awesome Lists containing this project

README

        

# Prometheus exporter for [sfptpd](https://www.xilinx.com/support/download/nic-software-and-drivers.html#linux)

[![Release](https://img.shields.io/github/v/release/natesales/sfptpd-exporter?style=for-the-badge)](https://github.com/natesales/sfptpd-exporter/releases)
[![Go Report](https://goreportcard.com/badge/github.com/natesales/sfptpd-exporter?style=for-the-badge)](https://goreportcard.com/report/github.com/natesales/sfptpd-exporter)
[![License](https://img.shields.io/github/license/natesales/sfptpd-exporter?style=for-the-badge)](https://raw.githubusercontent.com/natesales/sfptpd-exporter/main/LICENSE)

### Grafana

![Grafana](grafana.png)

A simple dashboard is available to [import into Grafana](https://grafana.com/docs/grafana/latest/dashboards/export-import/#import-dashboard) from the sfptpd-exporter [Grafana JSON file](https://raw.githubusercontent.com/natesales/sfptpd-exporter/main/grafana-dashboard.json).

### Quickstart

#### Linux

Install `sfptpd-exporter` from the [apt/yum repo](https://github.com/natesales/repo) or build with `go build`

```bash
$ sfptpd-exporter
INFO[0000] Starting sfptpd-exporter version dev stats from /tmp/sfptpd_stats.jsonl
INFO[0000] Starting metrics exporter on :9979/metrics
```

#### Docker

```bash
docker run -p 9978:9978 ghcr.io/natesales/sfptpd-exporter
```

### Usage

```bash
Usage of ./sfptpd-exporter:
-f string
sfptpd stats JSONL file (default "/tmp/sfptpd_stats.jsonl")
-l string
metrics listen address (default ":9979")
-v Enable verbose logging
-vv
Enable extra verbose logging
```