Comments (10)
@yolossn I updated the issue.
from plugins.
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.
In addition, note that Prometheus might be using HTTPS.
from plugins.
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.
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.
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.
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.
from plugins.
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.
-
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. -
In the components that use
fetchMetrics
get the config using theConfigStore
and generate the prefix and pass it to thefetchMetrics
function.
References:
- Introduction to Plugin Settings
- OpenCost plugin for headlamp has a similar configuration mechanism.
cc: @joaquimrocha
from plugins.
@skoeva Can you look into this one?
from plugins.
This can be solved in two different ways
Maybe we can leave a space for multiple solutions, if they will be implemented later
from plugins.
Related Issues (17)
- Don't use hardcoded server url
- Add Inspektor Gadget generic plugin
- prometheus: label on the pause button missing
- prometheus: time is not rendered on axis properly? HOT 1
- app-catalog: Add offical, verified, CNCF badges to the apps
- app-catalog: Filter apps based on being verified, official, CNCF
- Update plugins to MUIv5
- prometheus: Add pvc metrics HOT 2
- app-catalog: Filter installed apps by namespace and text search
- Building Prometheus plugin fails HOT 1
- Show YAML based on the Helm version
- Prometheus Plug-In: Also detect victoriametrics HOT 2
- What is required api rights for prometheus plugin? HOT 3
- Add default values to the top options when installing apps/helm charts
- App-Catalog broken install button
- App Catalog broken install button
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugins.