Giter Site home page Giter Site logo

Comments (6)

kormoc avatar kormoc commented on September 1, 2024

Yes, Gentoo uses that way for it's init.d network scripts

That said, I think the preferred solution would be to setup the config file to use subkeys

Example

[MemcachedCollector]

[[Identifier A]]
host = localhost
port = 11211

[[Identifier B]]
host = localhost
port = 22122

I feel that would be much easier for systems like bcfg2 or chef to manage.

Would that work for your usage?

from diamond.

pablolb avatar pablolb commented on September 1, 2024

Yes, this would work fine.

I browsed over the current collectors, and I saw that at leas one uses sub-sections in their configuration.

Maybe a special named section would be required for named instances? I have pushed a commit to the same branch as an example.

from diamond.

kormoc avatar kormoc commented on September 1, 2024

I think this should do the trick really well. Please let me know if you run into any issues at all.

Thanks!

from diamond.

keen99 avatar keen99 commented on September 1, 2024

just a note for future readers who are looking for something like this and find this in a search:

this is NOT supported syntax for current (june 2014) diamond.

:-)

from diamond.

kovyrin avatar kovyrin commented on September 1, 2024

So, do I understand it correctly: there is no way to monitor more than one instance of a service unless the author of a collector invented a special syntax for defining multiple sources of metrics? :-(

from diamond.

kormoc avatar kormoc commented on September 1, 2024

As of now, that is correct. A PR that implements a generic solution would be welcome

from diamond.

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.