-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
59 lines (48 loc) · 1.26 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Configuration file that defines the fetched data
# Configure the destinations (outputs)
destinations:
# Print to console
console:
type: console
# InfluxDB Storage
influxdb1:
type: influxdb
url: influxdb
port: 8086
token: someToken
defaultBucket: someBucketToUse
# MongoDB storage
mongo1:
type: mongodb
url: mongoUrl
port: 6079
user: admin
pass: userPass
logLevel: debug
# Scraping jobs
jobs:
myJob: # Job Name
schedule:
# interval: 24h
cron: "* * * * *"
# What to scrape
input:
# Use a json or yaml file as template
url: <url to scrape>
template: "templateFile.json"
# With embedded template
# url: "http://the.url.to.scrape.com/somePath"
# template:
# myValue: h1
# mySecondValue: "#123"
outputs:
- to: influxdb1 # Defined in destinations
tags: # Tags to apply
job: myJob # Tag values MUST be string
fields: # Fields to apply
myField: 123 # Field values can be floats or strings
myStringField: hello world
transform: # Transformations that can be applied on the data
# Convert the type to float
- target: myValue
type: float