Coder Social home page Coder Social logo

Comments (8)

shevasv avatar shevasv commented on August 15, 2024 1

Hi, I manage to resolve the same issue using next correction in exporter.go:

27c27
< // "github.com/prometheus/client_golang/prometheus/promhttp"
---
> "github.com/prometheus/client_golang/prometheus/promhttp"
143c143
< http.Handle(*metricsPath, prometheus.Handler())
---
> http.Handle(*metricsPath, promhttp.Handler())

from ceph_exporter.

kaeltis avatar kaeltis commented on August 15, 2024

This worked for me too, thanks!

from ceph_exporter.

ben-ashby avatar ben-ashby commented on August 15, 2024

Hi @kaeltis, are you able to elaborate a bit on what you actually did here? My exporter.go file looks to be using the correct promhttp.Handler(), yet I am still having the issue. Any tips you can share?

from ceph_exporter.

kaeltis avatar kaeltis commented on August 15, 2024

@ben-ashby, you have to comment out the import of the promhttp library at the top of the exporter.go and change the handler from "promhttp.Handler()" to "prometheus.Handler()"

from ceph_exporter.

wwalker avatar wwalker commented on August 15, 2024

This fix works for me also.

from ceph_exporter.

kaeltis avatar kaeltis commented on August 15, 2024

Created PR #73 for this, don't know if it will be merged, since it's a workaround, but if anyone has the Issue as well, you can use the exporter.go file from there.

from ceph_exporter.

cristicalin avatar cristicalin commented on August 15, 2024

This fixes at least hammer support.

Edit: i assumed this was merged last time I rebuilt but without it hammer was also broken.
This seems to have been broken by #69 which would appear to need further investigation.

from ceph_exporter.

sosodev avatar sosodev commented on August 15, 2024

This should have been fixed by #71

from ceph_exporter.

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.