Code Monkey home page Code Monkey logo

Comments (3)

AlexDCraig avatar AlexDCraig commented on June 23, 2024

Looking at this more, I'm puzzled how receiveDistributor is supposed to work here... How does it form a hash ring with other members of its deployment? Or is the intention that there is no replicating at all going on in this setup? Maybe I'm misreading https://thanos.io/tip/proposals-accepted/202012-receive-split.md/

from charts.

srekkas avatar srekkas commented on June 23, 2024

As i understand with this config two services is created
thanos-receive -
thanos-receive-distributor pods
thanos-receive-headless - thanos-receive pods

then you use like this "thanos-receive.observability.svc.cluster.local" for prometheus remote write.

receive:
  enabled: true
  logLevel: info
  mode: "dual-mode"
  tsdbRetention: 15d
  replicationFactor: 3
  replicaCount: 3
  service:
    additionalHeadless: true

receiveDistributor:
  enabled: true
  replicaCount: 3
  replicationFactor: 3

from charts.

AlexDCraig avatar AlexDCraig commented on June 23, 2024

I understand now that the chart does work properly, it's just confusing because the service and ingress of receive flip to point at receiveDistributor when you've enabled dual mode.

Still, I would appreciate a separate service for the ingesters in this case, because as-is you can't monitor the ingesters in the chart, because there's only one service and it points at receiveDistributor.

For instance, I just added this service purely for metrics. I suggest the chart allows you to do this, so we don't need to manage it out of band:

apiVersion: v1
kind: Service
metadata:
  labels:
    app.kubernetes.io/component: receive
    app.kubernetes.io/instance: thanos-bitnami-receiver
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: thanos
    app.kubernetes.io/version: 0.35.0
    prometheus-operator/monitor: "true"
  name: thanos-bitnami-receiver-receive-metrics
  namespace: thanos-bitnami
spec:
  ports:
  - name: http
    port: 10902
    protocol: TCP
    targetPort: http
  selector:
    app.kubernetes.io/component: receive
    app.kubernetes.io/instance: thanos-bitnami-receiver
    app.kubernetes.io/name: thanos

from charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.