You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standart is ok, and I have CPU/MEMORY POD metrics.
Now I need custom metrics but I get an error when building with jsonet and enabled custom-metrics.libsonnet.
Any ideas on how to fix it?
{ 'setup/0namespace-namespace': kp.kubePrometheus.namespace } +
{
['setup/prometheus-operator-' + name]: kp.prometheusOperator[name]
for name in std.filter((function(name) name != 'serviceMonitor' && name != 'prometheusRule'), std.objectFields(kp.prometheusOperator))
} +
// serviceMonitor and prometheusRule are separated so that they can be created after the CRDs are ready
{ 'prometheus-operator-serviceMonitor': kp.prometheusOperator.serviceMonitor } +
{ 'prometheus-operator-prometheusRule': kp.prometheusOperator.prometheusRule } +
{ 'kube-prometheus-prometheusRule': kp.kubePrometheus.prometheusRule } +
{ ['alertmanager-' + name]: kp.alertmanager[name] for name in std.objectFields(kp.alertmanager) } +
{ ['blackbox-exporter-' + name]: kp.blackboxExporter[name] for name in std.objectFields(kp.blackboxExporter) } +
{ ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) } +
{ ['kube-state-metrics-' + name]: kp.kubeStateMetrics[name] for name in std.objectFields(kp.kubeStateMetrics) } +
{ ['kubernetes-' + name]: kp.kubernetesControlPlane[name] for name in std.objectFields(kp.kubernetesControlPlane) }
{ ['node-exporter-' + name]: kp.nodeExporter[name] for name in std.objectFields(kp.nodeExporter) } +
{ ['prometheus-' + name]: kp.prometheus[name] for name in std.objectFields(kp.prometheus) } +
{ ['prometheus-adapter-' + name]: kp.prometheusAdapter[name] for name in std.objectFields(kp.prometheusAdapter) }`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello
I have setup the bundle following the repo instructions:
https://github.com/prometheus-operator/kube-prometheus
Standart is ok, and I have CPU/MEMORY POD metrics.
Now I need custom metrics but I get an error when building with jsonet and enabled custom-metrics.libsonnet.
Any ideas on how to fix it?
error output:
RUNTIME ERROR: max stack frames exceeded.
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
...
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/addons/custom-metrics.libsonnet:7:18-54 object
vendor/kube-prometheus/components/prometheus-adapter.libsonnet:141:20-40 object
During manifestation
my jsonet file:
`local kp =
(import 'kube-prometheus/main.libsonnet') +
// Uncomment the following imports to enable its patches
// (import 'kube-prometheus/addons/anti-affinity.libsonnet') +
// (import 'kube-prometheus/addons/managed-cluster.libsonnet') +
(import 'kube-prometheus/addons/node-ports.libsonnet') +
// (import 'kube-prometheus/addons/static-etcd.libsonnet') +
(import 'kube-prometheus/addons/custom-metrics.libsonnet') +
// (import 'kube-prometheus/addons/external-metrics.libsonnet') +
{
values+:: {
common+: {
namespace: 'monitoring',
},
},
};
{ 'setup/0namespace-namespace': kp.kubePrometheus.namespace } +
{
['setup/prometheus-operator-' + name]: kp.prometheusOperator[name]
for name in std.filter((function(name) name != 'serviceMonitor' && name != 'prometheusRule'), std.objectFields(kp.prometheusOperator))
} +
// serviceMonitor and prometheusRule are separated so that they can be created after the CRDs are ready
{ 'prometheus-operator-serviceMonitor': kp.prometheusOperator.serviceMonitor } +
{ 'prometheus-operator-prometheusRule': kp.prometheusOperator.prometheusRule } +
{ 'kube-prometheus-prometheusRule': kp.kubePrometheus.prometheusRule } +
{ ['alertmanager-' + name]: kp.alertmanager[name] for name in std.objectFields(kp.alertmanager) } +
{ ['blackbox-exporter-' + name]: kp.blackboxExporter[name] for name in std.objectFields(kp.blackboxExporter) } +
{ ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) } +
{ ['kube-state-metrics-' + name]: kp.kubeStateMetrics[name] for name in std.objectFields(kp.kubeStateMetrics) } +
{ ['kubernetes-' + name]: kp.kubernetesControlPlane[name] for name in std.objectFields(kp.kubernetesControlPlane) }
{ ['node-exporter-' + name]: kp.nodeExporter[name] for name in std.objectFields(kp.nodeExporter) } +
{ ['prometheus-' + name]: kp.prometheus[name] for name in std.objectFields(kp.prometheus) } +
{ ['prometheus-adapter-' + name]: kp.prometheusAdapter[name] for name in std.objectFields(kp.prometheusAdapter) }`
Beta Was this translation helpful? Give feedback.
All reactions