Giter VIP home page Giter VIP logo

prometheus-pushgateway-cleaner's People

Contributors

jorinvo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

prometheus-pushgateway-cleaner's Issues

Base64 Encoding

Hello,

Thank you for this project! Having an issue with base64 encoding...

Deleting job: http://mon-prometheus-operator-prometheus-pushgateway.mon.svc.cluster.local:9091/metrics/job@base64/ZHAtZW1xeC05NWJiNjhmZGItZmY4ZGc=/instance@base64/ZHAtZW1xeC05NWJiNjhmZGItZmY4ZGd+MTkyLjE2OC4xNi44
Exception in thread "main" clojure.lang.ExceptionInfo: clj-http: status 400 {:headers {"content-type" "text/plain; charset=utf-8", "x-content-type-options" "nosniff", "date" "Mon, 22 Jun 2020 22:25:05 GMT", "content-length" "132"}, :status 400, :body "invalid base64 encoding for label instance="ZHAtZW1xeC05NWJiNjhmZGItZmY4ZGd+MTkyLjE2OC4xNi44": illegal base64 data at input byte 31\n"}

I believe the base64 encoding type that push gateway expects is different, possibly URL encoding instead of basic base64 encoding? Specifically it does not like "+".

base64?

It seems to have the wrong metric name

Dry run: Won't delete any data
Fetching data from Prometheus pushgateway
Found jobs: 9
Expired jobs: 9
(Dry run) Deletion of job: http://10.0.1.2:9091/metrics/job@base64/amFuaXRvcg
(Dry run) Deletion of job: http://10.0.1.2:9091/metrics/job@base64/dHJhY2tjZXJ0cw/domain@base64/YXBwLmVka2ltby5jb20

Which also prevents it from deleting the metric.

Deleting job: http://10.0.1.2:9091/metrics/job@base64/amFuaXRvcg
Exception in thread "main" clojure.lang.ExceptionInfo: clj-http: status 404 {:headers {"content-type" "text/plain; charset=utf-8", "x-content-type-options" "nosniff", "date" "Tue, 07 Sep 2021 20:47:56 GMT", "content-length" "19"}, :status 404, :body "404 page not found\n"}

What am I missing?

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.