telegraf_agent 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +29 -2
- data/telegraf_agent.gemspec +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a7bff8534e98a3d652382609dc58f54b685ec8ede1523d1191d6e44de2a3d11
|
4
|
+
data.tar.gz: 81120ab493e9cb670f41bcdcde91d88d8eee78f0cd271b3e108c7abc098421cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbc76b48c5e454ccb1ecdd19dc66d4d6ab5aa55e6e0eb8856a1280058b5b0fb3ef5ce0d7bbd3c8358271aa9a430add4806b9e1c38d13911876e163c5658347a1
|
7
|
+
data.tar.gz: cd6141ff063a22dd4af678b6ffe65f7c423552ed7ea657cdc0609415709d27f31bd03414451ed6d6f43edd20fa74b2f5010d1e7305f8a3245e81f79a6ffd4f01
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/umbrellio/telegraf_agent.svg?branch=master)](https://travis-ci.org/umbrellio/telegraf_agent)
|
4
4
|
[![Coverage Status](https://coveralls.io/repos/github/umbrellio/telegraf_agent/badge.svg?branch=master)](https://coveralls.io/github/umbrellio/telegraf_agent?branch=master)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/telegraf_agent.svg)](https://badge.fury.io/rb/telegraf_agent)
|
6
|
+
|
7
|
+
Class for sending data to the telegraf server.
|
5
8
|
|
6
9
|
## Installation
|
7
10
|
|
@@ -21,8 +24,32 @@ Or install it yourself as:
|
|
21
24
|
|
22
25
|
## Usage
|
23
26
|
|
27
|
+
Just initialize an agent like:
|
28
|
+
|
29
|
+
|
24
30
|
```ruby
|
25
31
|
logger = Logger.new(STDOUT)
|
26
|
-
|
27
|
-
agent
|
32
|
+
url = "tcp://localhost:1234"
|
33
|
+
agent = TelegrafAgent.new(url: url, logger: logger)
|
28
34
|
```
|
35
|
+
|
36
|
+
Logger param is optional.
|
37
|
+
|
38
|
+
And then use:
|
39
|
+
|
40
|
+
```ruby
|
41
|
+
tags = { env: Rails.env }
|
42
|
+
values = { action: "index", duration: 0.2 }
|
43
|
+
agent.write("SuperProject", tags: tags, values: values)
|
44
|
+
```
|
45
|
+
All params are required.
|
46
|
+
|
47
|
+
## License
|
48
|
+
Released under MIT License.
|
49
|
+
|
50
|
+
## Authors
|
51
|
+
Created by Aleksey Bespalov.
|
52
|
+
|
53
|
+
<a href="https://github.com/umbrellio/">
|
54
|
+
<img style="float: left;" src="https://umbrellio.github.io/Umbrellio/supported_by_umbrellio.svg" alt="Supported by Umbrellio" width="439" height="72">
|
55
|
+
</a>
|
data/telegraf_agent.gemspec
CHANGED
@@ -5,9 +5,10 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "telegraf_agent"
|
8
|
-
spec.version = "0.1.
|
8
|
+
spec.version = "0.1.1"
|
9
9
|
spec.authors = ["nulldef"]
|
10
10
|
spec.email = ["nulldefiner@gmail.com"]
|
11
|
+
spec.homepage = "https://github.com/umbrellio/telegraf_agent"
|
11
12
|
|
12
13
|
spec.summary = "Telegraf agent"
|
13
14
|
spec.description = "Telegraf agent"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telegraf_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nulldef
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: influxdb
|
@@ -113,7 +113,7 @@ files:
|
|
113
113
|
- bin/setup
|
114
114
|
- lib/telegraf_agent.rb
|
115
115
|
- telegraf_agent.gemspec
|
116
|
-
homepage:
|
116
|
+
homepage: https://github.com/umbrellio/telegraf_agent
|
117
117
|
licenses: []
|
118
118
|
metadata: {}
|
119
119
|
post_install_message:
|