Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redeploy in k8s. The old data can not be retrieved #712

Closed
sayi65 opened this issue Jul 3, 2019 · 6 comments
Closed

redeploy in k8s. The old data can not be retrieved #712

sayi65 opened this issue Jul 3, 2019 · 6 comments

Comments

@sayi65
Copy link

sayi65 commented Jul 3, 2019

like title
i redeploy in k8s.The old data can not be retrieved.
Is my config is wrong?

auth_enabled: false

server:
  http_listen_port: 3100

ingester:
  lifecycler:
    address: 127.0.0.1
    ring:
      kvstore:
        store: inmemory
      replication_factor: 1
  chunk_idle_period: 15m

schema_config:
  configs:
  - from: 2018-04-15
    store: boltdb
    object_store: filesystem
    schema: v9
    index:
      prefix: index_
      period: 168h

storage_config:
  boltdb:
    directory: /tmp/loki/index

  filesystem:
    directory: /tmp/loki/chunks

limits_config:
  enforce_metric_name: false
  reject_old_samples: true
  reject_old_samples_max_age: 168h

chunk_store_config:
  max_look_back_period: 0

table_manager:
  chunk_tables_provisioning:
    inactive_read_throughput: 0
    inactive_write_throughput: 0
    provisioned_read_throughput: 0
    provisioned_write_throughput: 0
  index_tables_provisioning:
    inactive_read_throughput: 0
    inactive_write_throughput: 0
    provisioned_read_throughput: 0
    provisioned_write_throughput: 0
  retention_deletes_enabled: false
  retention_period: 0
@cyriltovena
Copy link
Contributor

have you set a persistent volume ? by default it is off.

@sayi65
Copy link
Author

sayi65 commented Jul 3, 2019

have you set a persistent volume ? by default it is off.

Yes I have.
the storage_config used nfs file system.
so it Capacity is large.
and when i redeploy. i can find the old data form storage_config path

@sayi65
Copy link
Author

sayi65 commented Jul 3, 2019

have you set a persistent volume ? by default it is off.

I found a problem
I understand the cause. After redeployment, old data can not be retrieved, but when new data is generated, all old data is displayed. This message is displayed when new data is not generated.

Error connecting to data source: Data source connected, but no labels received. Verify that Loki and Promtail is configured properly.

@sayi65 sayi65 closed this as completed Jul 3, 2019
@cyriltovena
Copy link
Contributor

ho this is a bug yes, and a PR is there to fix it.

@sayi65
Copy link
Author

sayi65 commented Jul 3, 2019

OK need i reopen this issue?

@sayi65 sayi65 reopened this Jul 3, 2019
@cyriltovena
Copy link
Contributor

No that's ok another issue is already open #453

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants