Skip to content

Commit

Permalink
Merge pull request #437 from daixiang0/add-help
Browse files Browse the repository at this point in the history
Add help about how to get metrics
  • Loading branch information
davkal authored Mar 29, 2019
2 parents a7d41f0 + 70ff8c5 commit 16e63cf
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ In this situation, the tenant ID is defaulted to be `fake`.
### Metrics

Both Loki and promtail expose a `/metrics` endpoint for Prometheus metrics.
You need a local Prometheus and make sure it can add your Loki and promtail as targets, [see Prometheus configuration](https://prometheus.io/docs/prometheus/latest/configuration/configuration).
When Prometheus can scrape Loki and promtail, you get the following metrics:

Loki metrics:

Expand Down Expand Up @@ -98,13 +100,13 @@ Example config for using S3 & DynamoDB:
```yaml
schema_config:
configs:
- from: 0
store: dynamo
object_store: s3
schema: v9
index:
prefix: dynamodb_table_name
period: 0
- from: 0
store: dynamo
object_store: s3
schema: v9
index:
prefix: dynamodb_table_name
period: 0
storage_config:
aws:
s3: s3://access_key:secret_access_key@region/bucket_name
Expand Down Expand Up @@ -133,7 +135,7 @@ and ensure the `index.prefix` table exists.
You can setup DynamoDB by yourself, or have `table-manager` setup for you.
You can find out more info about table manager at
[Cortex project](https://github.com/cortexproject/cortex)(https://github.com/cortexproject/cortex).
There is an example table manager deployment inside the ksonnet deployment method. You can find it [here](../production/ksonnet/loki/table-manager.libsonnet)
There is an example table manager deployment inside the ksonnet deployment method. You can find it [here](../production/ksonnet/loki/table-manager.libsonnet)

If you set your DynamoDB table manually, ensure you set the primary index key to `h`
(string) and use `r` (binary) as the sort key. Make sure adjust your throughput base on your usage.

0 comments on commit 16e63cf

Please sign in to comment.