mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-17 02:54:05 -08:00
b5163351bf
After removing gRPC, this can be simplified again. Also, the configuration for the remote storage moved from flags to the config file.
25 lines
352 B
Markdown
25 lines
352 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 add the following to your `prometheus.yml`:
|
|
|
|
```yaml
|
|
remote_write:
|
|
url: "http://localhost:1234/receive"
|
|
```
|
|
|
|
Then start Prometheus:
|
|
|
|
```
|
|
./prometheus
|
|
```
|