Replies: 1 comment
-
I just tried the following code using kube-prometheus from
and it seems to produce correct output when using it as follows: jb install
./build.sh all-namespaces.jsonnet From output you provided it seems a problem is somewhere in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When trying to build prometheus to look in all namespaces from the customizing link there seems to be an issue with a field reference. Below is the error I'm getting after calling ./build all-namespaces.jsonnet
`./build.sh all-namespaces.jsonnet
++ pwd
RUNTIME ERROR: Field does not exist: config
vendor/grafana/grafana.libsonnet:52:20-44 thunk from <object >
vendor/grafana/grafana.libsonnet:52:9-45 object
all-namespaces.jsonnet:18:70-80 thunk from <$>
:1293:24-25 thunk from <function >
:1293:5-33 function
all-namespaces.jsonnet:18:53-81 $
all-namespaces.jsonnet:18:1-83
all-namespaces.jsonnet:18:1-83
During evaluation
`
My all-namespace.jsonnet is below
`local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') +
(import 'kube-prometheus/kube-prometheus-all-namespaces.libsonnet') + {
_config+:: {
namespace: 'monitoring',
},
};
{ ['00namespace-' + name]: kp.kubePrometheus[name] for name in std.objectFields(kp.kubePrometheus) } +
{ ['0prometheus-operator-' + name]: kp.prometheusOperator[name] for name in std.objectFields(kp.prometheusOperator) } +
{ ['node-exporter-' + name]: kp.nodeExporter[name] for name in std.objectFields(kp.nodeExporter) } +
{ ['kube-state-metrics-' + name]: kp.kubeStateMetrics[name] for name in std.objectFields(kp.kubeStateMetrics) } +
{ ['alertmanager-' + name]: kp.alertmanager[name] for name in std.objectFields(kp.alertmanager) } +
{ ['prometheus-' + name]: kp.prometheus[name] for name in std.objectFields(kp.prometheus) } +
{ ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) }
`
Beta Was this translation helpful? Give feedback.
All reactions