多批量Loki-stack Export Intress

发布于 2025-02-04 10:04:12 字数 436 浏览 2 评论 0 原文

如何在grafana/loki-stack中导出入口()让Central Grafana可以从不同的集群中删除日志吗? 在开发环境中,我已经安装了grafana和loki-stack,并将loki数据源添加为 http://loki.loki.loki:loki.loki: 3100 现在,我希望舞台环境Loki-stack可能是Dev-Grafana的数据源,但我不知道如何让阶段loki出口入口? 有人有类似的经验可以与我分享吗?

How to export ingress in grafana/loki-stack(https://github.com/grafana/helm-charts/tree/main/charts/loki-stack) let central grafana could scrap log from the different clusters?
In the dev environment, I had install grafana and loki-stack, and add loki data source as http://loki.loki:3100
Now, I want stage environment loki-stack could be a data source of dev-grafana, but I don't know how to let stage-loki export ingress?
Does anyone have a similar experience could share with me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魔法唧唧 2025-02-11 10:04:12

我在开发集群中只部署了loki和promtail,可以在生产群中从Grafana中刮下来

loki:
  enabled: true
  image:
    repository: myregistry.mynet/grafana/loki
    tag: 2.5.0
    pullPolicy: IfNotPresent
  persistance:
    enabled: true
    storageClassName: longhorn
    size: 50Gi
  ingress:
    enabled: true
    annotations:
      kubernetes.io/ingress.class: nginx
    hosts:
      - host: kube-dev.mynet
        paths:
          - /loki/
    tls:
    - secretName: kube-dev-mynet-secret
      hosts:
      - kube-dev.mynet

I deployed just loki and promtail in my dev cluster and can scrape the ingress from grafana in my production cluster

loki:
  enabled: true
  image:
    repository: myregistry.mynet/grafana/loki
    tag: 2.5.0
    pullPolicy: IfNotPresent
  persistance:
    enabled: true
    storageClassName: longhorn
    size: 50Gi
  ingress:
    enabled: true
    annotations:
      kubernetes.io/ingress.class: nginx
    hosts:
      - host: kube-dev.mynet
        paths:
          - /loki/
    tls:
    - secretName: kube-dev-mynet-secret
      hosts:
      - kube-dev.mynet
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文