Skip to content

Documentation, examples? #295

Closed
Closed
@setevoy2

Description

@setevoy2

Hi!
First of all - thanks for the Loki - really great.
But still few questions, please.

1. "federation" analog?

Is there any way to configure Loki's instances in the same way as Prometheus uses its federation ability?

I.e. - I have a Stage environment, with 3 AWS EC2 instances running.
On each EC2 - I have Prom's exporters running + Prometheus itself to collect metrics from local exporters.
Then Prometheus exposes them via its :9090/federation to the central Prometheus instance.

So I'd like to make the same with Loki - collect logs with promtail and Loki on some environment's instance, and pass them to the "central" Loki on the host with Prometheus server and Grafana.

Is it possible? Can't see any docs about such approach, unfortunately.

UPD: "Solved" this: Loki and Grafana runs on one host, promtail "worker" - on another, and just has url: http://loki.example.com:3100/api/prom/push.

2. Loki's storages

Found only one doc where storages configuration was mentioned - here.

Can I use local filesystem instead of AWS S3? I think so - just map new volume via Docker like:

  loki:
    image: grafana/loki:master
    volumes:
      - /some/local/storage/:/tmp/loki/chunks/

Is it correct? And the same for indexes.

And is there any way to use MySQL/Postgres etc as chunks storage?
And is there any way to use something else instead of DynamoDB etc as indexes storage?

3. Documentation, examples?

And finally - the main question... Docs :-)

Where can I see storage_config description, available options etc for the Loki, for example? Or - scrape_configs for the promtail? The only way I found since yesterday was an NGINX's "example" here.

Or it is absolutely similar to the Prometheus?

Thanks in advance and sorry for posting all question to the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleA stale issue or PR that will automatically be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions