Коммит
4d6dfb272a
13
README.md
13
README.md
|
@ -1,8 +1,8 @@
|
||||||
# fluent-plugin-imds
|
# fluent-plugin-imds
|
||||||
|
|
||||||
[Fluentd](https://fluentd.org/) filter plugin to do something.
|
[Fluentd](https://fluentd.org/) filter plugin to add Azure metadata to logs.
|
||||||
|
|
||||||
TODO: write description for you plugin.
|
Fluentd filter plugin to add Azure metadata to logs.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
@ -28,13 +28,12 @@ $ bundle
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
You can generate configuration template:
|
Sample Configuration:
|
||||||
|
|
||||||
```
|
<filter tag>
|
||||||
$ fluent-plugin-config-format filter imds
|
@type imds
|
||||||
```
|
</filter>
|
||||||
|
|
||||||
You can copy and paste generated documents here.
|
|
||||||
# Contributing
|
# Contributing
|
||||||
|
|
||||||
This project welcomes contributions and suggestions. Most contributions require you to agree to a
|
This project welcomes contributions and suggestions. Most contributions require you to agree to a
|
||||||
|
|
3
Rakefile
3
Rakefile
|
@ -1,3 +1,6 @@
|
||||||
|
# Copyright (c) Microsoft Corporation.
|
||||||
|
# Licensed under the MIT License.
|
||||||
|
|
||||||
require "bundler"
|
require "bundler"
|
||||||
Bundler::GemHelper.install_tasks
|
Bundler::GemHelper.install_tasks
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# Copyright (c) Microsoft Corporation.
|
||||||
|
# Licensed under the MIT License.
|
||||||
|
|
||||||
lib = File.expand_path("../lib", __FILE__)
|
lib = File.expand_path("../lib", __FILE__)
|
||||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
|
||||||
|
# Copyright (c) Microsoft Corporation.
|
||||||
|
# Licensed under the MIT License.
|
||||||
|
|
||||||
require "fluent/plugin/filter"
|
require "fluent/plugin/filter"
|
||||||
require 'net/http'
|
require 'net/http'
|
||||||
require 'uri'
|
require 'uri'
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# Copyright (c) Microsoft Corporation.
|
||||||
|
# Licensed under the MIT License.
|
||||||
|
|
||||||
$LOAD_PATH.unshift(File.expand_path("../../", __FILE__))
|
$LOAD_PATH.unshift(File.expand_path("../../", __FILE__))
|
||||||
require "test-unit"
|
require "test-unit"
|
||||||
require "fluent/test"
|
require "fluent/test"
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# Copyright (c) Microsoft Corporation.
|
||||||
|
# Licensed under the MIT License.
|
||||||
|
|
||||||
require "helper"
|
require "helper"
|
||||||
require "fluent/plugin/filter_imds.rb"
|
require "fluent/plugin/filter_imds.rb"
|
||||||
require 'webmock/test_unit'
|
require 'webmock/test_unit'
|
||||||
|
|
Загрузка…
Ссылка в новой задаче