Answer the question
In order to leave comments, you need to log in
Is it possible to send data via node_exporter to the specified prometheus server?
Simplified scheme for collecting metrics:
(server1:9100) node_exporter<-(server2)prometheus <- (server2)grafana
I need:
(server1) node_exporter -> ??some storage?? (9100)<-(server2)prometheus <- (server2)grafana
Which bundle is used when deploying kubernetes to monitor the state (system, service) in each container or is it not relevant?
Thanks
Answer the question
In order to leave comments, you need to log in
gremlintv2 ,
in general, purely ideologically, prometheus works through data pull,
but it happens that the entities that we are going to monitor:
1) are ephemeral, that is, they are mortal entities that can rise later, in a different place and with a different address, for example
2) can be just jobs that naturally live for a certain period of time
3) are simply not available for the prometheus server There
are actually 2 good options, as for me
1) if the prometheus sits inside the same cluster, then we simply add a section like this to the config
job_name: ${appName}
kubernetes_sd_configs:
- role: pod
relabel_configs:
- action: keep
regex: ${appName}
source_labels:
- __meta_kubernetes_pod_container_name
metrics_path: ${path}
scrape_interval: ${interval}s
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question