Comments (15)
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.
We're always very happy to assist new-comers, please feel free to ask any question 🙂 .
from kube-prometheus.
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.
@metalmatze I think that's a good idea. Either of you want to create a PR and add a mixin?
from kube-prometheus.
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.
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.
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.
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.
@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:
- jb install
- ./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.
No worries. Glad it works now!
from kube-prometheus.
@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.
Yes. We have. There's #prometheus-operator in the Kubernetes Slack. See you there! :)
from kube-prometheus.
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.
Please ignore i was able to join the slack now
from kube-prometheus.
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)
- 怎么修改Prometheus全局配置
- how to add new relabel_configs and metric_relabel_configs for job_name monitoring/kube-state-metrics/0 and job_name monitoring/kube-state-metrics/1 HOT 1
- How to add and modify existing scrape_configs to existing kube-prometheus HOT 1
- done HOT 8
- Prometheus stack not respecting retention
- how to not use cpu requst & limit ? HOT 1
- Appears to be an issue with the Grafana grid.libsonnet HOT 3
- Support the Gateway API
- forgot grafana password,How can I changeit
- persistent volume monitor
- Decrease value of limit before "Namespace quota is going to be full.
- Warning - 'bearerTokenFile' is deprecated HOT 1
- Request for Guidance on Deploying kube-prometheus Using ArgoCD
- Easily configure arguments of node exporter
- kube-prometheus-release-0.13 不能与rancher 同时部署吗
- ./build.sh example.jsonnet HOT 2
- Error in grafonnet HOT 1
- upgrade node-exporter to v1.8.0
- Grafana not reachable after setup
- example dashboards use angular which is depreciated in grafana HOT 1
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 kube-prometheus.