Git Product home page Git Product logo

Comments (10)

Kidswiss avatar Kidswiss commented on May 27, 2024

Hi @gi8lino

Can you reproduce this issue with wrestic 0.1.9? It reports that the code is 200, which indicates that it worked. Maybe there's a bug in the status check.

Are the metrics there after the backup ran?

Best
Simon

from k8up.

gi8lino avatar gi8lino commented on May 27, 2024

Hi @Kidswiss

With wrestic 0.1.9 there is no log entry if something was send to the pushgateway.
Yes, it is a 200, but wrestic reports it as an error. As in the log written, the error occurs in line 145 in backup.go.

I found an issue. Maybe the client_golang is outdated.

I also found another issue to this problem which refers to actual prometheus go code here. Maybe this can help you...

Yes, the metrics are in the pushgateway.

from k8up.

Kidswiss avatar Kidswiss commented on May 27, 2024

Hi @gi8lino

Thanks for digging into this, I'll have a look at that.

Best
Simon

from k8up.

Kidswiss avatar Kidswiss commented on May 27, 2024

Hi @gi8lino

Finally had some time to get to this.

A simple update of the prometheus libraries in wrestic solves the issues.

0902 15:26:06.819188   22487 handler.go:44] wrestic/statsHandler/promStats "level"=0 "msg"="sending prometheus stats"  "url"="http://localhost:9091/"
I0902 15:26:06.838591   22487 backup.go:86] wrestic/backup "level"=0 "msg"="backup finished, sending snapshot list"  
I0902 15:26:06.838612   22487 snapshots.go:37] wrestic/snapshots "level"=0 "msg"="getting list of snapshots"  
I0902 15:26:07.423279   22487 handler.go:68] wrestic/statsHandler/webhookStats "level"=0 "msg"="sending webhooks"  "url"="http://localhost:8091"

Opened k8up-io/wrestic#23 for this.

Thanks for reporting the issues!

Best
Simon

from k8up.

gi8lino avatar gi8lino commented on May 27, 2024

Hi @Kidswiss

As soon as a new wrestic release is created, I will test it.

Best
gi8

from k8up.

gi8lino avatar gi8lino commented on May 27, 2024

Hi @Kidswiss

Any news about the pr?

Best
gi8

from k8up.

Kidswiss avatar Kidswiss commented on May 27, 2024

@gi8lino Sorry for the long radio silence.

I can build a temp image for further testing. If some other unforseen issues would arise.

from k8up.

gi8lino avatar gi8lino commented on May 27, 2024

@Kidswiss

A temp image would help and I will test it!

from k8up.

Kidswiss avatar Kidswiss commented on May 27, 2024

@gi8lino

You can use vshn/wrestic:prom_fix for testing. Looking forward to your results.

from k8up.

gi8lino avatar gi8lino commented on May 27, 2024

@Kidswiss

At the beginning I had some issues with the backups. It didn't find the buckets. I delete all the buckets and then the backups worked properly.
Now also the status code from prometheus seems to be processed correctly:

I0927 23:02:10.242398       1 handler.go:44] wrestic/statsHandler/promStats "level"=0 "msg"="sending prometheus stats"  "url"="http://prometheus-pushgateway.monitoring.svc.cluster.local:9091"
I0927 23:02:10.259513       1 backup.go:86] wrestic/backup "level"=0 "msg"="backup finished, sending snapshot list"  
I0927 23:02:10.259549       1 snapshots.go:37] wrestic/snapshots "level"=0 "msg"="getting list of snapshots"  

from k8up.

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.