{"id":17159468,"url":"https://github.com/tomohiro/puppet-mackerel_agent","last_synced_at":"2025-08-23T13:38:33.161Z","repository":{"id":24271139,"uuid":"27665434","full_name":"tomohiro/puppet-mackerel_agent","owner":"tomohiro","description":"Puppet module for mackerel-agent","archived":false,"fork":false,"pushed_at":"2020-11-06T04:43:01.000Z","size":92,"stargazers_count":4,"open_issues_count":3,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T13:01:03.252Z","etag":null,"topics":["mackerel","mackerel-agent","puppet"],"latest_commit_sha":null,"homepage":"https://forge.puppetlabs.com/tomohiro/mackerel_agent","language":"Puppet","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"SimplePiece/PrototipoImpressaoBanese","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomohiro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-07T09:38:20.000Z","updated_at":"2017-06-30T12:44:39.000Z","dependencies_parsed_at":"2022-08-22T14:40:29.091Z","dependency_job_id":null,"html_url":"https://github.com/tomohiro/puppet-mackerel_agent","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/tomohiro/puppet-mackerel_agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomohiro%2Fpuppet-mackerel_agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomohiro%2Fpuppet-mackerel_agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomohiro%2Fpuppet-mackerel_agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomohiro%2Fpuppet-mackerel_agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomohiro","download_url":"https://codeload.github.com/tomohiro/puppet-mackerel_agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomohiro%2Fpuppet-mackerel_agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271749168,"owners_count":24814141,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["mackerel","mackerel-agent","puppet"],"created_at":"2024-10-14T22:14:19.046Z","updated_at":"2025-08-23T13:38:33.136Z","avatar_url":"https://github.com/tomohiro.png","language":"Puppet","funding_links":[],"categories":[],"sub_categories":[],"readme":"Puppet module for mackerel-agent\n================================================================================\n\n[![Puppet Forge](https://img.shields.io/puppetforge/v/tomohiro/mackerel_agent.svg?style=flat-square)](https://forge.puppetlabs.com/tomohiro/mackerel_agent)\n[![Dependency Status](https://img.shields.io/gemnasium/Tomohiro/puppet-mackerel_agent.svg?style=flat-square)](https://gemnasium.com/Tomohiro/puppet-mackerel_agent)\n[![Build Status](https://img.shields.io/travis/Tomohiro/puppet-mackerel_agent.svg?style=flat-square)](https://travis-ci.org/Tomohiro/puppet-mackerel_agent)\n\n\nTable of Contents\n--------------------------------------------------------------------------------\n\n1. [Overview - What is the mackerel_agent module?](#overview)\n2. [Setup - The basics of getting started](#setup)\n3. [Usage - How to use the module](#usage)\n4. [Limitations - OS compatibility, etc.](#limitations)\n5. [Development - Guide for contributing to the module](#development)\n\n\nOverview\n--------------------------------------------------------------------------------\n\nThis Puppet module install and configure [mackerel-agent](https://github.com/mackerelio/mackerel-agent).\n\n\nSetup\n--------------------------------------------------------------------------------\n\nInstall via Puppet Forge:\n\n```sh\n$ puppet module install tomohiro-mackerel_agent\n```\n\n\nUsage\n--------------------------------------------------------------------------------\n\n```puppet\nclass { 'mackerel_agent':\n  apikey              =\u003e 'Your API Key',\n  roles               =\u003e ['service:web', 'service:database'],\n  host_status         =\u003e {\n    on_start =\u003e 'working',\n    on_stop  =\u003e 'poweroff'\n  },\n  ignore_filesystems  =\u003e '/dev/ram.*',\n  use_metrics_plugins =\u003e true,\n  use_check_plugins   =\u003e true,\n  metrics_plugins     =\u003e {\n    apache2     =\u003e '/usr/local/bin/mackerel-plugin-apache2',\n    php-opcache =\u003e '/usr/local/bin/mackerel-plugin-php-opcache'\n  },\n  check_plugins       =\u003e {\n    access_log =\u003e '/usr/local/bin/check-log --file /var/log/access.log --pattern FATAL',\n    check_cron =\u003e '/usr/local/bin/check-procs -p crond'\n    check_ssh  =\u003e {\n      command               =\u003e 'ruby /path/to/check-ssh.rb',\n      notification_interval =\u003e '60',\n      max_check_attempts    =\u003e '3',\n      check_interval        =\u003e '5'\n    }\n  }\n}\n```\n\n### Hiera\n\n```yaml\nmackerel_agent::apikey: 'Your API Key'\nmackerel_agent::roles:\n  - 'service:web'\n  - 'service:database'\nmackerel_agent::host_status:\n  on_start: working\n  on_stop: poweroff\nmackerel_agent::ignore_filesystems: '/dev/ram.*'\nmackerel_agent::use_metrics_plugins: true\nmackerel_agent::use_check_plugins: true\nmackerel_agent::metrics_plugins:\n  apache2: '/usr/local/bin/mackerel-plugin-apache2'\n  php-opcache: '/usr/local/bin/mackerel-plugin-php-opcache'\nmackerel_agent::check_plugins:\n  access_log: '/usr/local/bin/check-log --file /var/log/access.log --pattern FATAL'\n  check_cron: '/usr/local/bin/check-procs -p crond'\n  ssh:\n    command: 'ruby /path/to/check-ssh.rb'\n    notification_interval: '60'\n    max_check_attempts: '3'\n    check_interval: '5'\n```\n\n\nLimitations\n--------------------------------------------------------------------------------\n\nThese operation systems are supported.\n\n- RHEL 6\n- CentOS 6\n- Debian 7\n- Ubuntu 14.04\n\nThe person who want to add an operating system to supported list should implement it himself.\n\n\nDevelopment\n--------------------------------------------------------------------------------\n\n### Requirements\n\n- Puppet 3.7 or later\n- librarian-puppet\n\n\n### Setup development environments\n\nInstall dependencies:\n\n```sh\n$ bundle install --path vendor/bundle\n$ bundle exec librarian-puppet install\n```\n\nYou can run smoke tests:\n\n```sh\n$ export MACKEREL_API_KEY=\"your api key\" # Export a your mackerel API key\n$ vagrant up\n$ vagrant provision\n```\n\n\n### Testing\n\nUnit tests:\n\n```sh\n$ bundle exec rake spec\n```\n\nAcceptance tests:\n\n```sh\n$ export DOCKER_HOST=tcp://your-docker-host-ip:port\n$ BEAKER_set=centos-6-x64 bundle exec rake beaker\n```\n\n\n### Contributing\n\nSee [CONTRIBUTING](CONTRIBUTING.md) guideline.\n\n\nLICENSE\n--------------------------------------------------------------------------------\n\n\u0026copy; 2014 - 2016 Tomohiro TAIRA.\n\nThis project is licensed under the Apache License, Version 2.0.\nSee [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomohiro%2Fpuppet-mackerel_agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomohiro%2Fpuppet-mackerel_agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomohiro%2Fpuppet-mackerel_agent/lists"}