Code Monkey home page Code Monkey logo

Comments (5)

giz33 avatar giz33 commented on June 20, 2024 1

I was able to make it works!
After identify that the prometheus operator uses a label to connect to all the objects that makes part of the solution I see that the components created by Parry doesn't have the correct label on it.
After change the label on rules and the SLO's objects to match the label used by my prometheus created by kube-prom operator, it works!

Thanks!

from pyrra.

metalmatze avatar metalmatze commented on June 20, 2024

You need to run two Pyrra components.
One with the api command and one with the filesystem or kubernetes command. The filesystem or kubernetes components need to be run with this --generic-rules flag.

Hopefully you could figure it out in the mean time.
I'll make sure to update the documentation there to make it more obvious.

from pyrra.

giz33 avatar giz33 commented on June 20, 2024

Hello!Tks for the answer!
I am trying to use the helm chart to deploy it and use with Grafana: https://artifacthub.io/packages/helm/rlex/pyrra
So far so good I am able to install it and run a pyrra-kubernetes changing the parameter generic-rules to true inside values.yaml.

image

But it keeps showing nothing on my Grafana dashboards.

image

I suspect about two things:
1 - I need to pass some args to pyrra-kubernetes using extraKubernetesArgs to point to my correct PrometheusURL, as you can see on the logs its using localhost:9090, but I have prometheus running on prometheus-operated.monitoring.svc.cluster.local:9090.
But I don't know which args I can pass on this parameter extraKubernetesArgs on values.yaml to change this.

2 - As you can see, it starts a metrics server on port 8080, but I don't see any exposed service to make my prometheus scrap this.And again, maybe there is some parameter that I can pass using extraKubernetesArgs and I don't know which parameters I can use(I didn't fin any documentation about parameter that I can use on it).
image

Tks in advance for any help.

from pyrra.

stoopman avatar stoopman commented on June 20, 2024

I was able to make it works! After identify that the prometheus operator uses a label to connect to all the objects that makes part of the solution I see that the components created by Parry doesn't have the correct label on it. After change the label on rules and the SLO's objects to match the label used by my prometheus created by kube-prom operator, it works!

Thanks!

@giz33 can you please elaborate on which label specific this is? I have kube-prometheus-stack helm chart installed which includes the prometheus operator but no generic rules metrics (such as pyrra_objective) are being created in prometheus

from pyrra.

giz33 avatar giz33 commented on June 20, 2024

@stoopman I put the label "release: prometheus"

from pyrra.

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.