Skip to content

How to increase data storage time (for Prometheus, loki, Tempo) #151

Answered by Walli-DO
Walli-DO asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, ideally, we should create our own build, but at the moment there is no time for that, so we are improving the existing solution.

I completely agree that the data should be stored outside the container. In the future, we plan to move to our own build, so I have distributed the data across different folders.

Here is the approximate solution that satisfies me at the moment.

1.) Docker Compose yml file

Create the docker-compose.yml file:

vim docker-compose.yml

Content of the file docker-compose.yml:

# version: '3.8'

services:

  otel-lgtm:
    image: grafana/otel-lgtm:0.7.5
    container_name: otel-lgtm
    volumes:
      # Loki data (logs)
      - ./loki-data/loki:/loki
      - ./loki-…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zeitlinger
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by zeitlinger
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants