Code Monkey home page Code Monkey logo

Comments (10)

farodin91 avatar farodin91 commented on July 28, 2024 1

@yolossn I updated the issue.

from plugins.

remram44 avatar remram44 commented on July 28, 2024 1

I am running into this too. My cluster already has a Prometheus server installed, I don't want to deploy another one.

In addition, the message is not very clear: "Install Prometheus for accessing metrics charts" Does this mean installing a Prometheus server or the Prometheus plugin for Headlamp?

from plugins.

remram44 avatar remram44 commented on July 28, 2024 1

In addition, note that Prometheus might be using HTTPS.

from plugins.

remram44 avatar remram44 commented on July 28, 2024 1

I am running headlamp as a web app for my cluster's users, in my case they don't need to configure this value, I would do it when installing. For example an environment variable would be perfect.

from plugins.

yolossn avatar yolossn commented on July 28, 2024

Hey @farodin91 Can you explain a bit more on this? Do you want a way to specify the proxy URL for accessing prometheus?

from plugins.

yolossn avatar yolossn commented on July 28, 2024

Hey @remram44 We are working on plugin settings feature which will allow plugins to make certain values configurable by the end user. The PR is under review now, once that is done, we will update the prometheus plugin to allow the user configure the endpoint to access prometheus.

from plugins.

air3ijai avatar air3ijai commented on July 28, 2024

We are running VictoriaMetrics as an drop-in replacement for Prometheus.

It would be very helpful if we would be able to set a custom endpoint in Prometheus plugin.

example Screenshot 2024-03-27 at 16 42 34

from plugins.

yolossn avatar yolossn commented on July 28, 2024

This can be solved in two different ways, the user can either provide the label to identify the prometheus pod and the plugin figures out how to reach the pod etc or the user can provide the namespace and pod/service url to reach the prometheus pod.

If we choose to solve it by getting the namespace and pod/service url from the user, the following steps can be used to fix this.

  1. Create a Settings component and register it using the registerPluginSettings function.
    The Settings component should take care of getting the namespace and service to access prometheus as inputs and store it in plugin conf.

  2. In the components that use fetchMetrics get the config using the ConfigStore and generate the prefix and pass it to the fetchMetrics function.

References:

  1. Introduction to Plugin Settings
  2. OpenCost plugin for headlamp has a similar configuration mechanism.

cc: @joaquimrocha

from plugins.

joaquimrocha avatar joaquimrocha commented on July 28, 2024

@skoeva Can you look into this one?

from plugins.

air3ijai avatar air3ijai commented on July 28, 2024

This can be solved in two different ways

Maybe we can leave a space for multiple solutions, if they will be implemented later
Screenshot 2024-07-16 at 13 08 34

from plugins.

Related Issues (17)

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.