Skip to content

Commit

Permalink
Moved client docs and add serilog example (#1139)
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Elliott <number101010@gmail.com>
  • Loading branch information
joe-elliott authored and rfratto committed Oct 9, 2019
1 parent 3df5561 commit bf4530a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
11 changes: 1 addition & 10 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ And these endpoints are exposed by just the ingester:

The API endpoints starting with `/loki/` are [Prometheus API-compatible](https://prometheus.io/docs/prometheus/latest/querying/api/) and the result formats can be used interchangeably.

[Example clients](#example-clients) can be found at the bottom of this document.
A [list of clients](./clients) can be found in the clients documentation.

## Matrix, Vector, And Streams

Expand Down Expand Up @@ -628,12 +628,3 @@ In microservices mode, the `/flush` endpoint is exposed by the ingester.
for a list of exported metrics.

In microservices mode, the `/metrics` endpoint is exposed by all components.

## Example Clients

Please note that the Loki API is not stable yet and breaking changes may occur
when using or writing a third-party client.

- [Promtail](https://github.com/grafana/loki/tree/master/pkg/promtail) (Official, Go)
- [promtail-client](https://github.com/afiskon/promtail-client) (Go)
- [push-to-loki.py](https://github.com/sleleko/devops-kb/blob/master/python/push-to-loki.py) (Python 3)
8 changes: 8 additions & 0 deletions docs/clients/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ and you already have configured `Parser` and `Filter` plugins.
Fluentd also works well for extracting metrics from logs when using its
Prometheus plugin.

# Unofficial Clients

Please note that the Loki API is not stable yet and breaking changes may occur
when using or writing a third-party client.

- [promtail-client](https://github.com/afiskon/promtail-client) (Go)
- [push-to-loki.py](https://github.com/sleleko/devops-kb/blob/master/python/push-to-loki.py) (Python 3)
- [Serilog-Sinks-Loki](https://github.com/JosephWoodward/Serilog-Sinks-Loki) (C#)

0 comments on commit bf4530a

Please sign in to comment.