I have cloned and started the
https://computingforgeeks.com/setup-prometheus-and-grafana-on-kubernetes/
kube-prometheus project on my local. I want to add additional scrap config to retrieve custom metrics from another source. I found
but I cannot change the prometheus.yaml in the pods. I could not find where to change. Can anyone help me get this additional scraper configured in the kube-prometheus project?
I could not find where to add additional scraper as mentioned in the URL above:
Finally, reference this additional configuration in your prometheus.yaml CRD.
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: prometheus
labels:
prometheus: prometheus
spec:
replicas: 2
serviceAccountName: prometheus
serviceMonitorSelector:
matchLabels:
team: frontend
additionalScrapeConfigs:
name: additional-scrape-configs
key: prometheus-additional.yaml
enter code here
The CRDs I found in the kube-prometheus project all have the informational descriptions but do not take a value. How can I add my additionalScrapeConfigs?
Thanks.
Emrah