Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/natesales/sfptpd-exporter
- Owner: natesales
- License: mit
- Created: 2022-07-29T23:05:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-15T09:19:58.000Z (8 months ago)
- Last Synced: 2024-06-20T16:38:34.314Z (5 months ago)
- Topics: sfptpd, solarflare, time-synchronization
- Language: Go
- Homepage:
- Size: 182 KB
- Stars: 3
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```