Coder Social home page Coder Social logo

Comments (13)

vegasbrianc avatar vegasbrianc commented on May 13, 2024

Hi @roshu10 This will support a Pushgateway. You will only need to setup each Pushgateway as a new target in the prometheus/prometheus.yml file

Here's the documentation on setting up a PushGateway with Prometheus. Hope this helps - https://github.com/prometheus/pushgateway#configure-the-pushgateway-as-a-target-to-scrape

from prometheus.

roshan8 avatar roshan8 commented on May 13, 2024

Hi @vegasbrianc i have tried this.
I set honor_labels: true as mentioned in the guide.

scrape_configs:

  • job_name: 'node'
    honor_labels: true
    ec2_sd_configs:

But still when i pushed data using pushgateway (It will show success when i run).

Data data is not being shown either in Prometheus/Grafana

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 13, 2024

Can you curl the pushgateway from the Prometheus server?

from prometheus.

roshan8 avatar roshan8 commented on May 13, 2024

I executed this command on my local machine:

echo "some_metric 3.14" | curl --data-binary @- http://x.x.x.x:9091/metrics/job/some_job

x.x.x.x was my Prometheus server.

It executed successfully without errors

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 13, 2024

Is your local machine the same as where Prometheus runs? If not try it again on the Prometheus server. If this works that means Prometheus should also be able to retrieve these metrics.

from prometheus.

roshan8 avatar roshan8 commented on May 13, 2024

Yea tried.

Its executing without any error, but no output also

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 13, 2024

What metrics is your application pushing to the gateway?

from prometheus.

roshan8 avatar roshan8 commented on May 13, 2024

I'm trying to push node exporter metrics

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 13, 2024

My understanding is the Pushgateway is used to integrate directly into your application and gather application metrics. This is not intended to interface with Node Exporter - https://github.com/prometheus/pushgateway#non-goals

from prometheus.

roshan8 avatar roshan8 commented on May 13, 2024

ok,

my case is node_exporter is running on all the nodes,

But prometheus can't reach these hosts.

So i want to push all these data that i received from node_exporter to Prometheus server

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 13, 2024

Hmm, that's difficult. Prometheus needs some way to connect to the node exporters to get the metrics. An alternative is to create a separate management network just for monitoring.

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 13, 2024

or change the port of the node_exporter so it is allowed

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 13, 2024

@roshu10 closing this issue as it is related to your firewall and not Prometheus or the stack.

from prometheus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.