Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with kube-prometheus? #99

Open
KlavsKlavsen opened this issue Apr 27, 2022 · 1 comment
Open

Using with kube-prometheus? #99

KlavsKlavsen opened this issue Apr 27, 2022 · 1 comment

Comments

@KlavsKlavsen
Copy link

The readme really could use an example of how to use with kube-prometheus, for those building a custom prometheus setup for kubernetes - and not just hacking the result of manual build into prometheus somehow.

Perhaps based on https://github.com/prometheus-operator/kube-prometheus/blob/main/examples/mixin-inclusion.jsonnet - an example that actually works for ceph mixin ?

@KlavsKlavsen
Copy link
Author

I am trying to follow this: https://github.com/prometheus-operator/kube-prometheus/blob/main/docs/customizations/developing-prometheus-rules-and-grafana-dashboards.md
adding:

 local CephMixin = addMixin({
   name: 'ceph',
   mixin: (imporhttps://github.com/prometheus-operator/kube-prometheus/blob/main/docs/customizations/developing-prometheus-rules-and-grafana-dashboards.mdt 'github.com/ceph/ceph-    mixins/mixin.libsonnet') + {
     _config+: {},  // mixin configuration object
   },
 });

and then adding dashboards :

           grafana+: {
            // Adding new dashboard to grafana. This will modify grafana configMap with dashboards
            dashboards+: CephMixin.grafanaDashboards,

But that object is null - according to jsonnet when I then try to build :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant