-
Notifications
You must be signed in to change notification settings - Fork 0
/
telegraf.conf
166 lines (127 loc) · 9.69 KB
/
telegraf.conf
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# QE Telegraf Configuration
#
# Telegraf is entirely plugin driven. All metrics are gathered from the
# declared inputs, and sent to the declared outputs.
#
# Plugins must be declared in here to be active.
# To deactivate a plugin, comment out the name and any variables.
#
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
# file would generate.
#
# Environment variables can be used anywhere in this config file, simply prepend
# them with $. For strings the variable must be within quotes (ie, "$STR_VAR"),
# for numbers and booleans they should be plain (ie, $INT_VAR, $BOOL_VAR)
##################################################################################################
#
# General Telegraf Set-Up
#
##################################################################################################
# Global tags can be specified here in key="value" format.
[global_tags]
# dc = "us-east-1" # will tag all metrics with dc=us-east-1
# rack = "1a"
## Environment variables can be used as tags, and throughout the config file
# user = "$USER"
# Configuration for telegraf agent
[agent]
## Default data collection interval for all inputs
interval = "10s"
## Rounds collection interval to 'interval'
round_interval = true
## Telegraf will send metrics to outputs in batches of at most metric_batch_size metrics.
## This controls the size of writes that Telegraf sends to output plugins.
metric_batch_size = 1000
## For failed writes, telegraf will cache metric_buffer_limit metrics for each
## output, and will flush this buffer on a successful write. Oldest metrics
## are dropped first when this buffer fills.
## This buffer only fills when writes fail to output plugin(s).
metric_buffer_limit = 10000
## Collection jitter is used to jitter the collection by a random amount.
## Each plugin will sleep for a random time within jitter before collecting.
## This can be used to avoid many plugins querying things like sysfs at the
## same time, which can have a measurable effect on the system.
collection_jitter = "0s"
## Default flushing interval for all outputs. Maximum flush_interval will be
## flush_interval + flush_jitter
flush_interval = "10s"
## Jitter the flush interval by a random amount. This is primarily to avoid
## large write spikes for users running a large number of telegraf instances.
## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s
flush_jitter = "0s"
## By default or when set to "0s", precision will be set to the same
## timestamp order as the collection interval, with the maximum being 1s.
## ie, when interval = "10s", precision will be "1s"
## when interval = "250ms", precision will be "1ms"
## Precision will NOT be used for service inputs. It is up to each individual
## service input to set the timestamp at the appropriate precision.
## Valid time units are "ns", "us" (or "µs"), "ms", "s".
precision = ""
## Logging configuration:
## Run telegraf with debug log messages.
debug = false
## Run telegraf in quiet mode (error log messages only).
quiet = false
## Specify the log file name. The empty string means to log to stderr.
logfile = ""
## Override default hostname, if empty use os.Hostname()
hostname = ""
## If set to true, do no set the "host" tag in the telegraf agent.
omit_hostname = false
##################################################################################################
#
# Plugin Set-Up:
# Setting up how to input logs and output data.
#
##################################################################################################
###############################################################################
# OUTPUT PLUGINS #
###############################################################################
# Configuration for sending metrics to InfluxDB
[[outputs.influxdb]]
urls = ["http://10.1.100.200:8086"] # required
#urls = ["http://172.18.0.1:8086/"]
## The target database for metrics; will be created as needed.
## For UDP url endpoint database needs to be configured on server side.
database = "qe"
###############################################################################
# INPUT PLUGINS #
###############################################################################
# Stream and parse log file(s).
#[[inputs.logparser]]
## Log files to parse.
## These accept standard unix glob matching rules, but with the addition of
# files = ["C://Xcalibur//system//Exactive//log//*.log"]
## Read files that currently exist from the beginning. Files that are created
## while telegraf is running (and that match the "files" globs) will always
## be read from the beginning.
# from_beginning = true
## Parse logstash-style "grok" patterns:
# [inputs.logparser.grok]
## This is a list of patterns to check the given log file(s) for.
## Note that adding patterns here increases processing time. The most
## efficient configuration is to have one pattern per logparser.
# patterns = ['\[Time=%{TIMESTAMP_ISO8601:time:ts-"2006-01-02 15:04:04.000-07:00"}\]\[Acc=%{DATA:Account}\]\[User=%{DATA:User}\]\[Comp=%{DATA:Comp}\]\[App=%{DATA:App}\]\[PID=%{DATA:PID}\]\[Inst=%{DATA:Inst}\](\[Conn=%{DATA:Conn}\])?\[Type=%{DATA:type}\]%{DATA:Message}(Preparing next acquisition with: <\?xml version="1.0" encoding="%{DATA:Encoding:tag}" standalone="%{DATA:Standalone}"\?> <InstrumentD ... %{DATA:TEST}(</RawFileName> <MethodFileName)?(ame)?>%{DATA:MethodFileName}</MethodFileName> <SequenceFileName>%{DATA:SequenceFileName}</SequenceFileName> <SequenceRow>%{NUMBER:SequenceRow}</SequenceRow> <StartMode>%{NUMBER:StartMode}</StartMode> <Vial>%{DATA:Vial}</Vial> <InjVolume>%{NUMBER:InjVolume}</InjVolume> <Flags>%{NUMBER:Flags}</Flags> </RunSettings> </InstrumentData>)?(using)?( )?({ExactiveService, Version=%{DATA}, Culture=%{DATA:CultureExactiveService}, PublicKeyToken=%{DATA:PublicKeyTokenExactiveService}, "%{DATA:URLExactiveService}"", Release"\\};)?( )?(\{ExactiveManager, Version=%{DATA}, Culture=%{DATA:CultureExactiveManager}, PublicKeyToken=%{DATA:PublicKeyTokenExactiveManager}, "%{DATA:ExactiveManagerURL}"", Release"\};)?( )?(\{ThermoFisher.Foundation.IO, Version=%{DATA}, Culture=%{DATA:CultureThermoFisher}, PublicKeyToken=%{DATA:PublicKeyTokenThermoFisher}, %{DATA:ThermoFisherURL}", "\};)?( )?(\{ThermoFisher.CommonCore.Data, Version=%{DATA}, Culture=%{DATA:CultureThermoFisherCommonCore}, PublicKeyToken=%{DATA:PublicKeyTokenThermoFisherCommonCore}, "%{DATA:ThermoFisherCommonCoreURL}"", "\};)?( )?(\{Exactive, Version=%{DATA}, Culture=%{DATA:CultureExactive}, PublicKeyToken=%{DATA:PublicKeyTokenExactive}, "%{DATA:ExactiveURL}"", Release"\};)?( )?(\{mscorlib, Version=%{DATA}, Culture=%{DATA:CultureMscorlib}, PublicKeyToken=%{DATA:PublicKeyTokenMscorlib}, "%{DATA:mscorlibURL}"", "\})?$']
## Name of the outputted measurement name.
# measurement = "QELogs"
# Stream and parse log file(s).
[[inputs.logparser]]
## Log files to parse.
## These accept standard unix glob matching rules, but with the addition of
files = ["C://Xcalibur//system//Exactive//log//*.log"]
## Read files that currently exist from the beginning. Files that are created
## while telegraf is running (and that match the "files" globs) will always
## be read from the beginning.
from_beginning = true
## Parse logstash-style "grok" patterns:
[inputs.logparser.grok]
## This is a list of patterns to check the given log file(s) for.
## Note that adding patterns here increases processing time. The most
## efficient configuration is to have one pattern per logparser.
patterns = ['%{NUMBER:Seconds:float}%{SPACE}%{TIMESTAMP_ISO8601:timestamp:ts-"2006-01-02 15:04:05"}%{SPACE}%{DATA:Uptime}%{SPACE}%{SCINUM:Vacuum1:float}%{SPACE}%{SCINUM:Vacuum2:float}%{SPACE}%{SCINUM:Vacuum3:float}%{SPACE}%{SCINUM:Vacuum4:float}%{SPACE}%{NUMBER:T1TempBearingR:float}%{SPACE}%{NUMBER:T1TempMotorR:float}%{SPACE}%{NUMBER:T1TempBottomPartR:float}%{SPACE}%{NUMBER:T1TempPowerstageR:float}%{SPACE}%{NUMBER:T1TempElecR:float}%{SPACE}%{NUMBER:T1VoltR:float}%{SPACE}%{NUMBER:T1CurrR:float}%{SPACE}%{NUMBER:T2TempBearingR:float}%{SPACE}%{NUMBER:T2TempMotorR:float}%{SPACE}%{NUMBER:T2TempBottomPartR:float}%{SPACE}%{NUMBER:T2TempPowerstageR:float}%{SPACE}%{NUMBER:T2TempElecR:float}%{SPACE}%{NUMBER:T2VoltR:float}%{SPACE}%{NUMBER:T2CurrR:float}%{SPACE}%{NUMBER:T3TempBearingR:float}%{SPACE}%{NUMBER:T3TempMotorR:float}%{SPACE}%{NUMBER:T3TempBottomPartR:float}%{SPACE}%{NUMBER:T3TempPowerstageR:float}%{SPACE}%{NUMBER:T3TempElecR:float}%{SPACE}%{NUMBER:T3VoltR:float}%{SPACE}%{NUMBER:T3CurrR:float}%{SPACE}%{NUMBER:AmbientTemp:float}%{SPACE}%{NUMBER:AmbientHumid:float}%{SPACE}%{NUMBER:CapillaryTemp:float}%{SPACE}%{NUMBER:HeatsinkTemp:float}%{SPACE}%{NUMBER:RF01Freq:float}%{SPACE}%{NUMBER:RF23Freq:float}%{SPACE}%{NUMBER:CtrapRFAmp:float}%{SPACE}%{NUMBER:CtrapAmpcurrent:float}%{SPACE}%{NUMBER:CtrapFreq:float}%{SPACE}%{NUMBER:CEPosElecTemp:float}%{SPACE}%{NUMBER:CENegElecTremp:float}%{SPACE}%{NUMBER:AnalyzerTemp:float}%{SPACE}%{NUMBER:AnalyzerTempFiltered:float}%{SPACE}%{NUMBER:AnalyzerTempDelay:float}%{SPACE}%{NUMBER:CEPSTempSensor:float}%{SPACE}%{NUMBER:QuadDetectorTemp:float}']
custom_patterns = '''
SCINUM (?:[0-9eE.+-]*)
'''
timezone = "Local"
## Name of the outputted measurement name.
measurement = "QETemps"