mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-04 10:27:27 -08:00
aa3f2b7216
- fold metric name into labels - return initialization errors back to main - add snappy compression - better context handling - pre-allocation of labels - remove generic naming - other cleanups
18 lines
274 B
Markdown
18 lines
274 B
Markdown
## Generic Remote Storage Example
|
|
|
|
This is a simple example of how to write a server to
|
|
receive samples from the remote storage output.
|
|
|
|
To use it:
|
|
|
|
```
|
|
go build
|
|
remote_storage
|
|
```
|
|
|
|
...and then run Prometheus as:
|
|
|
|
```
|
|
./prometheus -storage.remote.address=localhost:1234
|
|
```
|