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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 061ddb1dfcb41363cdac70f1c05550397f165a43a1740f32be1c62256616c51d
4
- data.tar.gz: 852a6602c75ee398631bdfd4299583e55bbf9a9c133eb0f18e01c6663a2c23f3
3
+ metadata.gz: 0a7bff8534e98a3d652382609dc58f54b685ec8ede1523d1191d6e44de2a3d11
4
+ data.tar.gz: 81120ab493e9cb670f41bcdcde91d88d8eee78f0cd271b3e108c7abc098421cc
5
5
  SHA512:
6
- metadata.gz: 78bd61f1a6d8cc4904fbdc69edafabb4be5de5267408ba55092e893c63ebf00911e677fed9d05849988b8ad280457b749cc24bd3a0990012d2277c196af29f4e
7
- data.tar.gz: fb45061d19ffb65027b18eeb47802c0350aba5b96ad8bcdc53a62d6edc81a7f0b9d6467bdb0c73fb124e8742ec07999a79c2664ca01697e3817cf8bbd127a22b
6
+ metadata.gz: dbc76b48c5e454ccb1ecdd19dc66d4d6ab5aa55e6e0eb8856a1280058b5b0fb3ef5ce0d7bbd3c8358271aa9a430add4806b9e1c38d13911876e163c5658347a1
7
+ data.tar.gz: cd6141ff063a22dd4af678b6ffe65f7c423552ed7ea657cdc0609415709d27f31bd03414451ed6d6f43edd20fa74b2f5010d1e7305f8a3245e81f79a6ffd4f01
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- telegraf_agent (0.1.0)
12
+ telegraf_agent (0.1.1)
13
13
  influxdb (~> 0.6)
14
14
 
15
15
  GEM
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
- agent = TelegrafAgent.new(url: "udp://localhost:3030", logger: logger)
27
- agent.write("SuperProject", keys: { env: Rails.env }, values: { action: "index", duration: 0.2 })
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>
@@ -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.0"
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.0
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-01-17 00:00:00.000000000 Z
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: