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 ...
2
votes
List all active promtail targets
Sounds like you want ${PROMTAIL_HTTP_ENDPOINT}/targets. See the server code
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 ...
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 ...
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"
...
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 ...
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 ...
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:
...
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/...
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/...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
prometheus × 93kubernetes × 41
grafana × 27
monitoring × 15
metrics × 7
kubernetes-helm × 4
amazon-web-services × 3
openshift × 3
sre × 3
spring-boot × 3
thanos × 3
docker × 2
amazon-ec2 × 2
testing × 2
databases × 2
logging × 2
java × 2
eks × 2
performance × 2
jira × 2
jenkins × 1
gitlab × 1
jenkins-plugins × 1
security × 1
helm × 1