{"id":19583897,"url":"https://github.com/bodsch/ansible-go-carbon","last_synced_at":"2026-05-06T00:03:23.046Z","repository":{"id":51179222,"uuid":"341441354","full_name":"bodsch/ansible-go-carbon","owner":"bodsch","description":"ansible role for go-carbon. install and configure a carbon cache writer","archived":false,"fork":false,"pushed_at":"2022-06-14T04:41:41.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-09T05:38:34.277Z","etag":null,"topics":["ansible","automation","cache","carbon","go","go-carbon","monitoring"],"latest_commit_sha":null,"homepage":"","language":"Python","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/bodsch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-23T05:38:32.000Z","updated_at":"2022-06-14T04:41:44.000Z","dependencies_parsed_at":"2022-09-03T13:11:37.889Z","dependency_job_id":null,"html_url":"https://github.com/bodsch/ansible-go-carbon","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodsch%2Fansible-go-carbon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodsch%2Fansible-go-carbon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodsch%2Fansible-go-carbon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodsch%2Fansible-go-carbon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bodsch","download_url":"https://codeload.github.com/bodsch/ansible-go-carbon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240850803,"owners_count":19867931,"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","automation","cache","carbon","go","go-carbon","monitoring"],"created_at":"2024-11-11T07:45:45.058Z","updated_at":"2026-05-06T00:03:23.039Z","avatar_url":"https://github.com/bodsch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Ansible Role:  `go-carbon`\n\nAnsible role to install and configure [go-carbon](https://github.com/go-graphite/go-carbon).\n\n\u003e Golang implementation of Graphite/Carbon server with classic architecture: Agent -\u003e Cache -\u003e Persister\n\n\n\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/bodsch/ansible-go-carbon/CI)][ci]\n[![GitHub issues](https://img.shields.io/github/issues/bodsch/ansible-go-carbon)][issues]\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/bodsch/ansible-go-carbon)][releases]\n\n[ci]: https://github.com/bodsch/ansible-go-carbon/actions\n[issues]: https://github.com/bodsch/ansible-go-carbon/issues?q=is%3Aopen+is%3Aissue\n[releases]: https://github.com/bodsch/ansible-go-carbon/releases\n\n\n## configure\n\ndefine your own *storage schemas*:\n\n```yaml\ngo_carbon_storage_schema:\n  test:\n    pattern: '^test\\.'\n    retentions: '5m:30d'\n```\n\ndefine your own *storage aggregation*:\n\n```yaml\ngo_carbon_storage_aggregation:\n  count:\n    pattern: '\\.count$'\n    xFilesFactor: 0\n    aggregationMethod: sum\n```\n\nYou can use also the defaults under [`vars/main.yml`](vars/main.yml)\n\n\n## clean up older whisper data\n\nI use a small (with my modifications) Script from [Marianne Spiller](https://github.com/sysadmama) / [unixe.de](https://www.unixe.de/whisper-daten-aufraeumen/)\n\n(There you will find more useful tips around the topic of monitoring.\n\n**This page is highly recommended, which is what I am doing with it.**)\n\n- You should make sure that a cron-daemon is installed.\n- For *RedHat* based systems `cronie` can be used.\n- For *Debian* based systems `cron` is available.\n\nYou can set the cron-daemon over `go_carbon_used_cron_daemon`.\n\n**Support for systemd is currently not planned.**\n\nTo active this feature set `go_carbon_clean_data_enabled` to `true`\n\n\n## example configuration\n\n```yaml\ngo_carbon_whisper_data_directory: /opt/graphite/whisper\n\ngo_carbon_storage_schema:\n  telegraf:\n    # 1 Host and 1 Metric produce: 105.51 Kilobytes\n    pattern: '^telegraf\\.'\n    retentions: '10s:2d,1m:6h,5m:30d'\n  grafana:\n    # 1 Host and 1 Metric produce: 556.94 Kilobytes\n    pattern: '^grafana\\.'\n    retentions: '1m:15d,5m:30d,15m:120d,1h:240d'\n  icinga2:\n    # 1 Host and 1 Metric produce: 556.94 Kilobytes\n    pattern: '^icinga2\\.'\n    retentions: '1m:15d,5m:30d,15m:120d,1h:240d'\n```\n\n## example playbook\n\n```yaml\n- hosts: monitoring\n  gather_facts: true\n  become: true\n  environment:\n    NETRC: ''\n\n  roles:\n    - role: go-carbon\n```\n\n## tests\n\nYou can use a set of test:\n\n### default\n\n```bash\ntox -e py39-ansible29 -- molecule test -s default\n```\n\n### letest version from github\n\n```bash\ntox -e py39-ansible29 -- molecule test -s latest\n```\n\n### latest version with automatic clean of older whisper data\n\n```bash\ntox -e py39-ansible29 -- molecule test -s latest-with-clean-data\n```\n\n### named version\n\n```bash\ntox -e py39-ansible29 -- molecule test -s version-0.14\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodsch%2Fansible-go-carbon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodsch%2Fansible-go-carbon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodsch%2Fansible-go-carbon/lists"}