{"id":19402151,"url":"https://github.com/robertdebock/ansible-role-collectd","last_synced_at":"2025-04-24T07:31:17.474Z","repository":{"id":43066033,"uuid":"237950622","full_name":"robertdebock/ansible-role-collectd","owner":"robertdebock","description":"Install and configure collectd on your system.","archived":false,"fork":false,"pushed_at":"2024-09-12T13:31:42.000Z","size":190,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-13T01:20:14.592Z","etag":null,"topics":["ansible","collectd","molecule","playbook","security","tox"],"latest_commit_sha":null,"homepage":"https://robertdebock.nl/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertdebock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"robertdebock"}},"created_at":"2020-02-03T11:34:10.000Z","updated_at":"2024-09-12T13:16:59.000Z","dependencies_parsed_at":"2023-11-11T09:25:59.391Z","dependency_job_id":"8d7834b9-ca63-429b-8945-ad11683d31ce","html_url":"https://github.com/robertdebock/ansible-role-collectd","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-collectd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-collectd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-collectd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-collectd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertdebock","download_url":"https://codeload.github.com/robertdebock/ansible-role-collectd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223944602,"owners_count":17229479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","collectd","molecule","playbook","security","tox"],"created_at":"2024-11-10T11:22:05.014Z","updated_at":"2024-11-10T11:22:05.597Z","avatar_url":"https://github.com/robertdebock.png","language":"Jinja","funding_links":["https://github.com/sponsors/robertdebock"],"categories":[],"sub_categories":[],"readme":"# [Ansible role collectd](#collectd)\n\nInstall and configure collectd on your system.\n\n|GitHub|GitLab|Downloads|Version|\n|------|------|---------|-------|\n|[![github](https://github.com/robertdebock/ansible-role-collectd/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-collectd/actions)|[![gitlab](https://gitlab.com/robertdebock-iac/ansible-role-collectd/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-collectd)|[![downloads](https://img.shields.io/ansible/role/d/robertdebock/collectd)](https://galaxy.ansible.com/robertdebock/collectd)|[![Version](https://img.shields.io/github/release/robertdebock/ansible-role-collectd.svg)](https://github.com/robertdebock/ansible-role-collectd/releases/)|\n\n## [Example Playbook](#example-playbook)\n\nThis example is taken from [`molecule/default/converge.yml`](https://github.com/robertdebock/ansible-role-collectd/blob/master/molecule/default/converge.yml) and is tested on each push, pull request and release.\n\n```yaml\n---\n- name: Converge\n  hosts: all\n  become: true\n  gather_facts: true\n  vars:\n    collectd_plugin_logging: logfile\n    collectd_basic_plugins:\n      - cpu\n      - interface\n      - load\n      - memory\n    collectd_plugins:\n      - name: write_http\n        config: |\n          \u003cNode \"test\"\u003e\n            URL \"127.0.0.1:8080/test.collectd\"\n            Format \"JSON\"\n            StoreRates true\n          \u003c/Node\u003e\n      - name: postgresql\n        config: |\n          \u003cQuery tickets\u003e\n            Statement \"SELECT count(t.id) AS count FROM tickets t WHERE t.closed is null;\"\n            \u003cResult\u003e\n              Type gauge\n              InstancePrefix \"tickets\"\n              ValuesFrom \"count\"\n            \u003c/Result\u003e\n          \u003c/Query\u003e\n          \u003cDatabase \"test\"\u003e\n            Host \"psql-database.hostname.com\"\n            Port \"5432\"\n            User \"my_psqladminuser\"\n            Password \"my_passwd\"\n            SSLMode \"prefer\"\n            Query tickets\n          \u003c/Database\u003e\n\n  roles:\n    - role: robertdebock.collectd\n```\n\nThe machine needs to be prepared. In CI this is done using [`molecule/default/prepare.yml`](https://github.com/robertdebock/ansible-role-collectd/blob/master/molecule/default/prepare.yml):\n\n```yaml\n---\n- name: Prepare\n  hosts: all\n  become: true\n  gather_facts: false\n\n  roles:\n    - role: robertdebock.bootstrap\n    - role: robertdebock.epel\n```\n\nAlso see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.\n\n## [Role Variables](#role-variables)\n\nThe default values for the variables are set in [`defaults/main.yml`](https://github.com/robertdebock/ansible-role-collectd/blob/master/defaults/main.yml):\n\n```yaml\n---\n# defaults file for collectd\n\ncollectd_conf_hostname: \"{{ ansible_hostname }}\"\ncollectd_conf_fqdnlookup: \"false\"\ncollectd_conf_basedir: /var/lib/collectd\ncollectd_conf_pidfile: /var/run/collectd.pid\ncollectd_conf_typesdb: /usr/share/collectd/types.db\n\ncollectd_conf_autoloadplugin: \"false\"\ncollectd_conf_collectinternalstats: \"false\"\n\ncollectd_conf_interval: 10\ncollectd_conf_maxreadinterval: 86400\ncollectd_conf_timeout: 2\ncollectd_conf_readthreads: 5\ncollectd_conf_writethreads: 5\n\ncollectd_conf_include_dir: /etc/collectd.d\ncollectd_conf_fnmatch_filters:\n  - \"*.conf\"\n\n#### Logging Configuration\n\ncollectd_plugin_logging: syslog\n\ncollectd_plugin_logging_directory: \"/var/log/collectd\"\n\ncollectd_plugin_logfile_loglevel: \"info\"\ncollectd_plugin_logfile_file: \"{{ collectd_plugin_logging_directory }}/collectd.log\"\ncollectd_plugin_logfile_timestamp: \"true\"\ncollectd_plugin_logfile_printseverity: \"false\"\n\ncollectd_plugin_logstash_loglevel: \"info\"\ncollectd_plugin_logstash_file: \"{{ collectd_plugin_logging_directory }}/collectd.json.log\"\n\ncollectd_plugin_syslog_loglevel: \"info\"\n# collectd_plugin_syslog_notifylevel: \"\"\n\n# Use 'collectd_basic_plugins' to enable plugins not requiring additional\n# configuration.\ncollectd_basic_plugins:\n  - cpu\n  - interface\n  - load\n  - memory\n  # - aggregation\n  # - amqp\n  # - apache\n  # - apcups\n  # - apple_sensors\n  # - aquaero\n  # - ascent\n  # - barometer\n  # - battery\n  # - bind\n  # - ceph\n  # - cgroups\n  # - chrony\n  # - conntrack\n  # - contextswitch\n  # - cpu\n  # - cpufreq\n  # - cpusleep\n  # - csv\n  # - curl\n  # - curl_json\n  # - curl_xml\n  # - dbi\n  # - df\n  # - disk\n  # - dns\n  # - dpdkevents\n  # - dpdkstat\n  # - drbd\n  # - email\n  # - entropy\n  # - ethstat\n  # - exec\n  # - fhcount\n  # - filecount\n  # - fscache\n  # - gmond\n  # - gps\n  # - grpc\n  # - hddtemp\n  # - hugepages\n  # - intel_pmu\n  # - intel_rdt\n  # - interface\n  # - ipc\n  # - ipmi\n  # - iptables\n  # - ipvs\n  # - irq\n  # - java\n  # - load\n  # - lpar\n  # - lua\n  # - lvm\n  # - madwifi\n  # - mbmon\n  # - mcelog\n  # - md\n  # - memcachec\n  # - memcached\n  # - memory\n  # - mic\n  # - modbus\n  # - mqtt\n  # - multimeter\n  # - mysql\n  # - netapp\n  # - netlink\n  # - network\n  # - nfs\n  # - nginx\n  # - notify_desktop\n  # - notify_email\n  # - notify_nagios\n  # - ntpd\n  # - numa\n  # - nut\n  # - olsrd\n  # - onewire\n  # - openldap\n  # - openvpn\n  # - oracle\n  # - ovs_events\n  # - ovs_stats\n  # - perl\n  # - pinba\n  # - ping\n  # - postgresql\n  # - powerdns\n  # - processes\n  # - protocols\n  # - python\n  # - redis\n  # - routeros\n  # - rrdcached\n  # - rrdtool\n  # - sensors\n  # - serial\n  # - sigrok\n  # - smart\n  # - snmp\n  # - snmp_agent\n  # - statsd\n  # - swap\n  # - table\n  # - tail\n  # - tail_csv\n  # - tape\n  # - tcpconns\n  # - teamspeak2\n  # - ted\n  # - thermal\n  # - tokyotyrant\n  # - turbostat\n  # - unixsock\n  # - uptime\n  # - users\n  # - uuid\n  # - varnish\n  # - virt\n  # - vmem\n  # - vserver\n  # - wireless\n  # - write_graphite\n  # - write_http\n  # - write_kafka\n  # - write_log\n  # - write_mongodb\n  # - write_prometheus\n  # - write_redis\n  # - write_riemann\n  # - write_sensu\n  # - write_tsdb\n  # - xencpu\n  # - xmms\n  # - zfs_arc\n  # - zone\n  # - zookeeper\n\n# Use 'collectd_plugins' to enable plugins requiring additional configuration.\ncollectd_plugins: []\n# examples:\n#  - name: example\n#    interval: 120 #seconds\n#    flush_interval: 600 #seconds\n#    flush_timeout:\n#    config: |4\n#      Something: true\n#      \u003cNested block\u003e\n#        NestedKey: \"value\"\n#      \u003c/Nested\u003e\n#  - name: write_http\n#    config: |4\n#      \u003cNode \"oms\"\u003e\n#         URL \"127.0.0.1:26000/oms.collectd\"\n#         Format \"JSON\"\n#         StoreRates yes\n#      \u003c/Node\u003e\n#  - name: postgresql\n#    config: |4\n#      \u003cQuery tickets\u003e\n#          Statement \"SELECT count(t.id) AS count FROM tickets t WHERE t.closed is null;\"\n#          \u003cResult\u003e\n#            Type gauge\n#            InstancePrefix \"tickets\"\n#            ValuesFrom \"count\"\n#          \u003c/Result\u003e\n#      \u003c/Query\u003e\n#      \u003cDatabase \"test\"\u003e\n#        Host \"psql-database.hostname.com\"\n#        Port \"5432\"\n#        User \"my_psqladminuser\"\n#        Password \"my_passwd\"\n#        SSLMode \"prefer\"\n#        Query tickets\n#      \u003c/Database\u003e\n```\n\n## [Requirements](#requirements)\n\n- pip packages listed in [requirements.txt](https://github.com/robertdebock/ansible-role-collectd/blob/master/requirements.txt).\n\n## [State of used roles](#state-of-used-roles)\n\nThe following roles are used to prepare a system. You can prepare your system in another way.\n\n| Requirement | GitHub | GitLab |\n|-------------|--------|--------|\n|[robertdebock.bootstrap](https://galaxy.ansible.com/robertdebock/bootstrap)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-bootstrap/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap)|\n|[robertdebock.epel](https://galaxy.ansible.com/robertdebock/epel)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-epel/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-epel/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-epel/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-epel)|\n\n## [Context](#context)\n\nThis role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.\n\nHere is an overview of related roles:\n![dependencies](https://raw.githubusercontent.com/robertdebock/ansible-role-collectd/png/requirements.png \"Dependencies\")\n\n## [Compatibility](#compatibility)\n\nThis role has been tested on these [container images](https://hub.docker.com/u/robertdebock):\n\n|container|tags|\n|---------|----|\n|[Alpine](https://hub.docker.com/r/robertdebock/alpine)|all|\n|[Amazon](https://hub.docker.com/r/robertdebock/amazonlinux)|Candidate|\n|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|9|\n|[Debian](https://hub.docker.com/r/robertdebock/debian)|bullseye|\n|[Fedora](https://hub.docker.com/r/robertdebock/fedora)|all|\n|[Ubuntu](https://hub.docker.com/r/robertdebock/ubuntu)|focal|\n\nThe minimum version of Ansible required is 2.12, tests have been done to:\n\n- The previous version.\n- The current version.\n- The development version.\n\nIf you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-collectd/issues).\n\n## [License](#license)\n\n[Apache-2.0](https://github.com/robertdebock/ansible-role-collectd/blob/master/LICENSE).\n\n## [Author Information](#author-information)\n\n[robertdebock](https://robertdebock.nl/)\n\nPlease consider [sponsoring me](https://github.com/sponsors/robertdebock).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-collectd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertdebock%2Fansible-role-collectd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-collectd/lists"}