Comments (12)
@eyalzek they are different problems. The configmap generator was there to bin-pack dashboards into configmaps, which was later migrated from python+bash scripts to jsonnet. The problem here is that a single dashboard is larger than the configmap size limit, which no bin-packing can solve as the item is larger than the bin to begin with :)
from kube-prometheus.
@michaelpietzsch @metalmatze: Since @aslafy-z 's PR kiwigrid/k8s-sidecar#16 was merged, this works great in the sidecar and is already supported by the helm chart. I believe the sidecar only supports one file/CM though.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-ingress-dashboard
namespace: prometheus-operator
labels:
grafana_dashboard: "1"
data:
# fetch https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/grafana/dashboards/nginx.json with the grafana sidecar
nginx-ingress.json.url: https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/grafana/dashboards/nginx.json
from kube-prometheus.
Do you combine all dashboards into one ConfigMap? We actually improve that in brancz/kubernetes-grafana by having one ConfigMap per dashboard.
from kube-prometheus.
from kube-prometheus.
Not sure how we can work around the size limits of ConfigMaps to be honest... 😕
Maybe you can try to improve the dashboard so it also reduces its size?
from kube-prometheus.
from kube-prometheus.
Yes, a sidecar like this was used in the past by kube-prometheus too:
https://github.com/coreos/prometheus-operator/tree/release-0.19/contrib/grafana-watcher
Otherwise you could extend the Grafana image with your dashboard.
Either way, I don't think there's a way of using the ConfigMaps approach if the dashboard is that big.
from kube-prometheus.
Do you know which dashboard is the one that's causing this? A dashboard larger than 1Mb sounds like it would be rather bloated in the first place, improving that sounds like a good idea either way. Otherwise you could maybe look into other volume mounts like a git volume.
from kube-prometheus.
I don't really understand, as per:
prometheus-operator/prometheus-operator#535
https://github.com/eedugon/grafana-dashboards-configmap-generator
there was some kind of a workaround integrated into the repo, which was merged:
https://github.com/coreos/prometheus-operator/pull/567/files
but it was removed from the repo for some reason? Is there no workaround for this problem using the latest version?
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.
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.
Closing due to inactivity.
from kube-prometheus.
Related Issues (20)
- Disable KubePersistentVolumeFillingUp HOT 1
- Unable to build manifests from main branch HOT 2
- The collected indicators do not contain resource tags, and the default configuration of kube-prometheus is used. HOT 1
- 怎么修改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
- Using Traefik for Ingress HOT 3
- Prometheus stack not respecting retention
- how to not use cpu requst & limit ? HOT 2
- 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. HOT 1
- Warning - 'bearerTokenFile' is deprecated HOT 1
- Request for Guidance on Deploying kube-prometheus Using ArgoCD HOT 1
- Easily configure arguments of node exporter
- kube-prometheus-release-0.13 不能与rancher 同时部署吗 HOT 1
- ./build.sh example.jsonnet HOT 2
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.