How to setup custom metrics #996
Replies: 10 comments 3 replies
-
Hey @yangvipguang, yes you need to setup jsonnet https://github.com/coreos/kube-prometheus/blob/master/README.md#compiling Once that is done you can uncomment https://github.com/coreos/kube-prometheus/blob/master/example.jsonnet#L9 this line and you get the extra manifests needed for custom metrics. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This sounds like you didn't follow https://github.com/coreos/kube-prometheus#prerequisites, did you? |
Beta Was this translation helpful? Give feedback.
-
i have figured 。may be i changed incrrectly when config custom metrics。 i have deploy the custom yaml files I have found the api versions :custom api versions but i returned some errors 。 |
Beta Was this translation helpful? Give feedback.
-
Maybe the video from last years FOSDEM might help too: https://www.youtube.com/watch?v=paO2kwHWOLw :) |
Beta Was this translation helpful? Give feedback.
-
Hi Guys, I am trying to build release-0.5 with custom-metrics, I uncomment the line in example.jsonnet and it looks like the following: local kp =
(import 'kube-prometheus/kube-prometheus.libsonnet') +
(import 'kube-prometheus/kube-prometheus-custom-metrics.libsonnet') + when I build with RUNTIME ERROR: couldn't open import "kube-prometheus/kube-prometheus-custom-metrics.libsonnet": no match locally or in the Jsonnet library paths When I build without custom-metrics, it works fine. Kindly advise how to fix it. Thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
@evgao you should run : jb install first and then ./build.sh |
Beta Was this translation helpful? Give feedback.
-
@yangvipguang Thanks Guang, It works now. |
Beta Was this translation helpful? Give feedback.
-
hi guys, Using release-0.4 Also want open customer metrics with this: But meet this error: Indeed this file does not exist How can I get this file or is there a sample file for this? |
Beta Was this translation helpful? Give feedback.
-
Hello, I have been trying this setup but I get an error when building with jsonet and enabled custom-metrics.libsonnet. error output: RUNTIME ERROR: max stack frames exceeded. |
Beta Was this translation helpful? Give feedback.
-
What did you do?
now, does custom metrics files been removed? i do not know how to config this . Should I generate these files with jsonnet? because I find the custom.metrics with jsonnet format 。
Did you expect to see some different?
Environment
Prometheus Operator version:
quay.io/coreos/prometheus-operator:v0.39.0
Kubernetes version information:
1.16.x
Kubernetes cluster kind:
insert how you created your cluster: kops, bootkube, tectonic-installer, etc.
Manifests:
Anything else we need to know?:
Beta Was this translation helpful? Give feedback.
All reactions