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

https://github.com/b4fun/prom-snapshot

Prometheus snapshot(s) viewer.
https://github.com/b4fun/prom-snapshot

Last synced: about 1 year ago
JSON representation

Prometheus snapshot(s) viewer.

Awesome Lists containing this project

README

          

# prom-snapshot

Prometheus snapshot(s) viewer.

| Resource | Link |
|:----|:----|
| Reference | [![API](https://godoc.org/github.com/b4fun/prom-snapshot?status.svg)](https://pkg.go.dev/github.com/b4fun/prom-snapshot?tab=overview) |
| Docker Image | [![Docker Build Status](https://img.shields.io/docker/build/b4fun/prom-snapshot-server)](https://hub.docker.com/r/b4fun/prom-snapshot-server) |

## Usage

### Host multiple prometheus data snapshot with v1 api

```
$ server -s snapshot1=/path/to/snapshot1 --snapshot snapshot2=/path/to/snapshot2
```

```
$ curl http://127.0.0.1:8080/snapshot1/api/v1/metadata
{"status":"success","data":{}}
$ curl http://127.0.0.1:8080/snapshot2/api/v1/metadata
{"status":"success","data":{}}
```

## TODO

**server**

- [ ] kubernetes spec
- [ ] e2e usage example
- [ ] bundle grafana?
- [ ] (long term) download snapshot from remote

**snapshot-sidecar**

- [ ] kubernetes spec

## LICENSE

MIT

---

a [@b4fun][@b4fun] project

[@b4fun]: https://www.build4.fun