{"id":27088954,"url":"https://github.com/devops-works/ansible-telegraf","last_synced_at":"2025-04-06T06:36:46.059Z","repository":{"id":44474264,"uuid":"51295987","full_name":"devops-works/ansible-telegraf","owner":"devops-works","description":"InfluxDB's Telegraf role (Ubuntu)","archived":false,"fork":false,"pushed_at":"2024-04-16T16:33:15.000Z","size":82,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-17T13:21:56.186Z","etag":null,"topics":["ansible-role","influxdb","telegraf"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devops-works.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-02-08T12:12:29.000Z","updated_at":"2024-04-17T13:21:56.187Z","dependencies_parsed_at":"2024-04-16T10:45:22.604Z","dependency_job_id":"706ccfe8-c0ad-4555-b293-914ec7a84af1","html_url":"https://github.com/devops-works/ansible-telegraf","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fansible-telegraf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fansible-telegraf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fansible-telegraf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fansible-telegraf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devops-works","download_url":"https://codeload.github.com/devops-works/ansible-telegraf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445686,"owners_count":20939953,"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-role","influxdb","telegraf"],"created_at":"2025-04-06T06:36:45.525Z","updated_at":"2025-04-06T06:36:46.037Z","avatar_url":"https://github.com/devops-works.png","language":"Jinja","readme":"ansible-telegraf role\n======================\n\nInstalls [telegraf](https://github.com/influxdata/telegraf) on ubuntu\n14.04 and up.\n\nRequires Ansible 2.5+.\n\nSee\n[defaults/main.yml](https://github.com/leucos/ansible-telegraf/blob/master/defaults/main.yml)\nfor supported variables.\n\n## Variables\n\n- `telegraf_enabled`: whether to install telegraf or not\n- `telegraf_autoping`: whether to enable ping module and ping all inventory\n  hosts from each host\n- `telegraf_install_latest`: if set to `true`, will always attempt to\n  install latest version\n- `telegraf_agent_debug`: debug mode\n- `telegraf_agent_hostname` hostname to use when reporting (default: inventory_hostname)\n- `telegraf_agent_interval`: collecting interval\n- `telegraf_agent_flush_interval`: reporting interval\n- `telegraf_agent_flush_jitter`: jitter the flush interval by a random amount. This is primarily to avoid large write spikes for users running a large number of telegraf instances. ie, a jitter of 5s and flush_interval 10s means flushes will happen every 10-15s.\n- `telegraf_agent_round_interval`: rounds collection interval to 'interval' ie, if interval=\"10s\" then always collect on :00, :10, :20, etc.\n- `telegraf_tags`: additional tags to add (dict)\n- `telegraf_output_influxdb`: influxdb servers\n\n## Inputs\n\nTelegraf inputs are specified this way:\n\n```\ntelegraf_inputs:\n  cpu:\n    percpu: \"true\"\n    totalcpu: \"true\"\n    drop: [\"cpu_time\"]\n  disk: {}\n  mem: {}\n  swap: {}\n  system: {}\n```\n\nYou can use `_input_name` variable if you key is not reflecting an input\nname. This is handy when you need several inputs with the same name (e.g. several CloudWatch inputs for different namespaces for instance). For instance:\n\n```\n\ntelegraf_inputs:\n  cloudwatch_efs:\n    _input_name: cloudwatch\n    namespace: \"AWS/EFS\"\n  cloudwatch_rds:\n    _input_name: cloudwatch\n    namespace: \"AWS/RDS\"\n  cloudwatch_elb:\n    _input_name: cloudwatch\n    namespace: \"AWS/ELB\"\n  cpu:\n    percpu: \"true\"\n    totalcpu: \"true\"\n    drop: [\"cpu_time\"]\n  disk: {}\n  ...\n```\n\n## MySQL\n\nFor mysql plugintg to work best, the following grants are required:\n\n```sql\nGRANT SELECT, PROCESS, REPLICATION CLIENT ON *.* TO 'monitoring'@'localhost'\n```\n\n`SELECT` is required if you need to gather data from `INFORMATION_SCHEMA`\ntables.\n\n## Testing\n\nRun `vagrant up \u0026\u0026 vagrant ssh -c specs` to run specs (and play with telegraf).\n\nMichel Blanc \u003cmb@mbnet.fr\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-works%2Fansible-telegraf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevops-works%2Fansible-telegraf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-works%2Fansible-telegraf/lists"}