Comments (6)
Currently there is no support for something like that 🙇
from promgen.
It's not possible now, but I have thought about supporting custom labels and params for scrape targets. Promgen would likely still pass its default labels (job/service/project) though you could handle that with relabel config
In your idea, how would you expect to handle the UI side of things?
Would the same token/custom label apply to all targets in a project, or would it apply only to a specific target
from promgen.
Hi @kfdm ,
Some case we need apply for whole project, some case we apply only to a specific target...
Example:
The token will apply for all targets. But some labels like: app_team_name, host_group will be use for specific target
{
"targets": [
"dev-mon-test2.dev.local:7900"
],
"labels": {
"app_team_name": "booking",
"host_group": "dev-mon-test2",
"platform": "private"
}
},
{
"targets": [
"dev-mon-test1.dev.local:7900"
],
"labels": {
"app_team_name": "apm",
"host_group": "dev-mon-test1",
"platform": "cloud1"
}
}
from promgen.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
from promgen.
Hi!
Is it possible to do something like this now?
targets.json
[
{
"targets": [
"x.x.x.x"
],
"labels": {
"job": "vmware"
},
"params": {
"section": ["origin"]
}
}
]
from promgen.
Currently there is no support for something like that bow
Oooh, ok. Thanks for the reply :)
from promgen.
Related Issues (20)
- promgen web worker bad request HOT 2
- it can not work well HOT 3
- Add feature to allow slack notification to use proxy
- Docker-compose.yml TypeError HOT 1
- [QUESTION] Prometheus Parameter HOT 3
- docker-compose setup results in broken UI HOT 3
- Not work well
- [QUESTION] Promgen ALLOWED_HOSTS HOT 1
- Can I add a host with domain name? HOT 1
- How to configure farm hosts when my application deploy in k8s cluster? HOT 2
- Errors on worker HOT 1
- Change field type of url field HOT 1
- Prometheus rules seems not generating correctly. HOT 2
- [Question]How can I receive an alert message?
- arm64 or armhf version HOT 5
- Documentation is not updated since 2021
- Some page loading is slow (docker compose) HOT 2
- Issues updating promgen version to 0.60.0 on Centos7 HOT 3
- SECRET_KEY errors when running Promgen 0.59 and 0.60
- Table 'promgen_ruleannotation' is truncated after migrate command on 0.58.x
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 promgen.