Git Product home page Git Product logo

Comments (15)

metalmatze avatar metalmatze commented on May 13, 2024 1

Very cool. 👍
Don't hesitate to ask in the Kubernetes Slack in #monitoring-mixins, if you have questions about writing the example.

from kube-prometheus.

brancz avatar brancz commented on May 13, 2024 1

We're always very happy to assist new-comers, please feel free to ask any question 🙂 .

from kube-prometheus.

metalmatze avatar metalmatze commented on May 13, 2024

The antiaffinity should be a good example on how to add these tolerations:
https://github.com/coreos/prometheus-operator/blob/master/contrib/kube-prometheus/jsonnet/kube-prometheus/kube-prometheus-anti-affinity.libsonnet

The PrometheusSpec allows to set the tolerations directly (same for AlertmanagerSpec):
https://github.com/coreos/prometheus-operator/blob/a7eb782ea174af819bd82c72be54946ed83bd7b3/pkg/client/monitoring/v1/types.go#L138

Instead of adding the tolerations to the config you have to merge them with the real Prometheus and Alertmanager objects.

Maybe we could also make this an example like antiAffinity, @brancz?!

from kube-prometheus.

brancz avatar brancz commented on May 13, 2024

@metalmatze I think that's a good idea. Either of you want to create a PR and add a mixin?

from kube-prometheus.

jamroks avatar jamroks commented on May 13, 2024

Thanks a lot @metalmatze ...that most definitely gave me a direction on how to proceed, even if I don't know golang, reading the code helped !

@brancz thanks i will try to put something together and submit a PR for it ...but please bare with me here it's gonna be my first one ever, I let you know as soon as I have something

from kube-prometheus.

jamroks avatar jamroks commented on May 13, 2024

wow ...there's a channel for that !? that's dope !! will do.
by the way i have something working as i wanted..now i'm just gonna craft that mixin thing and a followed up PR

Thanks guys

Cheers

from kube-prometheus.

hamid2013 avatar hamid2013 commented on May 13, 2024

Hello Guys,

I am trying to increase the retention and use the pvc (persistent volume) for prometheus. And we do have example for it. When i copy and pasted that on the jsonnet/kube-prometheus folder and running the build.sh its giving the error:

+ rm -rf manifests
+ mkdir manifests
+ jsonnet -J vendor -m manifests example.jsonnet
+ xargs '-I{}' sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- '{}'
RUNTIME ERROR: couldn't open import "kube-prometheus/kube-prometheus.libsonnet": no match locally or in the Jsonnet library paths
        example.jsonnet:2:4-54  thunk <kp> from <$>
        example.jsonnet:8:81-83 thunk from <$>
        <std>:1176:24-25        thunk from <function <anonymous>>
        <std>:1176:5-33 function <anonymous>
        example.jsonnet:8:64-99 $


        During evaluation```

Any idea how to resolve that. 

from kube-prometheus.

metalmatze avatar metalmatze commented on May 13, 2024

You need to have the jsonnetfile.json in your same directory and then run jb install (jb being the jsonnet-bundler) to fetch all necessary dependencies to build kube-prometheus.

from kube-prometheus.

hamid2013 avatar hamid2013 commented on May 13, 2024

@metalmatze : Thanks for the prompt reply.
To achieve that, i have copied the examples/prometheus-pvc.jsonnet to jsonnet/kube-prometheus and run the below commands:

  1. jb install
  2. ./build.sh

Now from where i can confirm that the retention and pvc has been added in the manifests so that i can apply on the cluster.

Apology, but new to jsonnet and kube-prometheus both.

from kube-prometheus.

metalmatze avatar metalmatze commented on May 13, 2024

No worries. Glad it works now!

from kube-prometheus.

hamid2013 avatar hamid2013 commented on May 13, 2024

@metalmatze: I have not applied in the cluster, just wanted to know where can i confirm the retention period and pvc configuration has been modified before i apply.

Also if we have any slack channel for this kind of issue, can you please provide the URL to join that.

from kube-prometheus.

metalmatze avatar metalmatze commented on May 13, 2024

Yes. We have. There's #prometheus-operator in the Kubernetes Slack. See you there! :)

from kube-prometheus.

hamid2013 avatar hamid2013 commented on May 13, 2024

Can you please provide the link, while searching the workspace kubernetes.slack.com, its asked to login and i am using my github registered email to do that or any other way to login to the kubernetes slack

from kube-prometheus.

hamid2013 avatar hamid2013 commented on May 13, 2024

Please ignore i was able to join the slack now

from kube-prometheus.

stale avatar stale commented on May 13, 2024

This issue has been automatically marked as stale because it has not had any activity in last 60d. Thank you for your contributions.

from kube-prometheus.

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.