Giter VIP home page Giter VIP logo

Comments (10)

anitgandhi avatar anitgandhi commented on August 16, 2024 1

I'm facing the same issue.

I think the help string containing (default: true) are coming from node_exporter's kingpin flags themselves: https://github.com/prometheus/node_exporter/blob/v1.0.1/collector/collector.go#L67

meanwhile, in do-agent, various collectors are disabled by default as pointed out above:

disableCollectors("arp", "bcache", "bonding", "buddyinfo", "conntrack",

in practice, what this ends up doing is adding --no-collector.arp etc to do-agent's internal cli flag set:

os.Args = append(os.Args, additionalParams...)

and then any subsequent --collector.arp flag is interpreted after that

the exact same issue would occur if running node_exporter directly, fwiw.

# ./node_exporter-1.1.2.linux-amd64/node_exporter --no-collector.arp --collector.arp
node_exporter: error: flag 'collector.arp' cannot be repeated, try --help

in config.go's disableCollectors you could do kingpin.CommandLine.GetFlag(fmt.Sprintf("collector.%s", name)).Default("false"), and then remove the os.Argv modification, but it won't help with the help strings

from do-agent.

alzeih avatar alzeih commented on August 16, 2024

This issue is somewhat related to #52 too.

from do-agent.

stale avatar stale commented on August 16, 2024

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs.

from do-agent.

alzeih avatar alzeih commented on August 16, 2024

This issue is not stale and has not received a response from Digital Ocean in 3 months.

from do-agent.

stale avatar stale commented on August 16, 2024

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs.

from do-agent.

bsnyder788 avatar bsnyder788 commented on August 16, 2024

still valid

from do-agent.

stale avatar stale commented on August 16, 2024

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs.

from do-agent.

alzeih avatar alzeih commented on August 16, 2024

Issue not stale yet, just a bit older.

from do-agent.

bsnyder788 avatar bsnyder788 commented on August 16, 2024

still valid

from do-agent.

gininfra avatar gininfra commented on August 16, 2024

I'm facing the same issue

from do-agent.

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.