Coder Social home page Coder Social logo

Comments (4)

bboreham avatar bboreham commented on August 23, 2024 2

I looked at the package; you need to call .Format(expfmt.FmtText) to meet the expectations of this program (documented here).

I filed prometheus/client_golang#824 for the inconsistency.

from prom-aggregation-gateway.

bboreham avatar bboreham commented on August 23, 2024

I’ve not looked at the Pusher package, but “foo-job” is invalid per the spec - minus sign is not allowed.

from prom-aggregation-gateway.

sptrakesh avatar sptrakesh commented on August 23, 2024

I am trying out this project, and I am getting a similar error. Same code works with the prometheus push gateway.

Could not push metrics to push gateway. unexpected status code 400 while pushing to http://push-gateway/metrics/job/region_metrics/assets/regions: text format parsing error in line 1: invalid metric name
if err := push.New("http://push-gateway/", "region_metrics").
        Collector(metric).
        Grouping("assets", "regions").
        Push(); err != nil {
        log.Printf("metrics.%v - Could not push metrics to push gateway. %v", fn, err)
}

from prom-aggregation-gateway.

sptrakesh avatar sptrakesh commented on August 23, 2024

Indeed, that fixes the error.

from prom-aggregation-gateway.

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.