Giter Site home page Giter Site logo

Comments (5)

SophisticaSean avatar SophisticaSean commented on September 22, 2024 2

@SophisticaSean Thank you very much about your motivation to pick this up! Mostly, I just would like to see the device's assigned name or (in case of folders) the assigned name from the web-ui. This would make identifying the metrics much easier!

But, as you ask... Maybe there is more metadata available? Could you compile a short list of ideas (be it just code references), where I could get an idea from what to suggest?

Thanks in advance!

Yeah I'll take a look. My cursory glance revealed that this metric output takes the device ID's in as an argument, so we'd have to do some reworking to expose more data to the resulting prometheus metrics output.

from syncthing.

calmh avatar calmh commented on September 22, 2024 2

I suspect there are a number of places exporting things by ID where the name is not readily available. An other option could be to expose an info metric, like a gauge with ID, name, type labels and just the value 1 for each folder & device. You can then join with that in the promql query.

from syncthing.

simonmicro avatar simonmicro commented on September 22, 2024 1

@SophisticaSean Thank you very much about your motivation to pick this up! Mostly, I just would like to see the device's assigned name or (in case of folders) the assigned name from the web-ui. This would make identifying the metrics much easier!

But, as you ask... Maybe there is more metadata available? Could you compile a short list of ideas (be it just code references), where I could get an idea from what to suggest?

Thanks in advance!

from syncthing.

SophisticaSean avatar SophisticaSean commented on September 22, 2024

@simonmicro could you provide an example of what device metadata you'd like to see exposed with those metrics? I'm thinking about giving this a shot. :)

from syncthing.

simonmicro avatar simonmicro commented on September 22, 2024

@calmh Yes! This would also be a solution. Just presenting some metadata-metrics, which present the labels for the folder / device ids or even more metadata (last seen, connect time, connect ip, ...). Good idea!

from syncthing.

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.