https://github.com/astj/mackerel-plugin-aws-lambda
Lambda monitoring plugin for Mackerel
https://github.com/astj/mackerel-plugin-aws-lambda
Last synced: 10 months ago
JSON representation
Lambda monitoring plugin for Mackerel
- Host: GitHub
- URL: https://github.com/astj/mackerel-plugin-aws-lambda
- Owner: astj
- Created: 2016-12-14T11:19:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-12T05:49:06.000Z (over 9 years ago)
- Last Synced: 2025-02-16T09:41:54.188Z (over 1 year ago)
- Language: Go
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mackerel-plugin-aws-lambda [](https://travis-ci.org/astj/mackerel-plugin-aws-lambda)
=================================
AWS Lambda custom metrics plugin for mackerel.io agent.
## DEPRECATED
This plugin is now part of [Official Mackerel Agent Plugins](https://github.com/mackerelio/mackerel-agent-plugins/tree/master/mackerel-plugin-aws-lambda).
Please use official plugins, not this repository.
## Synopsis
```shell
mackerel-plugin-aws-lambda [-function-name=] -region= -access-key-id= -secret-access-key= [-tempfile=] [-metric-key-prefix=]
```
* If `function-name` is supplied, collect data from specified Lambda function.
* If not, whole Lambda stastics in the region is collected.
* you can set some parameters by environment variables: `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_REGION`.
* If both of those environment variables and command line parameters are passed, command line parameters are used.
* You may omit `region` parameter if you're running this plugin on an EC2 instance running in same region with the target Lambda function
## Example of mackerel-agent.conf
```
[plugin.metrics.aws-lambda]
command = "/path/to/mackerel-plugin-aws-lambda -function-name=MyFunc -region=ap-northeast-1"
```
## License
Copyright 2016 astj
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.