Is it possible to use node_exporter behind a firewall? If yes, how would i implement such a thing?
Thanks,
Marcel
Hi,
Is it possible to use node_exporter behind a firewall? If yes, how would i implement such a thing?
Thanks,
Marcel
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Julius,
Thanks for this hint. I installed a reverse proxy in front of the node_exporter, then i changed the scrape URL to the IP:PORT/metrics of the reverse proxy, but now (as expected) promeutheus uses the IP of the reverse proxy. Is there a chance using the source IP of the node_exporter? Some kind of rewriting?
Cheers,
Marcel
Cheers,
Am Mittwoch, 5. August 2015 16:17:56 UTC+2 schrieb mkemp...@googlemail.com:
> Am Mittwoch, 5. August 2015 14:07:58 UTC+2 schrieb Brian Brazil:
> > On Wed, Aug 5, 2015 at 12:58 PM, <mkemp...@googlemail.com> wrote:
> > Am Dienstag, 4. August 2015 16:42:27 UTC+2 schrieb mkemp...@googlemail.com:
> >
> > > Hi,
> >
> > >
> >
> > > Is it possible to use node_exporter behind a firewall? If yes, how would i implement such a thing?
> >
> > >
> >
> > > Thanks,
> >
> > > Marcel
> >
> >
> >
> > Hi Julius,
> >
> >
> >
> > Thanks for this hint. I installed a reverse proxy in front of the node_exporter, then i changed the scrape URL to the IP:PORT/metrics of the reverse proxy, but now (as expected) promeutheus uses the IP of the reverse proxy. Is there a chance using the source IP of the node_exporter? Some kind of rewriting?
> >
> >
> >
> > You can use relabelling to separately set "__address__" (what's talked to over http) and the "instance" label (what the instance label ends up as). See https://github.com/prometheus/snmp_exporter#prometheus-configuration for an example.
> >
> >
> > Brian
> >
> >
> >
> > Cheers,
> >
> >
> >
> > Marcel
> >
> >
> >
> > --
> >
> > You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
> >
> > To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
> >
> > For more options, visit https://groups.google.com/d/optout.
>
> Thanks Brian, this did the job for me.
Hi,
Just one more thing regarding relabeling, is there a relabeling variable that contains the http source address, so i don't need to hardcode the replacement value?
----------------------------------------
relabel_configs:
- source_labels: [__address__]
regex: (.*):80
target_label: __address__
replacement: 10.70.0.50:9100 <---
----------------------------------------
Thanks,
Marcel
Thanks,
Marcel
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
target_groups:
- targets:
- '10.70.0.50:9090'
-----------------------------------------
Target configuration:
-----------------------------------------
- job_name: 'node'
scrape_interval: 5s
# Override the global default and scrape targets from this job every 5 seconds.
scrape_timeout: 10s
target_groups:
- targets: ['10.70.0.51:9100','10.70.0.52:9100','10.70.0.53:9100','10.70.0.54:9100','10.70.0.55:9100']
labels:
group: 'clusterb50'
Unfortunately this doesn't seem to work, when accessing http://10.70.0.50:9090/federate?match[]={__name__%3D~%22^job%3A.*%22} an empty page is returned, even though Prometheus reports the scrape target as up.
Thanks,
Marcel
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.