prometheus-rules | This is intended as a home for collections
kandi X-RAY | prometheus-rules Summary
kandi X-RAY | prometheus-rules Summary
This is intended as a home for collections of useful, reusable prometheus rules.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- The main entry point .
prometheus-rules Key Features
prometheus-rules Examples and Code Snippets
Community Discussions
Trending Discussions on prometheus-rules
QUESTION
I'm trying to deploy Prometheus on GKE to monitor an existing Strimzi Kafka GKE cluster, and am facing issues. (ref - https://strimzi.io/docs/operators/latest/deploying.html#proc-metrics-deploying-prometheus-operator-str)
Here is what is done :
- created a namespace - monitoring, while Kafka is deployed in namespace - kafka
- modified the kafka-deployment.yaml to include metricsConfig and KafkaExporter as specified in file https://github.com/strimzi/strimzi-kafka-operator/tree/0.26.0/examples/metrics/kafka-metrics.yaml
here are the changes :
...ANSWER
Answered 2022-Jan-05 at 01:46Assuming that the Prometheus pods did start, their collective hostnames would be found via service discovery like prometheus.monitoring.svc.cluster.local
https://cloud.google.com/kubernetes-engine/docs/concepts/service-discovery
You might also be interesting in exposing Prometheus itself
QUESTION
I deployed a kafka cluster with consumer and producer clients on Kubernetes using Strimzi operator. I used the following strimzi deployment file , https://github.com/strimzi/strimzi-kafka-operator/blob/main/examples/metrics/kafka-metrics.yaml
I am using Kafka exporter to monitor consumer related metrics (Messages in/out per second per topic, lag by consumer group, offsets etc..). However, I am interested in configuring Prometheus to scrape the kafka_exporter metric "kafka_consumergroup_members
" for later display on Grafana. What additional configuration shall I add to the strimzi Prometheus configuration file (https://github.com/strimzi/strimzi-kafka-operator/blob/main/examples/metrics/prometheus-install/prometheus-rules.yaml) or any other deployment file (e.g., https://github.com/strimzi/strimzi-kafka-operator/blob/main/examples/metrics/kafka-metrics.yaml) so that "kafka_consumergroup_members" from the kafka_exporter metric is scraped.
ANSWER
Answered 2021-Jul-20 at 14:31The Kafka Exporter is a separate tool which provides additional metrics not provided by Kafka itself. It is not configurable in what metrics does it offer - you can only limit for which topics / consumer groups it will show the metrics.
So all metrics supported by Kafka Exporter are published on its metrics endpoint and when Prometheus scapes them it should scrape all of them. So if you have the other KAfka Exporter metrics in your Prometheus, you should already have this one as well (you actuall need to have some active consumer grups for it to show up).
QUESTION
I am reading kube-prometheus, https://github.com/coreos/kube-prometheus and came across a PromQL in a Prometheus rule file which I am having hard time understanding.
...ANSWER
Answered 2020-Feb-28 at 12:39QUESTION
I made the Kubernetes cluster with 2 azure Ubuntu VMs and trying to monitor the cluster. For that, I have deployed node-exporter daemonSet, heapster, Prometheus and grafana. Configured the node-exporter as a target in Prometheus rules files. but I am getting Get http://master-ip:30002/metrics: context deadline exceeded
error. I have also increased scrape_interval
and scrape_timeout
values in the Prometheus-rules file.
The following are the manifest files for the Prometheus-rules file and node-exporter daemonSet and service files.
...ANSWER
Answered 2020-Jan-21 at 16:02As @gayahtri confirmed in comments
it worked for me. – gayathri
If you have same issue as mentioned in topic check out this github issue
specifically this answer added by @simonpasquier
We have debugged it offline and the problem was the network. Running the Prometheus container with "--network=host" solved the issue.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install prometheus-rules
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page