Uploaded image for project: 'Observability Documentation'
  1. Observability Documentation
  2. OBSDOCS-787

spec.storage.schema.version and spec.storage.schema.effectiveDate should be the same value across all the Loki examples

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Critical

      URL

      https://docs.openshift.com/container-platform/4.14/logging/log_storage/installing-log-storage.html

      https://docs.openshift.com/container-platform/4.14/logging/log_storage/cluster-logging-loki.html#logging-loki-retention_cluster-logging-loki

      Description

      Having the same value of `spec.storage.schema.version` and `spec.storage.schema.effectiveDate` are important when Loki is present as documented in https://grafana.com/docs/loki/latest/operations/storage/schema/.

      A change in the schema means to don't be able to see the old streams as documented in the upstream documentation because it's changed where the streams are written and read.

      Change proposed

      Change all the Loki examples for being consistent for having the same value of `spec.storage.schema.version` and `spec.storage.schema.from`, currently, at least, it's observed two different:

       spec:
        size: 1x.small 
        storage:
          schemas:
          - version: v12   <------- this version
            effectiveDate: '2022-06-01' <--- <--- this time is the field from in Loki that could be adjusted to something different
      

      and

         storage:
          schemas: 
          - effectiveDate: "2020-10-11" <--- this time is the field from in Loki that could be adjusted to something different
            version: v11 <--- this version

      Then, the current `version` used should be the newest: v12 and it should be used the same value across of all the examples. In the future, this could change to a new schema version.

      The `effectiveDate` and `version` should be explained the meaning and importance of it as per https://grafana.com/docs/loki/latest/operations/storage/schema/.

              landerso@redhat.com Libby Anderson
              rhn-support-ocasalsa Oscar Casal Sanchez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: