2 votes

Prometheus scrape from service vs pods

Scraping through any kind of load balancer in not advised. Even though you have round robin managing of requests, pod will have slightly different values of metrics, and this will only increase ...
markalex's user avatar
  • 160
2 votes

List all active promtail targets

Sounds like you want ${PROMTAIL_HTTP_ENDPOINT}/targets. See the server code
Bruce Becker's user avatar
  • 3,593
1 vote

Prometheus and Azure WebApps: How to monitor multiple instances with prometheus

You can do this similarly to how it's done in blackbox_exporter: list identifying information of your targets in the target block, and then use relabeling to replace scraping address with address of ...
markalex's user avatar
  • 160
1 vote
Accepted

Add prometheus config for all jobs

Is there no way to create a default config for all jobs? No, there is no such way. relabel_configs are specified on the job level. On the other hand, if all 20 of your jobs have exactly the same ...
markalex's user avatar
  • 160
1 vote

How to scrape only some targets of EC2 based on tag

I have figured out the way and using the below code snippet, we should be able to filter the ec2 instances based on the tags additionalScrapeConfigs: | - job_name: "prometheus_nginx" ...
Siva Malla's user avatar
1 vote
Accepted

Add more static instance labels in prometheus config

If I'm understanding your question, the answer comes straight out of the docs for static_configs: A static_config allows specifying a list of targets and a common label set for them. It is the ...
Life5ign's user avatar
  • 130
1 vote
Accepted

How to add an aditional ServiceMonitor for prometheus-operator?

I don't know if you managed to get this working, but I had the exact same issue. Running a K8s cluster with kube-prometheus-stack installed via Helm, and a CRD prometheus-operator. I also needed to ...
SterbenTheOG's user avatar
1 vote

Metrics Server and Prometheus have overwriting resources

A way around this issue is to just change the name of each APISerice..Or better yet just change the metric servers name for example. apiVersion: apiregistration.k8s.io/v1 kind: APIService metadata: ...
Freddy's user avatar
  • 11
1 vote

Measuring image pull latency in k8s cluster

Just checked for it and seems they working on kubelet metric for it: image_pull_duration_seconds See the threads https://github.com/kubernetes/kubernetes/pull/121719 and https://github.com/kubernetes/...
MrZorkiPongi's user avatar
1 vote
Accepted

How to defragment etcd database in Kubernetes cluster

You have to login to that host where etcd pods is running (usually Mater node) and execute : etcdctl defrag OR ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/...
Amandeep Singh's user avatar
1 vote

How to defragment etcd database in Kubernetes cluster

You need to run the command on one of the Kubernetes nodes where the etcd pods are running. I'm running this from Git Bash. It errors out with a message that seems to make no sense. It's almost as ...
guesty mcguest's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible