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

Cannot set maxLines in Loki datasource #63358

Closed
modzilla99 opened this issue Feb 15, 2023 · 1 comment
Closed

Cannot set maxLines in Loki datasource #63358

modzilla99 opened this issue Feb 15, 2023 · 1 comment

Comments

@modzilla99
Copy link

What happened:
When installing the Loki stack, I try to set the maxLines option to 5000. But that option never gets set correctly in Grafana.

grafik

What you expected to happen:
Grafana should should the option changed to 5000 or rather the value set in the datasource yaml.

How to reproduce it (as minimally and precisely as possible):
Deploy the loki stack with the following values:

helm install loki grafana/loki-stack -f values.yaml
grafana:
  enabled: true
  datasources:
    datasources.yaml:
      apiVersion: 1
      datasources:
      - name: Loki
        type: loki
        url: http:https://loki-headless:3100
        jsonData:
          maxLines: 5000

Anything else we need to know?:
I tried with the version provided by the stack and the newest grafana (9.3.6 and 8.5.16)

Environment:

  • Grafana version: 8.3.5
  • Data source type & version: Loki
  • OS Grafana is installed on: Kubernetes
  • Grafana plugins: -
@AkshayAwate
Copy link

AkshayAwate commented Feb 17, 2023

@modzilla99 ,I am using below configs under loki, maxLines: 5000 is working for me,

datasource:
    jsonData: "{maxLines: 5000}"

Screenshot from 2023-02-17 19-19-59.

If you want add it using grafana you need to change the datasource name, otherwise it will conflict with default Loki.

grafana:
  enabled: true
  datasources:
    datasources.yaml:
      apiVersion: 1
      datasources:
      - name: Loki-test
        type: loki
        url: http:https://loki-headless:3100
        jsonData:
          maxLines: 5000

Screenshot from 2023-02-17 19-24-50

@zuchka zuchka closed this as completed Feb 17, 2023
@zuchka zuchka added the bot/question Bot will close with standard question comment and add label type/question label Feb 17, 2023
@grafanabot grafanabot added type/question and removed bot/question Bot will close with standard question comment and add label type/question labels Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants