question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable collectors

See original GitHub issue
TASK [cloudalchemy.node-exporter : Assert collectors are not both disabled and enabled at the same time] ***
failed: [host] (item=diskstats) => {
    "assertion": "item in node_exporter_enabled_collectors",
    "changed": false,
    "evaluated_to": false,
    "item": "diskstats",
    "msg": "Assertion failed"
}
failed: [host] (item=mdadm) => {
    "assertion": "item in node_exporter_enabled_collectors",
    "changed": false,
    "evaluated_to": false,
    "item": "mdadm",
    "msg": "Assertion failed"
}

I recently updated the role locally and it started failing with the above message. I think this check was introduced in #22. How do you disable what is enabled by this role (by default)? So far, I was using the role and disabled the collectors that I didn’t need and it worked — node-exporter didn’t use the collector for e.g. mdam or diskstats.

With #22, my deploy stalls as the collector is enabled by default, but I can’t disable it anymore.

Do I need to now explicitly set all enabled and disabled?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
paulfantomcommented, Apr 1, 2019

Soon there should be an announcement in https://www.meetup.com/Berlin-Prometheus-Meetup/

1reaction
paulfantomcommented, Apr 1, 2019

Should be fixed now.

I see you are based in Berlin, come to next prometheus meetup (April 17th) 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable all collectors? · Issue #735 · prometheus/node_exporter
Is there a way to disable all collectors by default? I just need "-collector. textfile" all the others are useless to me.
Read more >
Enable and disable collectors - BMC Documentation
Deactivate an active collector. Type D next to the collector name, and then press Enter. The collector is deactivated immediately. Warning.
Read more >
Enabling/Disabling a Collector - Fortinet Documentation Library
To disable one or more Collectors simultaneously: In the COLLECTORS page, select the checkboxes of the FortiEDR Collectors to be disabled. All selected ......
Read more >
How do I enable or disable Database Collectors?
Users who want to discontinue monitoring a database without deleting the Collector profile can disable the Collector from the Controller UI.
Read more >
Enabling and Disabling the Data Collectors - IBM
The scripts enabledc.py and disabledc.py programmatically enable and disable selected ITCAM Data Collectors for a given node of the WebSphere® Application ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found