telegraf.conf 182 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265
  1. # Telegraf Configuration
  2. #
  3. # Telegraf is entirely plugin driven. All metrics are gathered from the
  4. # declared inputs, and sent to the declared outputs.
  5. #
  6. # Plugins must be declared in here to be active.
  7. # To deactivate a plugin, comment out the name and any variables.
  8. #
  9. # Use 'telegraf -config telegraf.conf -test' to see what metrics a config
  10. # file would generate.
  11. #
  12. # Environment variables can be used anywhere in this config file, simply prepend
  13. # them with $. For strings the variable must be within quotes (ie, "$STR_VAR"),
  14. # for numbers and booleans they should be plain (ie, $INT_VAR, $BOOL_VAR)
  15. # Global tags can be specified here in key="value" format.
  16. [global_tags]
  17. # dc = "us-east-1" # will tag all metrics with dc=us-east-1
  18. # rack = "1a"
  19. ## Environment variables can be used as tags, and throughout the config file
  20. # user = "$USER"
  21. # Configuration for telegraf agent
  22. [agent]
  23. ## Default data collection interval for all inputs
  24. interval = "10s"
  25. ## Rounds collection interval to 'interval'
  26. ## ie, if interval="10s" then always collect on :00, :10, :20, etc.
  27. round_interval = true
  28. ## Telegraf will send metrics to outputs in batches of at most
  29. ## metric_batch_size metrics.
  30. ## This controls the size of writes that Telegraf sends to output plugins.
  31. metric_batch_size = 1000
  32. ## For failed writes, telegraf will cache metric_buffer_limit metrics for each
  33. ## output, and will flush this buffer on a successful write. Oldest metrics
  34. ## are dropped first when this buffer fills.
  35. ## This buffer only fills when writes fail to output plugin(s).
  36. metric_buffer_limit = 10000
  37. ## Collection jitter is used to jitter the collection by a random amount.
  38. ## Each plugin will sleep for a random time within jitter before collecting.
  39. ## This can be used to avoid many plugins querying things like sysfs at the
  40. ## same time, which can have a measurable effect on the system.
  41. collection_jitter = "0s"
  42. ## Default flushing interval for all outputs. Maximum flush_interval will be
  43. ## flush_interval + flush_jitter
  44. flush_interval = "10s"
  45. ## Jitter the flush interval by a random amount. This is primarily to avoid
  46. ## large write spikes for users running a large number of telegraf instances.
  47. ## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s
  48. flush_jitter = "0s"
  49. ## By default or when set to "0s", precision will be set to the same
  50. ## timestamp order as the collection interval, with the maximum being 1s.
  51. ## ie, when interval = "10s", precision will be "1s"
  52. ## when interval = "250ms", precision will be "1ms"
  53. ## Precision will NOT be used for service inputs. It is up to each individual
  54. ## service input to set the timestamp at the appropriate precision.
  55. ## Valid time units are "ns", "us" (or "µs"), "ms", "s".
  56. precision = ""
  57. ## Logging configuration:
  58. ## Run telegraf with debug log messages.
  59. debug = false
  60. ## Run telegraf in quiet mode (error log messages only).
  61. quiet = false
  62. ## Specify the log file name. The empty string means to log to stderr.
  63. logfile = ""
  64. ## Override default hostname, if empty use os.Hostname()
  65. hostname = ""
  66. ## If set to true, do no set the "host" tag in the telegraf agent.
  67. omit_hostname = false
  68. ###############################################################################
  69. # OUTPUT PLUGINS #
  70. ###############################################################################
  71. # Configuration for sending metrics to InfluxDB
  72. [[outputs.influxdb]]
  73. ## The full HTTP or UDP URL for your InfluxDB instance.
  74. ##
  75. ## Multiple URLs can be specified for a single cluster, only ONE of the
  76. ## urls will be written to each interval.
  77. # urls = ["unix:///var/run/influxdb.sock"]
  78. # urls = ["udp://127.0.0.1:8089"]
  79. urls = ["http://influxdb:8086"]
  80. ## The target database for metrics; will be created as needed.
  81. ## For UDP url endpoint database needs to be configured on server side.
  82. # database = "telegraf"
  83. ## The value of this tag will be used to determine the database. If this
  84. ## tag is not set the 'database' option is used as the default.
  85. # database_tag = ""
  86. ## If true, no CREATE DATABASE queries will be sent. Set to true when using
  87. ## Telegraf with a user without permissions to create databases or when the
  88. ## database already exists.
  89. # skip_database_creation = false
  90. ## Name of existing retention policy to write to. Empty string writes to
  91. ## the default retention policy. Only takes effect when using HTTP.
  92. # retention_policy = ""
  93. ## Write consistency (clusters only), can be: "any", "one", "quorum", "all".
  94. ## Only takes effect when using HTTP.
  95. # write_consistency = "any"
  96. ## Timeout for HTTP messages.
  97. # timeout = "5s"
  98. ## HTTP Basic Auth
  99. username = "grafana"
  100. password = "grafana"
  101. ## HTTP User-Agent
  102. # user_agent = "telegraf"
  103. ## UDP payload size is the maximum packet size to send.
  104. # udp_payload = "512B"
  105. ## Optional TLS Config for use on HTTP connections.
  106. # tls_ca = "/etc/telegraf/ca.pem"
  107. # tls_cert = "/etc/telegraf/cert.pem"
  108. # tls_key = "/etc/telegraf/key.pem"
  109. ## Use TLS but skip chain & host verification
  110. # insecure_skip_verify = false
  111. ## HTTP Proxy override, if unset values the standard proxy environment
  112. ## variables are consulted to determine which proxy, if any, should be used.
  113. # http_proxy = "http://corporate.proxy:3128"
  114. ## Additional HTTP headers
  115. # http_headers = {"X-Special-Header" = "Special-Value"}
  116. ## HTTP Content-Encoding for write request body, can be set to "gzip" to
  117. ## compress body or "identity" to apply no encoding.
  118. # content_encoding = "identity"
  119. ## When true, Telegraf will output unsigned integers as unsigned values,
  120. ## i.e.: "42u". You will need a version of InfluxDB supporting unsigned
  121. ## integer values. Enabling this option will result in field type errors if
  122. ## existing data has been written.
  123. # influx_uint_support = false
  124. # # Configuration for Amon Server to send metrics to.
  125. # [[outputs.amon]]
  126. # ## Amon Server Key
  127. # server_key = "my-server-key" # required.
  128. #
  129. # ## Amon Instance URL
  130. # amon_instance = "https://youramoninstance" # required
  131. #
  132. # ## Connection timeout.
  133. # # timeout = "5s"
  134. # # Publishes metrics to an AMQP broker
  135. # [[outputs.amqp]]
  136. # ## Broker to publish to.
  137. # ## deprecated in 1.7; use the brokers option
  138. # # url = "amqp://localhost:5672/influxdb"
  139. #
  140. # ## Brokers to publish to. If multiple brokers are specified a random broker
  141. # ## will be selected anytime a connection is established. This can be
  142. # ## helpful for load balancing when not using a dedicated load balancer.
  143. # brokers = ["amqp://localhost:5672/influxdb"]
  144. #
  145. # ## Maximum messages to send over a connection. Once this is reached, the
  146. # ## connection is closed and a new connection is made. This can be helpful for
  147. # ## load balancing when not using a dedicated load balancer.
  148. # # max_messages = 0
  149. #
  150. # ## Exchange to declare and publish to.
  151. # exchange = "telegraf"
  152. #
  153. # ## Exchange type; common types are "direct", "fanout", "topic", "header", "x-consistent-hash".
  154. # # exchange_type = "topic"
  155. #
  156. # ## If true, exchange will be passively declared.
  157. # # exchange_declare_passive = false
  158. #
  159. # ## Exchange durability can be either "transient" or "durable".
  160. # # exchange_durability = "durable"
  161. #
  162. # ## Additional exchange arguments.
  163. # # exchange_arguments = { }
  164. # # exchange_arguments = {"hash_propery" = "timestamp"}
  165. #
  166. # ## Authentication credentials for the PLAIN auth_method.
  167. # # username = ""
  168. # # password = ""
  169. #
  170. # ## Auth method. PLAIN and EXTERNAL are supported
  171. # ## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as
  172. # ## described here: https://www.rabbitmq.com/plugins.html
  173. # # auth_method = "PLAIN"
  174. #
  175. # ## Metric tag to use as a routing key.
  176. # ## ie, if this tag exists, its value will be used as the routing key
  177. # # routing_tag = "host"
  178. #
  179. # ## Static routing key. Used when no routing_tag is set or as a fallback
  180. # ## when the tag specified in routing tag is not found.
  181. # # routing_key = ""
  182. # # routing_key = "telegraf"
  183. #
  184. # ## Delivery Mode controls if a published message is persistent.
  185. # ## One of "transient" or "persistent".
  186. # # delivery_mode = "transient"
  187. #
  188. # ## InfluxDB database added as a message header.
  189. # ## deprecated in 1.7; use the headers option
  190. # # database = "telegraf"
  191. #
  192. # ## InfluxDB retention policy added as a message header
  193. # ## deprecated in 1.7; use the headers option
  194. # # retention_policy = "default"
  195. #
  196. # ## Static headers added to each published message.
  197. # # headers = { }
  198. # # headers = {"database" = "telegraf", "retention_policy" = "default"}
  199. #
  200. # ## Connection timeout. If not provided, will default to 5s. 0s means no
  201. # ## timeout (not recommended).
  202. # # timeout = "5s"
  203. #
  204. # ## Optional TLS Config
  205. # # tls_ca = "/etc/telegraf/ca.pem"
  206. # # tls_cert = "/etc/telegraf/cert.pem"
  207. # # tls_key = "/etc/telegraf/key.pem"
  208. # ## Use TLS but skip chain & host verification
  209. # # insecure_skip_verify = false
  210. #
  211. # ## If true use batch serialization format instead of line based delimiting.
  212. # ## Only applies to data formats which are not line based such as JSON.
  213. # ## Recommended to set to true.
  214. # # use_batch_format = false
  215. #
  216. # ## Data format to output.
  217. # ## Each data format has its own unique set of configuration options, read
  218. # ## more about them here:
  219. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  220. # # data_format = "influx"
  221. # # Send metrics to Azure Application Insights
  222. # [[outputs.application_insights]]
  223. # ## Instrumentation key of the Application Insights resource.
  224. # instrumentation_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
  225. #
  226. # ## Timeout for closing (default: 5s).
  227. # # timeout = "5s"
  228. #
  229. # ## Enable additional diagnostic logging.
  230. # # enable_diagnostic_logging = false
  231. #
  232. # ## Context Tag Sources add Application Insights context tags to a tag value.
  233. # ##
  234. # ## For list of allowed context tag keys see:
  235. # ## https://github.com/Microsoft/ApplicationInsights-Go/blob/master/appinsights/contracts/contexttagkeys.go
  236. # # [outputs.application_insights.context_tag_sources]
  237. # # "ai.cloud.role" = "kubernetes_container_name"
  238. # # "ai.cloud.roleInstance" = "kubernetes_pod_name"
  239. # # Send aggregate metrics to Azure Monitor
  240. # [[outputs.azure_monitor]]
  241. # ## Timeout for HTTP writes.
  242. # # timeout = "20s"
  243. #
  244. # ## Set the namespace prefix, defaults to "Telegraf/<input-name>".
  245. # # namespace_prefix = "Telegraf/"
  246. #
  247. # ## Azure Monitor doesn't have a string value type, so convert string
  248. # ## fields to dimensions (a.k.a. tags) if enabled. Azure Monitor allows
  249. # ## a maximum of 10 dimensions so Telegraf will only send the first 10
  250. # ## alphanumeric dimensions.
  251. # # strings_as_dimensions = false
  252. #
  253. # ## Both region and resource_id must be set or be available via the
  254. # ## Instance Metadata service on Azure Virtual Machines.
  255. # #
  256. # ## Azure Region to publish metrics against.
  257. # ## ex: region = "southcentralus"
  258. # # region = ""
  259. # #
  260. # ## The Azure Resource ID against which metric will be logged, e.g.
  261. # ## ex: resource_id = "/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.Compute/virtualMachines/<vm_name>"
  262. # # resource_id = ""
  263. #
  264. # ## Optionally, if in Azure US Government, China or other sovereign
  265. # ## cloud environment, set appropriate REST endpoint for receiving
  266. # ## metrics. (Note: region may be unused in this context)
  267. # # endpoint_url = "https://monitoring.core.usgovcloudapi.net"
  268. # # Publish Telegraf metrics to a Google Cloud PubSub topic
  269. # [[outputs.cloud_pubsub]]
  270. # ## Required. Name of Google Cloud Platform (GCP) Project that owns
  271. # ## the given PubSub topic.
  272. # project = "my-project"
  273. #
  274. # ## Required. Name of PubSub topic to publish metrics to.
  275. # topic = "my-topic"
  276. #
  277. # ## Required. Data format to consume.
  278. # ## Each data format has its own unique set of configuration options.
  279. # ## Read more about them here:
  280. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  281. # data_format = "influx"
  282. #
  283. # ## Optional. Filepath for GCP credentials JSON file to authorize calls to
  284. # ## PubSub APIs. If not set explicitly, Telegraf will attempt to use
  285. # ## Application Default Credentials, which is preferred.
  286. # # credentials_file = "path/to/my/creds.json"
  287. #
  288. # ## Optional. If true, will send all metrics per write in one PubSub message.
  289. # # send_batched = true
  290. #
  291. # ## The following publish_* parameters specifically configures batching
  292. # ## requests made to the GCP Cloud PubSub API via the PubSub Golang library. Read
  293. # ## more here: https://godoc.org/cloud.google.com/go/pubsub#PublishSettings
  294. #
  295. # ## Optional. Send a request to PubSub (i.e. actually publish a batch)
  296. # ## when it has this many PubSub messages. If send_batched is true,
  297. # ## this is ignored and treated as if it were 1.
  298. # # publish_count_threshold = 1000
  299. #
  300. # ## Optional. Send a request to PubSub (i.e. actually publish a batch)
  301. # ## when it has this many PubSub messages. If send_batched is true,
  302. # ## this is ignored and treated as if it were 1
  303. # # publish_byte_threshold = 1000000
  304. #
  305. # ## Optional. Specifically configures requests made to the PubSub API.
  306. # # publish_num_go_routines = 2
  307. #
  308. # ## Optional. Specifies a timeout for requests to the PubSub API.
  309. # # publish_timeout = "30s"
  310. #
  311. # ## Optional. If true, published PubSub message data will be base64-encoded.
  312. # # base64_data = false
  313. #
  314. # ## Optional. PubSub attributes to add to metrics.
  315. # # [[inputs.pubsub.attributes]]
  316. # # my_attr = "tag_value"
  317. # # Configuration for AWS CloudWatch output.
  318. # [[outputs.cloudwatch]]
  319. # ## Amazon REGION
  320. # region = "us-east-1"
  321. #
  322. # ## Amazon Credentials
  323. # ## Credentials are loaded in the following order
  324. # ## 1) Assumed credentials via STS if role_arn is specified
  325. # ## 2) explicit credentials from 'access_key' and 'secret_key'
  326. # ## 3) shared profile from 'profile'
  327. # ## 4) environment variables
  328. # ## 5) shared credentials file
  329. # ## 6) EC2 Instance Profile
  330. # #access_key = ""
  331. # #secret_key = ""
  332. # #token = ""
  333. # #role_arn = ""
  334. # #profile = ""
  335. # #shared_credential_file = ""
  336. #
  337. # ## Endpoint to make request against, the correct endpoint is automatically
  338. # ## determined and this option should only be set if you wish to override the
  339. # ## default.
  340. # ## ex: endpoint_url = "http://localhost:8000"
  341. # # endpoint_url = ""
  342. #
  343. # ## Namespace for the CloudWatch MetricDatums
  344. # namespace = "InfluxData/Telegraf"
  345. #
  346. # ## If you have a large amount of metrics, you should consider to send statistic
  347. # ## values instead of raw metrics which could not only improve performance but
  348. # ## also save AWS API cost. If enable this flag, this plugin would parse the required
  349. # ## CloudWatch statistic fields (count, min, max, and sum) and send them to CloudWatch.
  350. # ## You could use basicstats aggregator to calculate those fields. If not all statistic
  351. # ## fields are available, all fields would still be sent as raw metrics.
  352. # # write_statistics = false
  353. # # Configuration for CrateDB to send metrics to.
  354. # [[outputs.cratedb]]
  355. # # A github.com/jackc/pgx connection string.
  356. # # See https://godoc.org/github.com/jackc/pgx#ParseDSN
  357. # url = "postgres://user:password@localhost/schema?sslmode=disable"
  358. # # Timeout for all CrateDB queries.
  359. # timeout = "5s"
  360. # # Name of the table to store metrics in.
  361. # table = "metrics"
  362. # # If true, and the metrics table does not exist, create it automatically.
  363. # table_create = true
  364. # # Configuration for DataDog API to send metrics to.
  365. # [[outputs.datadog]]
  366. # ## Datadog API key
  367. # apikey = "my-secret-key" # required.
  368. #
  369. # # The base endpoint URL can optionally be specified but it defaults to:
  370. # #url = "https://app.datadoghq.com/api/v1/series"
  371. #
  372. # ## Connection timeout.
  373. # # timeout = "5s"
  374. # # Send metrics to nowhere at all
  375. # [[outputs.discard]]
  376. # # no configuration
  377. # # Configuration for Elasticsearch to send metrics to.
  378. # [[outputs.elasticsearch]]
  379. # ## The full HTTP endpoint URL for your Elasticsearch instance
  380. # ## Multiple urls can be specified as part of the same cluster,
  381. # ## this means that only ONE of the urls will be written to each interval.
  382. # urls = [ "http://node1.es.example.com:9200" ] # required.
  383. # ## Elasticsearch client timeout, defaults to "5s" if not set.
  384. # timeout = "5s"
  385. # ## Set to true to ask Elasticsearch a list of all cluster nodes,
  386. # ## thus it is not necessary to list all nodes in the urls config option.
  387. # enable_sniffer = false
  388. # ## Set the interval to check if the Elasticsearch nodes are available
  389. # ## Setting to "0s" will disable the health check (not recommended in production)
  390. # health_check_interval = "10s"
  391. # ## HTTP basic authentication details (eg. when using Shield)
  392. # # username = "telegraf"
  393. # # password = "mypassword"
  394. #
  395. # ## Index Config
  396. # ## The target index for metrics (Elasticsearch will create if it not exists).
  397. # ## You can use the date specifiers below to create indexes per time frame.
  398. # ## The metric timestamp will be used to decide the destination index name
  399. # # %Y - year (2016)
  400. # # %y - last two digits of year (00..99)
  401. # # %m - month (01..12)
  402. # # %d - day of month (e.g., 01)
  403. # # %H - hour (00..23)
  404. # # %V - week of the year (ISO week) (01..53)
  405. # ## Additionally, you can specify a tag name using the notation {{tag_name}}
  406. # ## which will be used as part of the index name. If the tag does not exist,
  407. # ## the default tag value will be used.
  408. # # index_name = "telegraf-{{host}}-%Y.%m.%d"
  409. # # default_tag_value = "none"
  410. # index_name = "telegraf-%Y.%m.%d" # required.
  411. #
  412. # ## Optional TLS Config
  413. # # tls_ca = "/etc/telegraf/ca.pem"
  414. # # tls_cert = "/etc/telegraf/cert.pem"
  415. # # tls_key = "/etc/telegraf/key.pem"
  416. # ## Use TLS but skip chain & host verification
  417. # # insecure_skip_verify = false
  418. #
  419. # ## Template Config
  420. # ## Set to true if you want telegraf to manage its index template.
  421. # ## If enabled it will create a recommended index template for telegraf indexes
  422. # manage_template = true
  423. # ## The template name used for telegraf indexes
  424. # template_name = "telegraf"
  425. # ## Set to true if you want telegraf to overwrite an existing template
  426. # overwrite_template = false
  427. # # Send telegraf metrics to file(s)
  428. # [[outputs.file]]
  429. # ## Files to write to, "stdout" is a specially handled file.
  430. # files = ["stdout", "/tmp/metrics.out"]
  431. #
  432. # ## Data format to output.
  433. # ## Each data format has its own unique set of configuration options, read
  434. # ## more about them here:
  435. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  436. # data_format = "influx"
  437. # # Configuration for Graphite server to send metrics to
  438. # [[outputs.graphite]]
  439. # ## TCP endpoint for your graphite instance.
  440. # ## If multiple endpoints are configured, output will be load balanced.
  441. # ## Only one of the endpoints will be written to with each iteration.
  442. # servers = ["localhost:2003"]
  443. # ## Prefix metrics name
  444. # prefix = ""
  445. # ## Graphite output template
  446. # ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  447. # template = "host.tags.measurement.field"
  448. #
  449. # ## Enable Graphite tags support
  450. # # graphite_tag_support = false
  451. #
  452. # ## timeout in seconds for the write connection to graphite
  453. # timeout = 2
  454. #
  455. # ## Optional TLS Config
  456. # # tls_ca = "/etc/telegraf/ca.pem"
  457. # # tls_cert = "/etc/telegraf/cert.pem"
  458. # # tls_key = "/etc/telegraf/key.pem"
  459. # ## Use TLS but skip chain & host verification
  460. # # insecure_skip_verify = false
  461. # # Send telegraf metrics to graylog(s)
  462. # [[outputs.graylog]]
  463. # ## UDP endpoint for your graylog instance.
  464. # servers = ["127.0.0.1:12201", "192.168.1.1:12201"]
  465. # # A plugin that can transmit metrics over HTTP
  466. # [[outputs.http]]
  467. # ## URL is the address to send metrics to
  468. # url = "http://127.0.0.1:8080/metric"
  469. #
  470. # ## Timeout for HTTP message
  471. # # timeout = "5s"
  472. #
  473. # ## HTTP method, one of: "POST" or "PUT"
  474. # # method = "POST"
  475. #
  476. # ## HTTP Basic Auth credentials
  477. # # username = "username"
  478. # # password = "pa$$word"
  479. #
  480. # ## OAuth2 Client Credentials Grant
  481. # # client_id = "clientid"
  482. # # client_secret = "secret"
  483. # # token_url = "https://indentityprovider/oauth2/v1/token"
  484. # # scopes = ["urn:opc:idm:__myscopes__"]
  485. #
  486. # ## Optional TLS Config
  487. # # tls_ca = "/etc/telegraf/ca.pem"
  488. # # tls_cert = "/etc/telegraf/cert.pem"
  489. # # tls_key = "/etc/telegraf/key.pem"
  490. # ## Use TLS but skip chain & host verification
  491. # # insecure_skip_verify = false
  492. #
  493. # ## Data format to output.
  494. # ## Each data format has it's own unique set of configuration options, read
  495. # ## more about them here:
  496. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  497. # # data_format = "influx"
  498. #
  499. # ## Additional HTTP headers
  500. # # [outputs.http.headers]
  501. # # # Should be set manually to "application/json" for json data_format
  502. # # Content-Type = "text/plain; charset=utf-8"
  503. #
  504. # ## HTTP Content-Encoding for write request body, can be set to "gzip" to
  505. # ## compress body or "identity" to apply no encoding.
  506. # # content_encoding = "identity"
  507. # # Configuration for sending metrics to InfluxDB
  508. # [[outputs.influxdb_v2]]
  509. # ## The URLs of the InfluxDB cluster nodes.
  510. # ##
  511. # ## Multiple URLs can be specified for a single cluster, only ONE of the
  512. # ## urls will be written to each interval.
  513. # urls = ["http://127.0.0.1:9999"]
  514. #
  515. # ## Token for authentication.
  516. # token = ""
  517. #
  518. # ## Organization is the name of the organization you wish to write to; must exist.
  519. # organization = ""
  520. #
  521. # ## Destination bucket to write into.
  522. # bucket = ""
  523. #
  524. # ## The value of this tag will be used to determine the bucket. If this
  525. # ## tag is not set the 'bucket' option is used as the default.
  526. # # bucket_tag = ""
  527. #
  528. # ## Timeout for HTTP messages.
  529. # # timeout = "5s"
  530. #
  531. # ## Additional HTTP headers
  532. # # http_headers = {"X-Special-Header" = "Special-Value"}
  533. #
  534. # ## HTTP Proxy override, if unset values the standard proxy environment
  535. # ## variables are consulted to determine which proxy, if any, should be used.
  536. # # http_proxy = "http://corporate.proxy:3128"
  537. #
  538. # ## HTTP User-Agent
  539. # # user_agent = "telegraf"
  540. #
  541. # ## Content-Encoding for write request body, can be set to "gzip" to
  542. # ## compress body or "identity" to apply no encoding.
  543. # # content_encoding = "gzip"
  544. #
  545. # ## Enable or disable uint support for writing uints influxdb 2.0.
  546. # # influx_uint_support = false
  547. #
  548. # ## Optional TLS Config for use on HTTP connections.
  549. # # tls_ca = "/etc/telegraf/ca.pem"
  550. # # tls_cert = "/etc/telegraf/cert.pem"
  551. # # tls_key = "/etc/telegraf/key.pem"
  552. # ## Use TLS but skip chain & host verification
  553. # # insecure_skip_verify = false
  554. # # Configuration for sending metrics to an Instrumental project
  555. # [[outputs.instrumental]]
  556. # ## Project API Token (required)
  557. # api_token = "API Token" # required
  558. # ## Prefix the metrics with a given name
  559. # prefix = ""
  560. # ## Stats output template (Graphite formatting)
  561. # ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite
  562. # template = "host.tags.measurement.field"
  563. # ## Timeout in seconds to connect
  564. # timeout = "2s"
  565. # ## Display Communcation to Instrumental
  566. # debug = false
  567. # # Configuration for the Kafka server to send metrics to
  568. # [[outputs.kafka]]
  569. # ## URLs of kafka brokers
  570. # brokers = ["localhost:9092"]
  571. # ## Kafka topic for producer messages
  572. # topic = "telegraf"
  573. #
  574. # ## Optional Client id
  575. # # client_id = "Telegraf"
  576. #
  577. # ## Set the minimal supported Kafka version. Setting this enables the use of new
  578. # ## Kafka features and APIs. Of particular interest, lz4 compression
  579. # ## requires at least version 0.10.0.0.
  580. # ## ex: version = "1.1.0"
  581. # # version = ""
  582. #
  583. # ## Optional topic suffix configuration.
  584. # ## If the section is omitted, no suffix is used.
  585. # ## Following topic suffix methods are supported:
  586. # ## measurement - suffix equals to separator + measurement's name
  587. # ## tags - suffix equals to separator + specified tags' values
  588. # ## interleaved with separator
  589. #
  590. # ## Suffix equals to "_" + measurement name
  591. # # [outputs.kafka.topic_suffix]
  592. # # method = "measurement"
  593. # # separator = "_"
  594. #
  595. # ## Suffix equals to "__" + measurement's "foo" tag value.
  596. # ## If there's no such a tag, suffix equals to an empty string
  597. # # [outputs.kafka.topic_suffix]
  598. # # method = "tags"
  599. # # keys = ["foo"]
  600. # # separator = "__"
  601. #
  602. # ## Suffix equals to "_" + measurement's "foo" and "bar"
  603. # ## tag values, separated by "_". If there is no such tags,
  604. # ## their values treated as empty strings.
  605. # # [outputs.kafka.topic_suffix]
  606. # # method = "tags"
  607. # # keys = ["foo", "bar"]
  608. # # separator = "_"
  609. #
  610. # ## Telegraf tag to use as a routing key
  611. # ## ie, if this tag exists, its value will be used as the routing key
  612. # routing_tag = "host"
  613. #
  614. # ## Static routing key. Used when no routing_tag is set or as a fallback
  615. # ## when the tag specified in routing tag is not found. If set to "random",
  616. # ## a random value will be generated for each message.
  617. # ## ex: routing_key = "random"
  618. # ## routing_key = "telegraf"
  619. # # routing_key = ""
  620. #
  621. # ## CompressionCodec represents the various compression codecs recognized by
  622. # ## Kafka in messages.
  623. # ## 0 : No compression
  624. # ## 1 : Gzip compression
  625. # ## 2 : Snappy compression
  626. # ## 3 : LZ4 compression
  627. # # compression_codec = 0
  628. #
  629. # ## RequiredAcks is used in Produce Requests to tell the broker how many
  630. # ## replica acknowledgements it must see before responding
  631. # ## 0 : the producer never waits for an acknowledgement from the broker.
  632. # ## This option provides the lowest latency but the weakest durability
  633. # ## guarantees (some data will be lost when a server fails).
  634. # ## 1 : the producer gets an acknowledgement after the leader replica has
  635. # ## received the data. This option provides better durability as the
  636. # ## client waits until the server acknowledges the request as successful
  637. # ## (only messages that were written to the now-dead leader but not yet
  638. # ## replicated will be lost).
  639. # ## -1: the producer gets an acknowledgement after all in-sync replicas have
  640. # ## received the data. This option provides the best durability, we
  641. # ## guarantee that no messages will be lost as long as at least one in
  642. # ## sync replica remains.
  643. # # required_acks = -1
  644. #
  645. # ## The maximum number of times to retry sending a metric before failing
  646. # ## until the next flush.
  647. # # max_retry = 3
  648. #
  649. # ## The maximum permitted size of a message. Should be set equal to or
  650. # ## smaller than the broker's 'message.max.bytes'.
  651. # # max_message_bytes = 1000000
  652. #
  653. # ## Optional TLS Config
  654. # # tls_ca = "/etc/telegraf/ca.pem"
  655. # # tls_cert = "/etc/telegraf/cert.pem"
  656. # # tls_key = "/etc/telegraf/key.pem"
  657. # ## Use TLS but skip chain & host verification
  658. # # insecure_skip_verify = false
  659. #
  660. # ## Optional SASL Config
  661. # # sasl_username = "kafka"
  662. # # sasl_password = "secret"
  663. #
  664. # ## Data format to output.
  665. # ## Each data format has its own unique set of configuration options, read
  666. # ## more about them here:
  667. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  668. # # data_format = "influx"
  669. # # Configuration for the AWS Kinesis output.
  670. # [[outputs.kinesis]]
  671. # ## Amazon REGION of kinesis endpoint.
  672. # region = "ap-southeast-2"
  673. #
  674. # ## Amazon Credentials
  675. # ## Credentials are loaded in the following order
  676. # ## 1) Assumed credentials via STS if role_arn is specified
  677. # ## 2) explicit credentials from 'access_key' and 'secret_key'
  678. # ## 3) shared profile from 'profile'
  679. # ## 4) environment variables
  680. # ## 5) shared credentials file
  681. # ## 6) EC2 Instance Profile
  682. # #access_key = ""
  683. # #secret_key = ""
  684. # #token = ""
  685. # #role_arn = ""
  686. # #profile = ""
  687. # #shared_credential_file = ""
  688. #
  689. # ## Endpoint to make request against, the correct endpoint is automatically
  690. # ## determined and this option should only be set if you wish to override the
  691. # ## default.
  692. # ## ex: endpoint_url = "http://localhost:8000"
  693. # # endpoint_url = ""
  694. #
  695. # ## Kinesis StreamName must exist prior to starting telegraf.
  696. # streamname = "StreamName"
  697. # ## DEPRECATED: PartitionKey as used for sharding data.
  698. # partitionkey = "PartitionKey"
  699. # ## DEPRECATED: If set the paritionKey will be a random UUID on every put.
  700. # ## This allows for scaling across multiple shards in a stream.
  701. # ## This will cause issues with ordering.
  702. # use_random_partitionkey = false
  703. # ## The partition key can be calculated using one of several methods:
  704. # ##
  705. # ## Use a static value for all writes:
  706. # # [outputs.kinesis.partition]
  707. # # method = "static"
  708. # # key = "howdy"
  709. # #
  710. # ## Use a random partition key on each write:
  711. # # [outputs.kinesis.partition]
  712. # # method = "random"
  713. # #
  714. # ## Use the measurement name as the partition key:
  715. # # [outputs.kinesis.partition]
  716. # # method = "measurement"
  717. # #
  718. # ## Use the value of a tag for all writes, if the tag is not set the empty
  719. # ## default option will be used. When no default, defaults to "telegraf"
  720. # # [outputs.kinesis.partition]
  721. # # method = "tag"
  722. # # key = "host"
  723. # # default = "mykey"
  724. #
  725. #
  726. # ## Data format to output.
  727. # ## Each data format has its own unique set of configuration options, read
  728. # ## more about them here:
  729. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  730. # data_format = "influx"
  731. #
  732. # ## debug will show upstream aws messages.
  733. # debug = false
  734. # # Configuration for Librato API to send metrics to.
  735. # [[outputs.librato]]
  736. # ## Librator API Docs
  737. # ## http://dev.librato.com/v1/metrics-authentication
  738. # ## Librato API user
  739. # api_user = "telegraf@influxdb.com" # required.
  740. # ## Librato API token
  741. # api_token = "my-secret-token" # required.
  742. # ## Debug
  743. # # debug = false
  744. # ## Connection timeout.
  745. # # timeout = "5s"
  746. # ## Output source Template (same as graphite buckets)
  747. # ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite
  748. # ## This template is used in librato's source (not metric's name)
  749. # template = "host"
  750. #
  751. # # Configuration for MQTT server to send metrics to
  752. # [[outputs.mqtt]]
  753. # servers = ["localhost:1883"] # required.
  754. #
  755. # ## MQTT outputs send metrics to this topic format
  756. # ## "<topic_prefix>/<hostname>/<pluginname>/"
  757. # ## ex: prefix/web01.example.com/mem
  758. # topic_prefix = "telegraf"
  759. #
  760. # ## QoS policy for messages
  761. # ## 0 = at most once
  762. # ## 1 = at least once
  763. # ## 2 = exactly once
  764. # # qos = 2
  765. #
  766. # ## username and password to connect MQTT server.
  767. # # username = "telegraf"
  768. # # password = "metricsmetricsmetricsmetrics"
  769. #
  770. # ## client ID, if not set a random ID is generated
  771. # # client_id = ""
  772. #
  773. # ## Timeout for write operations. default: 5s
  774. # # timeout = "5s"
  775. #
  776. # ## Optional TLS Config
  777. # # tls_ca = "/etc/telegraf/ca.pem"
  778. # # tls_cert = "/etc/telegraf/cert.pem"
  779. # # tls_key = "/etc/telegraf/key.pem"
  780. # ## Use TLS but skip chain & host verification
  781. # # insecure_skip_verify = false
  782. #
  783. # ## When true, metrics will be sent in one MQTT message per flush. Otherwise,
  784. # ## metrics are written one metric per MQTT message.
  785. # # batch = false
  786. #
  787. # ## When true, metric will have RETAIN flag set, making broker cache entries until someone
  788. # ## actually reads it
  789. # # retain = false
  790. #
  791. # ## Data format to output.
  792. # ## Each data format has its own unique set of configuration options, read
  793. # ## more about them here:
  794. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  795. # data_format = "influx"
  796. # # Send telegraf measurements to NATS
  797. # [[outputs.nats]]
  798. # ## URLs of NATS servers
  799. # servers = ["nats://localhost:4222"]
  800. # ## Optional credentials
  801. # # username = ""
  802. # # password = ""
  803. # ## NATS subject for producer messages
  804. # subject = "telegraf"
  805. #
  806. # ## Optional TLS Config
  807. # # tls_ca = "/etc/telegraf/ca.pem"
  808. # # tls_cert = "/etc/telegraf/cert.pem"
  809. # # tls_key = "/etc/telegraf/key.pem"
  810. # ## Use TLS but skip chain & host verification
  811. # # insecure_skip_verify = false
  812. #
  813. # ## Data format to output.
  814. # ## Each data format has its own unique set of configuration options, read
  815. # ## more about them here:
  816. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  817. # data_format = "influx"
  818. # # Send telegraf measurements to NSQD
  819. # [[outputs.nsq]]
  820. # ## Location of nsqd instance listening on TCP
  821. # server = "localhost:4150"
  822. # ## NSQ topic for producer messages
  823. # topic = "telegraf"
  824. #
  825. # ## Data format to output.
  826. # ## Each data format has its own unique set of configuration options, read
  827. # ## more about them here:
  828. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  829. # data_format = "influx"
  830. # # Configuration for OpenTSDB server to send metrics to
  831. # [[outputs.opentsdb]]
  832. # ## prefix for metrics keys
  833. # prefix = "my.specific.prefix."
  834. #
  835. # ## DNS name of the OpenTSDB server
  836. # ## Using "opentsdb.example.com" or "tcp://opentsdb.example.com" will use the
  837. # ## telnet API. "http://opentsdb.example.com" will use the Http API.
  838. # host = "opentsdb.example.com"
  839. #
  840. # ## Port of the OpenTSDB server
  841. # port = 4242
  842. #
  843. # ## Number of data points to send to OpenTSDB in Http requests.
  844. # ## Not used with telnet API.
  845. # http_batch_size = 50
  846. #
  847. # ## URI Path for Http requests to OpenTSDB.
  848. # ## Used in cases where OpenTSDB is located behind a reverse proxy.
  849. # http_path = "/api/put"
  850. #
  851. # ## Debug true - Prints OpenTSDB communication
  852. # debug = false
  853. #
  854. # ## Separator separates measurement name from field
  855. # separator = "_"
  856. # # Configuration for the Prometheus client to spawn
  857. # [[outputs.prometheus_client]]
  858. # ## Address to listen on
  859. # listen = ":9273"
  860. #
  861. # ## Use HTTP Basic Authentication.
  862. # # basic_username = "Foo"
  863. # # basic_password = "Bar"
  864. #
  865. # ## If set, the IP Ranges which are allowed to access metrics.
  866. # ## ex: ip_range = ["192.168.0.0/24", "192.168.1.0/30"]
  867. # # ip_range = []
  868. #
  869. # ## Path to publish the metrics on.
  870. # # path = "/metrics"
  871. #
  872. # ## Expiration interval for each metric. 0 == no expiration
  873. # # expiration_interval = "60s"
  874. #
  875. # ## Collectors to enable, valid entries are "gocollector" and "process".
  876. # ## If unset, both are enabled.
  877. # # collectors_exclude = ["gocollector", "process"]
  878. #
  879. # ## Send string metrics as Prometheus labels.
  880. # ## Unless set to false all string metrics will be sent as labels.
  881. # # string_as_label = true
  882. #
  883. # ## If set, enable TLS with the given certificate.
  884. # # tls_cert = "/etc/ssl/telegraf.crt"
  885. # # tls_key = "/etc/ssl/telegraf.key"
  886. #
  887. # ## Set one or more allowed client CA certificate file names to
  888. # ## enable mutually authenticated TLS connections
  889. # # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  890. #
  891. # ## Export metric collection time.
  892. # # export_timestamp = false
  893. # # Configuration for the Riemann server to send metrics to
  894. # [[outputs.riemann]]
  895. # ## The full TCP or UDP URL of the Riemann server
  896. # url = "tcp://localhost:5555"
  897. #
  898. # ## Riemann event TTL, floating-point time in seconds.
  899. # ## Defines how long that an event is considered valid for in Riemann
  900. # # ttl = 30.0
  901. #
  902. # ## Separator to use between measurement and field name in Riemann service name
  903. # ## This does not have any effect if 'measurement_as_attribute' is set to 'true'
  904. # separator = "/"
  905. #
  906. # ## Set measurement name as Riemann attribute 'measurement', instead of prepending it to the Riemann service name
  907. # # measurement_as_attribute = false
  908. #
  909. # ## Send string metrics as Riemann event states.
  910. # ## Unless enabled all string metrics will be ignored
  911. # # string_as_state = false
  912. #
  913. # ## A list of tag keys whose values get sent as Riemann tags.
  914. # ## If empty, all Telegraf tag values will be sent as tags
  915. # # tag_keys = ["telegraf","custom_tag"]
  916. #
  917. # ## Additional Riemann tags to send.
  918. # # tags = ["telegraf-output"]
  919. #
  920. # ## Description for Riemann event
  921. # # description_text = "metrics collected from telegraf"
  922. #
  923. # ## Riemann client write timeout, defaults to "5s" if not set.
  924. # # timeout = "5s"
  925. # # Configuration for the Riemann server to send metrics to
  926. # [[outputs.riemann_legacy]]
  927. # ## URL of server
  928. # url = "localhost:5555"
  929. # ## transport protocol to use either tcp or udp
  930. # transport = "tcp"
  931. # ## separator to use between input name and field name in Riemann service name
  932. # separator = " "
  933. # # Generic socket writer capable of handling multiple socket types.
  934. # [[outputs.socket_writer]]
  935. # ## URL to connect to
  936. # # address = "tcp://127.0.0.1:8094"
  937. # # address = "tcp://example.com:http"
  938. # # address = "tcp4://127.0.0.1:8094"
  939. # # address = "tcp6://127.0.0.1:8094"
  940. # # address = "tcp6://[2001:db8::1]:8094"
  941. # # address = "udp://127.0.0.1:8094"
  942. # # address = "udp4://127.0.0.1:8094"
  943. # # address = "udp6://127.0.0.1:8094"
  944. # # address = "unix:///tmp/telegraf.sock"
  945. # # address = "unixgram:///tmp/telegraf.sock"
  946. #
  947. # ## Optional TLS Config
  948. # # tls_ca = "/etc/telegraf/ca.pem"
  949. # # tls_cert = "/etc/telegraf/cert.pem"
  950. # # tls_key = "/etc/telegraf/key.pem"
  951. # ## Use TLS but skip chain & host verification
  952. # # insecure_skip_verify = false
  953. #
  954. # ## Period between keep alive probes.
  955. # ## Only applies to TCP sockets.
  956. # ## 0 disables keep alive probes.
  957. # ## Defaults to the OS configuration.
  958. # # keep_alive_period = "5m"
  959. #
  960. # ## Data format to generate.
  961. # ## Each data format has its own unique set of configuration options, read
  962. # ## more about them here:
  963. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  964. # # data_format = "influx"
  965. # # Configuration for Google Cloud Stackdriver to send metrics to
  966. # [[outputs.stackdriver]]
  967. # ## GCP Project
  968. # project = "erudite-bloom-151019"
  969. #
  970. # ## The namespace for the metric descriptor
  971. # namespace = "telegraf"
  972. #
  973. # ## Custom resource type
  974. # # resource_type = "generic_node"
  975. #
  976. # ## Additonal resource labels
  977. # # [outputs.stackdriver.resource_labels]
  978. # # node_id = "$HOSTNAME"
  979. # # namespace = "myapp"
  980. # # location = "eu-north0"
  981. # # Configuration for Wavefront server to send metrics to
  982. # [[outputs.wavefront]]
  983. # ## Url for Wavefront Direct Ingestion or using HTTP with Wavefront Proxy
  984. # ## If using Wavefront Proxy, also specify port. example: http://proxyserver:2878
  985. # url = "https://metrics.wavefront.com"
  986. #
  987. # ## Authentication Token for Wavefront. Only required if using Direct Ingestion
  988. # #token = "DUMMY_TOKEN"
  989. #
  990. # ## DNS name of the wavefront proxy server. Do not use if url is specified
  991. # #host = "wavefront.example.com"
  992. #
  993. # ## Port that the Wavefront proxy server listens on. Do not use if url is specified
  994. # #port = 2878
  995. #
  996. # ## prefix for metrics keys
  997. # #prefix = "my.specific.prefix."
  998. #
  999. # ## whether to use "value" for name of simple fields. default is false
  1000. # #simple_fields = false
  1001. #
  1002. # ## character to use between metric and field name. default is . (dot)
  1003. # #metric_separator = "."
  1004. #
  1005. # ## Convert metric name paths to use metricSeparator character
  1006. # ## When true will convert all _ (underscore) characters in final metric name. default is true
  1007. # #convert_paths = true
  1008. #
  1009. # ## Use Regex to sanitize metric and tag names from invalid characters
  1010. # ## Regex is more thorough, but significantly slower. default is false
  1011. # #use_regex = false
  1012. #
  1013. # ## point tags to use as the source name for Wavefront (if none found, host will be used)
  1014. # #source_override = ["hostname", "address", "agent_host", "node_host"]
  1015. #
  1016. # ## whether to convert boolean values to numeric values, with false -> 0.0 and true -> 1.0. default is true
  1017. # #convert_bool = true
  1018. #
  1019. # ## Define a mapping, namespaced by metric prefix, from string values to numeric values
  1020. # ## deprecated in 1.9; use the enum processor plugin
  1021. # #[[outputs.wavefront.string_to_number.elasticsearch]]
  1022. # # green = 1.0
  1023. # # yellow = 0.5
  1024. # # red = 0.0
  1025. ###############################################################################
  1026. # PROCESSOR PLUGINS #
  1027. ###############################################################################
  1028. # # Convert values to another metric value type
  1029. # [[processors.converter]]
  1030. # ## Tags to convert
  1031. # ##
  1032. # ## The table key determines the target type, and the array of key-values
  1033. # ## select the keys to convert. The array may contain globs.
  1034. # ## <target-type> = [<tag-key>...]
  1035. # [processors.converter.tags]
  1036. # string = []
  1037. # integer = []
  1038. # unsigned = []
  1039. # boolean = []
  1040. # float = []
  1041. #
  1042. # ## Fields to convert
  1043. # ##
  1044. # ## The table key determines the target type, and the array of key-values
  1045. # ## select the keys to convert. The array may contain globs.
  1046. # ## <target-type> = [<field-key>...]
  1047. # [processors.converter.fields]
  1048. # tag = []
  1049. # string = []
  1050. # integer = []
  1051. # unsigned = []
  1052. # boolean = []
  1053. # float = []
  1054. # # Map enum values according to given table.
  1055. # [[processors.enum]]
  1056. # [[processors.enum.mapping]]
  1057. # ## Name of the field to map
  1058. # field = "status"
  1059. #
  1060. # ## Destination field to be used for the mapped value. By default the source
  1061. # ## field is used, overwriting the original value.
  1062. # # dest = "status_code"
  1063. #
  1064. # ## Default value to be used for all values not contained in the mapping
  1065. # ## table. When unset, the unmodified value for the field will be used if no
  1066. # ## match is found.
  1067. # # default = 0
  1068. #
  1069. # ## Table of mappings
  1070. # [processors.enum.mapping.value_mappings]
  1071. # green = 1
  1072. # yellow = 2
  1073. # red = 3
  1074. # # Apply metric modifications using override semantics.
  1075. # [[processors.override]]
  1076. # ## All modifications on inputs and aggregators can be overridden:
  1077. # # name_override = "new_name"
  1078. # # name_prefix = "new_name_prefix"
  1079. # # name_suffix = "new_name_suffix"
  1080. #
  1081. # ## Tags to be added (all values must be strings)
  1082. # # [processors.override.tags]
  1083. # # additional_tag = "tag_value"
  1084. # # Parse a value in a specified field/tag(s) and add the result in a new metric
  1085. # [[processors.parser]]
  1086. # ## The name of the fields whose value will be parsed.
  1087. # parse_fields = []
  1088. #
  1089. # ## If true, incoming metrics are not emitted.
  1090. # drop_original = false
  1091. #
  1092. # ## If set to override, emitted metrics will be merged by overriding the
  1093. # ## original metric using the newly parsed metrics.
  1094. # merge = "override"
  1095. #
  1096. # ## The dataformat to be read from files
  1097. # ## Each data format has its own unique set of configuration options, read
  1098. # ## more about them here:
  1099. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  1100. # data_format = "influx"
  1101. # # Print all metrics that pass through this filter.
  1102. # [[processors.printer]]
  1103. # # Transforms tag and field values with regex pattern
  1104. # [[processors.regex]]
  1105. # ## Tag and field conversions defined in a separate sub-tables
  1106. # # [[processors.regex.tags]]
  1107. # # ## Tag to change
  1108. # # key = "resp_code"
  1109. # # ## Regular expression to match on a tag value
  1110. # # pattern = "^(\\d)\\d\\d$"
  1111. # # ## Pattern for constructing a new value (${1} represents first subgroup)
  1112. # # replacement = "${1}xx"
  1113. #
  1114. # # [[processors.regex.fields]]
  1115. # # key = "request"
  1116. # # ## All the power of the Go regular expressions available here
  1117. # # ## For example, named subgroups
  1118. # # pattern = "^/api(?P<method>/[\\w/]+)\\S*"
  1119. # # replacement = "${method}"
  1120. # # ## If result_key is present, a new field will be created
  1121. # # ## instead of changing existing field
  1122. # # result_key = "method"
  1123. #
  1124. # ## Multiple conversions may be applied for one field sequentially
  1125. # ## Let's extract one more value
  1126. # # [[processors.regex.fields]]
  1127. # # key = "request"
  1128. # # pattern = ".*category=(\\w+).*"
  1129. # # replacement = "${1}"
  1130. # # result_key = "search_category"
  1131. # # Rename measurements, tags, and fields that pass through this filter.
  1132. # [[processors.rename]]
  1133. # # Perform string processing on tags, fields, and measurements
  1134. # [[processors.strings]]
  1135. # ## Convert a tag value to uppercase
  1136. # # [[processors.strings.uppercase]]
  1137. # # tag = "method"
  1138. #
  1139. # ## Convert a field value to lowercase and store in a new field
  1140. # # [[processors.strings.lowercase]]
  1141. # # field = "uri_stem"
  1142. # # dest = "uri_stem_normalised"
  1143. #
  1144. # ## Trim leading and trailing whitespace using the default cutset
  1145. # # [[processors.strings.trim]]
  1146. # # field = "message"
  1147. #
  1148. # ## Trim leading characters in cutset
  1149. # # [[processors.strings.trim_left]]
  1150. # # field = "message"
  1151. # # cutset = "\t"
  1152. #
  1153. # ## Trim trailing characters in cutset
  1154. # # [[processors.strings.trim_right]]
  1155. # # field = "message"
  1156. # # cutset = "\r\n"
  1157. #
  1158. # ## Trim the given prefix from the field
  1159. # # [[processors.strings.trim_prefix]]
  1160. # # field = "my_value"
  1161. # # prefix = "my_"
  1162. #
  1163. # ## Trim the given suffix from the field
  1164. # # [[processors.strings.trim_suffix]]
  1165. # # field = "read_count"
  1166. # # suffix = "_count"
  1167. #
  1168. # ## Replace all non-overlapping instances of old with new
  1169. # # [[processors.strings.replace]]
  1170. # # measurement = "*"
  1171. # # old = ":"
  1172. # # new = "_"
  1173. # # Print all metrics that pass through this filter.
  1174. # [[processors.topk]]
  1175. # ## How many seconds between aggregations
  1176. # # period = 10
  1177. #
  1178. # ## How many top metrics to return
  1179. # # k = 10
  1180. #
  1181. # ## Over which tags should the aggregation be done. Globs can be specified, in
  1182. # ## which case any tag matching the glob will aggregated over. If set to an
  1183. # ## empty list is no aggregation over tags is done
  1184. # # group_by = ['*']
  1185. #
  1186. # ## Over which fields are the top k are calculated
  1187. # # fields = ["value"]
  1188. #
  1189. # ## What aggregation to use. Options: sum, mean, min, max
  1190. # # aggregation = "mean"
  1191. #
  1192. # ## Instead of the top k largest metrics, return the bottom k lowest metrics
  1193. # # bottomk = false
  1194. #
  1195. # ## The plugin assigns each metric a GroupBy tag generated from its name and
  1196. # ## tags. If this setting is different than "" the plugin will add a
  1197. # ## tag (which name will be the value of this setting) to each metric with
  1198. # ## the value of the calculated GroupBy tag. Useful for debugging
  1199. # # add_groupby_tag = ""
  1200. #
  1201. # ## These settings provide a way to know the position of each metric in
  1202. # ## the top k. The 'add_rank_field' setting allows to specify for which
  1203. # ## fields the position is required. If the list is non empty, then a field
  1204. # ## will be added to each and every metric for each string present in this
  1205. # ## setting. This field will contain the ranking of the group that
  1206. # ## the metric belonged to when aggregated over that field.
  1207. # ## The name of the field will be set to the name of the aggregation field,
  1208. # ## suffixed with the string '_topk_rank'
  1209. # # add_rank_fields = []
  1210. #
  1211. # ## These settings provide a way to know what values the plugin is generating
  1212. # ## when aggregating metrics. The 'add_agregate_field' setting allows to
  1213. # ## specify for which fields the final aggregation value is required. If the
  1214. # ## list is non empty, then a field will be added to each every metric for
  1215. # ## each field present in this setting. This field will contain
  1216. # ## the computed aggregation for the group that the metric belonged to when
  1217. # ## aggregated over that field.
  1218. # ## The name of the field will be set to the name of the aggregation field,
  1219. # ## suffixed with the string '_topk_aggregate'
  1220. # # add_aggregate_fields = []
  1221. ###############################################################################
  1222. # AGGREGATOR PLUGINS #
  1223. ###############################################################################
  1224. # # Keep the aggregate basicstats of each metric passing through.
  1225. # [[aggregators.basicstats]]
  1226. # ## The period on which to flush & clear the aggregator.
  1227. # period = "30s"
  1228. # ## If true, the original metric will be dropped by the
  1229. # ## aggregator and will not get sent to the output plugins.
  1230. # drop_original = false
  1231. #
  1232. # ## Configures which basic stats to push as fields
  1233. # # stats = ["count", "min", "max", "mean", "stdev", "s2", "sum"]
  1234. # # Create aggregate histograms.
  1235. # [[aggregators.histogram]]
  1236. # ## The period in which to flush the aggregator.
  1237. # period = "30s"
  1238. #
  1239. # ## If true, the original metric will be dropped by the
  1240. # ## aggregator and will not get sent to the output plugins.
  1241. # drop_original = false
  1242. #
  1243. # ## Example config that aggregates all fields of the metric.
  1244. # # [[aggregators.histogram.config]]
  1245. # # ## The set of buckets.
  1246. # # buckets = [0.0, 15.6, 34.5, 49.1, 71.5, 80.5, 94.5, 100.0]
  1247. # # ## The name of metric.
  1248. # # measurement_name = "cpu"
  1249. #
  1250. # ## Example config that aggregates only specific fields of the metric.
  1251. # # [[aggregators.histogram.config]]
  1252. # # ## The set of buckets.
  1253. # # buckets = [0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0]
  1254. # # ## The name of metric.
  1255. # # measurement_name = "diskio"
  1256. # # ## The concrete fields of metric
  1257. # # fields = ["io_time", "read_time", "write_time"]
  1258. # # Keep the aggregate min/max of each metric passing through.
  1259. # [[aggregators.minmax]]
  1260. # ## General Aggregator Arguments:
  1261. # ## The period on which to flush & clear the aggregator.
  1262. # period = "30s"
  1263. # ## If true, the original metric will be dropped by the
  1264. # ## aggregator and will not get sent to the output plugins.
  1265. # drop_original = false
  1266. # # Count the occurrence of values in fields.
  1267. # [[aggregators.valuecounter]]
  1268. # ## General Aggregator Arguments:
  1269. # ## The period on which to flush & clear the aggregator.
  1270. # period = "30s"
  1271. # ## If true, the original metric will be dropped by the
  1272. # ## aggregator and will not get sent to the output plugins.
  1273. # drop_original = false
  1274. # ## The fields for which the values will be counted
  1275. # fields = []
  1276. ###############################################################################
  1277. # INPUT PLUGINS #
  1278. ###############################################################################
  1279. # Read metrics about cpu usage
  1280. [[inputs.cpu]]
  1281. ## Whether to report per-cpu stats or not
  1282. percpu = true
  1283. ## Whether to report total system cpu stats or not
  1284. totalcpu = true
  1285. ## If true, collect raw CPU time metrics.
  1286. collect_cpu_time = false
  1287. ## If true, compute and report the sum of all non-idle CPU states.
  1288. report_active = false
  1289. # Read metrics about disk usage by mount point
  1290. [[inputs.disk]]
  1291. ## By default stats will be gathered for all mount points.
  1292. ## Set mount_points will restrict the stats to only the specified mount points.
  1293. # mount_points = ["/"]
  1294. ## Ignore mount points by filesystem type.
  1295. ignore_fs = ["tmpfs", "devtmpfs", "devfs", "overlay", "aufs", "squashfs"]
  1296. # Read metrics about disk IO by device
  1297. [[inputs.diskio]]
  1298. ## By default, telegraf will gather stats for all devices including
  1299. ## disk partitions.
  1300. ## Setting devices will restrict the stats to the specified devices.
  1301. # devices = ["sda", "sdb", "vd*"]
  1302. ## Uncomment the following line if you need disk serial numbers.
  1303. # skip_serial_number = false
  1304. #
  1305. ## On systems which support it, device metadata can be added in the form of
  1306. ## tags.
  1307. ## Currently only Linux is supported via udev properties. You can view
  1308. ## available properties for a device by running:
  1309. ## 'udevadm info -q property -n /dev/sda'
  1310. ## Note: Most, but not all, udev properties can be accessed this way. Properties
  1311. ## that are currently inaccessible include DEVTYPE, DEVNAME, and DEVPATH.
  1312. # device_tags = ["ID_FS_TYPE", "ID_FS_USAGE"]
  1313. #
  1314. ## Using the same metadata source as device_tags, you can also customize the
  1315. ## name of the device via templates.
  1316. ## The 'name_templates' parameter is a list of templates to try and apply to
  1317. ## the device. The template may contain variables in the form of '$PROPERTY' or
  1318. ## '${PROPERTY}'. The first template which does not contain any variables not
  1319. ## present for the device is used as the device name tag.
  1320. ## The typical use case is for LVM volumes, to get the VG/LV name instead of
  1321. ## the near-meaningless DM-0 name.
  1322. # name_templates = ["$ID_FS_LABEL","$DM_VG_NAME/$DM_LV_NAME"]
  1323. # Get kernel statistics from /proc/stat
  1324. [[inputs.kernel]]
  1325. # no configuration
  1326. # Read metrics about memory usage
  1327. [[inputs.mem]]
  1328. # no configuration
  1329. # Get the number of processes and group them by status
  1330. [[inputs.processes]]
  1331. # no configuration
  1332. # Read metrics about swap memory usage
  1333. [[inputs.swap]]
  1334. # no configuration
  1335. # Read metrics about system load & uptime
  1336. [[inputs.system]]
  1337. # no configuration
  1338. # # Gather ActiveMQ metrics
  1339. # [[inputs.activemq]]
  1340. # ## Required ActiveMQ Endpoint
  1341. # # server = "192.168.50.10"
  1342. #
  1343. # ## Required ActiveMQ port
  1344. # # port = 8161
  1345. #
  1346. # ## Credentials for basic HTTP authentication
  1347. # # username = "admin"
  1348. # # password = "admin"
  1349. #
  1350. # ## Required ActiveMQ webadmin root path
  1351. # # webadmin = "admin"
  1352. #
  1353. # ## Maximum time to receive response.
  1354. # # response_timeout = "5s"
  1355. #
  1356. # ## Optional TLS Config
  1357. # # tls_ca = "/etc/telegraf/ca.pem"
  1358. # # tls_cert = "/etc/telegraf/cert.pem"
  1359. # # tls_key = "/etc/telegraf/key.pem"
  1360. # ## Use TLS but skip chain & host verification
  1361. # # Read stats from aerospike server(s)
  1362. # [[inputs.aerospike]]
  1363. # ## Aerospike servers to connect to (with port)
  1364. # ## This plugin will query all namespaces the aerospike
  1365. # ## server has configured and get stats for them.
  1366. # servers = ["localhost:3000"]
  1367. #
  1368. # # username = "telegraf"
  1369. # # password = "pa$$word"
  1370. #
  1371. # ## Optional TLS Config
  1372. # # enable_tls = false
  1373. # # tls_ca = "/etc/telegraf/ca.pem"
  1374. # # tls_cert = "/etc/telegraf/cert.pem"
  1375. # # tls_key = "/etc/telegraf/key.pem"
  1376. # ## If false, skip chain & host verification
  1377. # # insecure_skip_verify = true
  1378. # # Read Apache status information (mod_status)
  1379. # [[inputs.apache]]
  1380. # ## An array of URLs to gather from, must be directed at the machine
  1381. # ## readable version of the mod_status page including the auto query string.
  1382. # ## Default is "http://localhost/server-status?auto".
  1383. # urls = ["http://localhost/server-status?auto"]
  1384. #
  1385. # ## Credentials for basic HTTP authentication.
  1386. # # username = "myuser"
  1387. # # password = "mypassword"
  1388. #
  1389. # ## Maximum time to receive response.
  1390. # # response_timeout = "5s"
  1391. #
  1392. # ## Optional TLS Config
  1393. # # tls_ca = "/etc/telegraf/ca.pem"
  1394. # # tls_cert = "/etc/telegraf/cert.pem"
  1395. # # tls_key = "/etc/telegraf/key.pem"
  1396. # ## Use TLS but skip chain & host verification
  1397. # # insecure_skip_verify = false
  1398. # # Gather metrics from Apache Aurora schedulers
  1399. # [[inputs.aurora]]
  1400. # ## Schedulers are the base addresses of your Aurora Schedulers
  1401. # schedulers = ["http://127.0.0.1:8081"]
  1402. #
  1403. # ## Set of role types to collect metrics from.
  1404. # ##
  1405. # ## The scheduler roles are checked each interval by contacting the
  1406. # ## scheduler nodes; zookeeper is not contacted.
  1407. # # roles = ["leader", "follower"]
  1408. #
  1409. # ## Timeout is the max time for total network operations.
  1410. # # timeout = "5s"
  1411. #
  1412. # ## Username and password are sent using HTTP Basic Auth.
  1413. # # username = "username"
  1414. # # password = "pa$$word"
  1415. #
  1416. # ## Optional TLS Config
  1417. # # tls_ca = "/etc/telegraf/ca.pem"
  1418. # # tls_cert = "/etc/telegraf/cert.pem"
  1419. # # tls_key = "/etc/telegraf/key.pem"
  1420. # ## Use TLS but skip chain & host verification
  1421. # # insecure_skip_verify = false
  1422. # # Read metrics of bcache from stats_total and dirty_data
  1423. # [[inputs.bcache]]
  1424. # ## Bcache sets path
  1425. # ## If not specified, then default is:
  1426. # bcachePath = "/sys/fs/bcache"
  1427. #
  1428. # ## By default, telegraf gather stats for all bcache devices
  1429. # ## Setting devices will restrict the stats to the specified
  1430. # ## bcache devices.
  1431. # bcacheDevs = ["bcache0"]
  1432. # # Collects Beanstalkd server and tubes stats
  1433. # [[inputs.beanstalkd]]
  1434. # ## Server to collect data from
  1435. # server = "localhost:11300"
  1436. #
  1437. # ## List of tubes to gather stats about.
  1438. # ## If no tubes specified then data gathered for each tube on server reported by list-tubes command
  1439. # tubes = ["notifications"]
  1440. # # Collect bond interface status, slaves statuses and failures count
  1441. # [[inputs.bond]]
  1442. # ## Sets 'proc' directory path
  1443. # ## If not specified, then default is /proc
  1444. # # host_proc = "/proc"
  1445. #
  1446. # ## By default, telegraf gather stats for all bond interfaces
  1447. # ## Setting interfaces will restrict the stats to the specified
  1448. # ## bond interfaces.
  1449. # # bond_interfaces = ["bond0"]
  1450. # # Collect Kafka topics and consumers status from Burrow HTTP API.
  1451. # [[inputs.burrow]]
  1452. # ## Burrow API endpoints in format "schema://host:port".
  1453. # ## Default is "http://localhost:8000".
  1454. # servers = ["http://localhost:8000"]
  1455. #
  1456. # ## Override Burrow API prefix.
  1457. # ## Useful when Burrow is behind reverse-proxy.
  1458. # # api_prefix = "/v3/kafka"
  1459. #
  1460. # ## Maximum time to receive response.
  1461. # # response_timeout = "5s"
  1462. #
  1463. # ## Limit per-server concurrent connections.
  1464. # ## Useful in case of large number of topics or consumer groups.
  1465. # # concurrent_connections = 20
  1466. #
  1467. # ## Filter clusters, default is no filtering.
  1468. # ## Values can be specified as glob patterns.
  1469. # # clusters_include = []
  1470. # # clusters_exclude = []
  1471. #
  1472. # ## Filter consumer groups, default is no filtering.
  1473. # ## Values can be specified as glob patterns.
  1474. # # groups_include = []
  1475. # # groups_exclude = []
  1476. #
  1477. # ## Filter topics, default is no filtering.
  1478. # ## Values can be specified as glob patterns.
  1479. # # topics_include = []
  1480. # # topics_exclude = []
  1481. #
  1482. # ## Credentials for basic HTTP authentication.
  1483. # # username = ""
  1484. # # password = ""
  1485. #
  1486. # ## Optional SSL config
  1487. # # ssl_ca = "/etc/telegraf/ca.pem"
  1488. # # ssl_cert = "/etc/telegraf/cert.pem"
  1489. # # ssl_key = "/etc/telegraf/key.pem"
  1490. # # insecure_skip_verify = false
  1491. # # Collects performance metrics from the MON and OSD nodes in a Ceph storage cluster.
  1492. # [[inputs.ceph]]
  1493. # ## This is the recommended interval to poll. Too frequent and you will lose
  1494. # ## data points due to timeouts during rebalancing and recovery
  1495. # interval = '1m'
  1496. #
  1497. # ## All configuration values are optional, defaults are shown below
  1498. #
  1499. # ## location of ceph binary
  1500. # ceph_binary = "/usr/bin/ceph"
  1501. #
  1502. # ## directory in which to look for socket files
  1503. # socket_dir = "/var/run/ceph"
  1504. #
  1505. # ## prefix of MON and OSD socket files, used to determine socket type
  1506. # mon_prefix = "ceph-mon"
  1507. # osd_prefix = "ceph-osd"
  1508. #
  1509. # ## suffix used to identify socket files
  1510. # socket_suffix = "asok"
  1511. #
  1512. # ## Ceph user to authenticate as
  1513. # ceph_user = "client.admin"
  1514. #
  1515. # ## Ceph configuration to use to locate the cluster
  1516. # ceph_config = "/etc/ceph/ceph.conf"
  1517. #
  1518. # ## Whether to gather statistics via the admin socket
  1519. # gather_admin_socket_stats = true
  1520. #
  1521. # ## Whether to gather statistics via ceph commands
  1522. # gather_cluster_stats = false
  1523. # # Read specific statistics per cgroup
  1524. # [[inputs.cgroup]]
  1525. # ## Directories in which to look for files, globs are supported.
  1526. # ## Consider restricting paths to the set of cgroups you really
  1527. # ## want to monitor if you have a large number of cgroups, to avoid
  1528. # ## any cardinality issues.
  1529. # # paths = [
  1530. # # "/cgroup/memory",
  1531. # # "/cgroup/memory/child1",
  1532. # # "/cgroup/memory/child2/*",
  1533. # # ]
  1534. # ## cgroup stat fields, as file names, globs are supported.
  1535. # ## these file names are appended to each path from above.
  1536. # # files = ["memory.*usage*", "memory.limit_in_bytes"]
  1537. # # Get standard chrony metrics, requires chronyc executable.
  1538. # [[inputs.chrony]]
  1539. # ## If true, chronyc tries to perform a DNS lookup for the time server.
  1540. # # dns_lookup = false
  1541. # # Pull Metric Statistics from Amazon CloudWatch
  1542. # [[inputs.cloudwatch]]
  1543. # ## Amazon Region
  1544. # region = "us-east-1"
  1545. #
  1546. # ## Amazon Credentials
  1547. # ## Credentials are loaded in the following order
  1548. # ## 1) Assumed credentials via STS if role_arn is specified
  1549. # ## 2) explicit credentials from 'access_key' and 'secret_key'
  1550. # ## 3) shared profile from 'profile'
  1551. # ## 4) environment variables
  1552. # ## 5) shared credentials file
  1553. # ## 6) EC2 Instance Profile
  1554. # #access_key = ""
  1555. # #secret_key = ""
  1556. # #token = ""
  1557. # #role_arn = ""
  1558. # #profile = ""
  1559. # #shared_credential_file = ""
  1560. #
  1561. # ## Endpoint to make request against, the correct endpoint is automatically
  1562. # ## determined and this option should only be set if you wish to override the
  1563. # ## default.
  1564. # ## ex: endpoint_url = "http://localhost:8000"
  1565. # # endpoint_url = ""
  1566. #
  1567. # # The minimum period for Cloudwatch metrics is 1 minute (60s). However not all
  1568. # # metrics are made available to the 1 minute period. Some are collected at
  1569. # # 3 minute, 5 minute, or larger intervals. See https://aws.amazon.com/cloudwatch/faqs/#monitoring.
  1570. # # Note that if a period is configured that is smaller than the minimum for a
  1571. # # particular metric, that metric will not be returned by the Cloudwatch API
  1572. # # and will not be collected by Telegraf.
  1573. # #
  1574. # ## Requested CloudWatch aggregation Period (required - must be a multiple of 60s)
  1575. # period = "5m"
  1576. #
  1577. # ## Collection Delay (required - must account for metrics availability via CloudWatch API)
  1578. # delay = "5m"
  1579. #
  1580. # ## Recommended: use metric 'interval' that is a multiple of 'period' to avoid
  1581. # ## gaps or overlap in pulled data
  1582. # interval = "5m"
  1583. #
  1584. # ## Configure the TTL for the internal cache of metrics.
  1585. # ## Defaults to 1 hr if not specified
  1586. # #cache_ttl = "10m"
  1587. #
  1588. # ## Metric Statistic Namespace (required)
  1589. # namespace = "AWS/ELB"
  1590. #
  1591. # ## Maximum requests per second. Note that the global default AWS rate limit is
  1592. # ## 400 reqs/sec, so if you define multiple namespaces, these should add up to a
  1593. # ## maximum of 400. Optional - default value is 200.
  1594. # ## See http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_limits.html
  1595. # ratelimit = 200
  1596. #
  1597. # ## Metrics to Pull (optional)
  1598. # ## Defaults to all Metrics in Namespace if nothing is provided
  1599. # ## Refreshes Namespace available metrics every 1h
  1600. # #[[inputs.cloudwatch.metrics]]
  1601. # # names = ["Latency", "RequestCount"]
  1602. # #
  1603. # # ## Dimension filters for Metric. These are optional however all dimensions
  1604. # # ## defined for the metric names must be specified in order to retrieve
  1605. # # ## the metric statistics.
  1606. # # [[inputs.cloudwatch.metrics.dimensions]]
  1607. # # name = "LoadBalancerName"
  1608. # # value = "p-example"
  1609. # # Collects conntrack stats from the configured directories and files.
  1610. # [[inputs.conntrack]]
  1611. # ## The following defaults would work with multiple versions of conntrack.
  1612. # ## Note the nf_ and ip_ filename prefixes are mutually exclusive across
  1613. # ## kernel versions, as are the directory locations.
  1614. #
  1615. # ## Superset of filenames to look for within the conntrack dirs.
  1616. # ## Missing files will be ignored.
  1617. # files = ["ip_conntrack_count","ip_conntrack_max",
  1618. # "nf_conntrack_count","nf_conntrack_max"]
  1619. #
  1620. # ## Directories to search within for the conntrack files above.
  1621. # ## Missing directrories will be ignored.
  1622. # dirs = ["/proc/sys/net/ipv4/netfilter","/proc/sys/net/netfilter"]
  1623. # # Gather health check statuses from services registered in Consul
  1624. # [[inputs.consul]]
  1625. # ## Consul server address
  1626. # # address = "localhost"
  1627. #
  1628. # ## URI scheme for the Consul server, one of "http", "https"
  1629. # # scheme = "http"
  1630. #
  1631. # ## ACL token used in every request
  1632. # # token = ""
  1633. #
  1634. # ## HTTP Basic Authentication username and password.
  1635. # # username = ""
  1636. # # password = ""
  1637. #
  1638. # ## Data center to query the health checks from
  1639. # # datacenter = ""
  1640. #
  1641. # ## Optional TLS Config
  1642. # # tls_ca = "/etc/telegraf/ca.pem"
  1643. # # tls_cert = "/etc/telegraf/cert.pem"
  1644. # # tls_key = "/etc/telegraf/key.pem"
  1645. # ## Use TLS but skip chain & host verification
  1646. # # insecure_skip_verify = true
  1647. #
  1648. # ## Consul checks' tag splitting
  1649. # # When tags are formatted like "key:value" with ":" as a delimiter then
  1650. # # they will be splitted and reported as proper key:value in Telegraf
  1651. # # tag_delimiter = ":"
  1652. # # Read metrics from one or many couchbase clusters
  1653. # [[inputs.couchbase]]
  1654. # ## specify servers via a url matching:
  1655. # ## [protocol://][:password]@address[:port]
  1656. # ## e.g.
  1657. # ## http://couchbase-0.example.com/
  1658. # ## http://admin:secret@couchbase-0.example.com:8091/
  1659. # ##
  1660. # ## If no servers are specified, then localhost is used as the host.
  1661. # ## If no protocol is specified, HTTP is used.
  1662. # ## If no port is specified, 8091 is used.
  1663. # servers = ["http://localhost:8091"]
  1664. # # Read CouchDB Stats from one or more servers
  1665. # [[inputs.couchdb]]
  1666. # ## Works with CouchDB stats endpoints out of the box
  1667. # ## Multiple Hosts from which to read CouchDB stats:
  1668. # hosts = ["http://localhost:8086/_stats"]
  1669. #
  1670. # ## Use HTTP Basic Authentication.
  1671. # # basic_username = "telegraf"
  1672. # # basic_password = "p@ssw0rd"
  1673. # # Input plugin for DC/OS metrics
  1674. # [[inputs.dcos]]
  1675. # ## The DC/OS cluster URL.
  1676. # cluster_url = "https://dcos-ee-master-1"
  1677. #
  1678. # ## The ID of the service account.
  1679. # service_account_id = "telegraf"
  1680. # ## The private key file for the service account.
  1681. # service_account_private_key = "/etc/telegraf/telegraf-sa-key.pem"
  1682. #
  1683. # ## Path containing login token. If set, will read on every gather.
  1684. # # token_file = "/home/dcos/.dcos/token"
  1685. #
  1686. # ## In all filter options if both include and exclude are empty all items
  1687. # ## will be collected. Arrays may contain glob patterns.
  1688. # ##
  1689. # ## Node IDs to collect metrics from. If a node is excluded, no metrics will
  1690. # ## be collected for its containers or apps.
  1691. # # node_include = []
  1692. # # node_exclude = []
  1693. # ## Container IDs to collect container metrics from.
  1694. # # container_include = []
  1695. # # container_exclude = []
  1696. # ## Container IDs to collect app metrics from.
  1697. # # app_include = []
  1698. # # app_exclude = []
  1699. #
  1700. # ## Maximum concurrent connections to the cluster.
  1701. # # max_connections = 10
  1702. # ## Maximum time to receive a response from cluster.
  1703. # # response_timeout = "20s"
  1704. #
  1705. # ## Optional TLS Config
  1706. # # tls_ca = "/etc/telegraf/ca.pem"
  1707. # # tls_cert = "/etc/telegraf/cert.pem"
  1708. # # tls_key = "/etc/telegraf/key.pem"
  1709. # ## If false, skip chain & host verification
  1710. # # insecure_skip_verify = true
  1711. #
  1712. # ## Recommended filtering to reduce series cardinality.
  1713. # # [inputs.dcos.tagdrop]
  1714. # # path = ["/var/lib/mesos/slave/slaves/*"]
  1715. # # Read metrics from one or many disque servers
  1716. # [[inputs.disque]]
  1717. # ## An array of URI to gather stats about. Specify an ip or hostname
  1718. # ## with optional port and password.
  1719. # ## ie disque://localhost, disque://10.10.3.33:18832, 10.0.0.1:10000, etc.
  1720. # ## If no servers are specified, then localhost is used as the host.
  1721. # servers = ["localhost"]
  1722. # # Provide a native collection for dmsetup based statistics for dm-cache
  1723. # [[inputs.dmcache]]
  1724. # ## Whether to report per-device stats or not
  1725. # per_device = true
  1726. # # Query given DNS server and gives statistics
  1727. # [[inputs.dns_query]]
  1728. # ## servers to query
  1729. # servers = ["8.8.8.8"]
  1730. #
  1731. # ## Network is the network protocol name.
  1732. # # network = "udp"
  1733. #
  1734. # ## Domains or subdomains to query.
  1735. # # domains = ["."]
  1736. #
  1737. # ## Query record type.
  1738. # ## Posible values: A, AAAA, CNAME, MX, NS, PTR, TXT, SOA, SPF, SRV.
  1739. # # record_type = "A"
  1740. #
  1741. # ## Dns server port.
  1742. # # port = 53
  1743. #
  1744. # ## Query timeout in seconds.
  1745. # # timeout = 2
  1746. # # Read metrics about docker containers
  1747. # [[inputs.docker]]
  1748. # ## Docker Endpoint
  1749. # ## To use TCP, set endpoint = "tcp://[ip]:[port]"
  1750. # ## To use environment variables (ie, docker-machine), set endpoint = "ENV"
  1751. # endpoint = "unix:///var/run/docker.sock"
  1752. #
  1753. # ## Set to true to collect Swarm metrics(desired_replicas, running_replicas)
  1754. # gather_services = false
  1755. #
  1756. # ## Only collect metrics for these containers, collect all if empty
  1757. # container_names = []
  1758. #
  1759. # ## Containers to include and exclude. Globs accepted.
  1760. # ## Note that an empty array for both will include all containers
  1761. # container_name_include = []
  1762. # container_name_exclude = []
  1763. #
  1764. # ## Container states to include and exclude. Globs accepted.
  1765. # ## When empty only containers in the "running" state will be captured.
  1766. # # container_state_include = []
  1767. # # container_state_exclude = []
  1768. #
  1769. # ## Timeout for docker list, info, and stats commands
  1770. # timeout = "5s"
  1771. #
  1772. # ## Whether to report for each container per-device blkio (8:0, 8:1...) and
  1773. # ## network (eth0, eth1, ...) stats or not
  1774. # perdevice = true
  1775. # ## Whether to report for each container total blkio and network stats or not
  1776. # total = false
  1777. # ## Which environment variables should we use as a tag
  1778. # ##tag_env = ["JAVA_HOME", "HEAP_SIZE"]
  1779. #
  1780. # ## docker labels to include and exclude as tags. Globs accepted.
  1781. # ## Note that an empty array for both will include all labels as tags
  1782. # docker_label_include = []
  1783. # docker_label_exclude = []
  1784. #
  1785. # ## Optional TLS Config
  1786. # # tls_ca = "/etc/telegraf/ca.pem"
  1787. # # tls_cert = "/etc/telegraf/cert.pem"
  1788. # # tls_key = "/etc/telegraf/key.pem"
  1789. # ## Use TLS but skip chain & host verification
  1790. # # insecure_skip_verify = false
  1791. # # Read statistics from one or many dovecot servers
  1792. # [[inputs.dovecot]]
  1793. # ## specify dovecot servers via an address:port list
  1794. # ## e.g.
  1795. # ## localhost:24242
  1796. # ##
  1797. # ## If no servers are specified, then localhost is used as the host.
  1798. # servers = ["localhost:24242"]
  1799. # ## Type is one of "user", "domain", "ip", or "global"
  1800. # type = "global"
  1801. # ## Wildcard matches like "*.com". An empty string "" is same as "*"
  1802. # ## If type = "ip" filters should be <IP/network>
  1803. # filters = [""]
  1804. # # Read stats from one or more Elasticsearch servers or clusters
  1805. # [[inputs.elasticsearch]]
  1806. # ## specify a list of one or more Elasticsearch servers
  1807. # # you can add username and password to your url to use basic authentication:
  1808. # # servers = ["http://user:pass@localhost:9200"]
  1809. # servers = ["http://localhost:9200"]
  1810. #
  1811. # ## Timeout for HTTP requests to the elastic search server(s)
  1812. # http_timeout = "5s"
  1813. #
  1814. # ## When local is true (the default), the node will read only its own stats.
  1815. # ## Set local to false when you want to read the node stats from all nodes
  1816. # ## of the cluster.
  1817. # local = true
  1818. #
  1819. # ## Set cluster_health to true when you want to also obtain cluster health stats
  1820. # cluster_health = false
  1821. #
  1822. # ## Adjust cluster_health_level when you want to also obtain detailed health stats
  1823. # ## The options are
  1824. # ## - indices (default)
  1825. # ## - cluster
  1826. # # cluster_health_level = "indices"
  1827. #
  1828. # ## Set cluster_stats to true when you want to also obtain cluster stats.
  1829. # cluster_stats = false
  1830. #
  1831. # ## Only gather cluster_stats from the master node. To work this require local = true
  1832. # cluster_stats_only_from_master = true
  1833. #
  1834. # ## node_stats is a list of sub-stats that you want to have gathered. Valid options
  1835. # ## are "indices", "os", "process", "jvm", "thread_pool", "fs", "transport", "http",
  1836. # ## "breaker". Per default, all stats are gathered.
  1837. # # node_stats = ["jvm", "http"]
  1838. #
  1839. # ## Optional TLS Config
  1840. # # tls_ca = "/etc/telegraf/ca.pem"
  1841. # # tls_cert = "/etc/telegraf/cert.pem"
  1842. # # tls_key = "/etc/telegraf/key.pem"
  1843. # ## Use TLS but skip chain & host verification
  1844. # # insecure_skip_verify = false
  1845. # # Read metrics from one or more commands that can output to stdout
  1846. # [[inputs.exec]]
  1847. # ## Commands array
  1848. # commands = [
  1849. # "/tmp/test.sh",
  1850. # "/usr/bin/mycollector --foo=bar",
  1851. # "/tmp/collect_*.sh"
  1852. # ]
  1853. #
  1854. # ## Timeout for each command to complete.
  1855. # timeout = "5s"
  1856. #
  1857. # ## measurement name suffix (for separating different commands)
  1858. # name_suffix = "_mycollector"
  1859. #
  1860. # ## Data format to consume.
  1861. # ## Each data format has its own unique set of configuration options, read
  1862. # ## more about them here:
  1863. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  1864. # data_format = "influx"
  1865. # # Read metrics from fail2ban.
  1866. # [[inputs.fail2ban]]
  1867. # ## Use sudo to run fail2ban-client
  1868. # use_sudo = false
  1869. # # Read devices value(s) from a Fibaro controller
  1870. # [[inputs.fibaro]]
  1871. # ## Required Fibaro controller address/hostname.
  1872. # ## Note: at the time of writing this plugin, Fibaro only implemented http - no https available
  1873. # url = "http://<controller>:80"
  1874. #
  1875. # ## Required credentials to access the API (http://<controller/api/<component>)
  1876. # username = "<username>"
  1877. # password = "<password>"
  1878. #
  1879. # ## Amount of time allowed to complete the HTTP request
  1880. # # timeout = "5s"
  1881. # # Reload and gather from file[s] on telegraf's interval.
  1882. # [[inputs.file]]
  1883. # ## Files to parse each interval.
  1884. # ## These accept standard unix glob matching rules, but with the addition of
  1885. # ## ** as a "super asterisk". ie:
  1886. # ## /var/log/**.log -> recursively find all .log files in /var/log
  1887. # ## /var/log/*/*.log -> find all .log files with a parent dir in /var/log
  1888. # ## /var/log/apache.log -> only read the apache log file
  1889. # files = ["/var/log/apache/access.log"]
  1890. #
  1891. # ## The dataformat to be read from files
  1892. # ## Each data format has its own unique set of configuration options, read
  1893. # ## more about them here:
  1894. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  1895. # data_format = "influx"
  1896. # # Count files in a directory
  1897. # [[inputs.filecount]]
  1898. # ## Directory to gather stats about.
  1899. # ## deprecated in 1.9; use the directories option
  1900. # # directory = "/var/cache/apt/archives"
  1901. #
  1902. # ## Directories to gather stats about.
  1903. # ## This accept standard unit glob matching rules, but with the addition of
  1904. # ## ** as a "super asterisk". ie:
  1905. # ## /var/log/** -> recursively find all directories in /var/log and count files in each directories
  1906. # ## /var/log/*/* -> find all directories with a parent dir in /var/log and count files in each directories
  1907. # ## /var/log -> count all files in /var/log and all of its subdirectories
  1908. # directories = ["/var/cache/apt/archives"]
  1909. #
  1910. # ## Only count files that match the name pattern. Defaults to "*".
  1911. # name = "*.deb"
  1912. #
  1913. # ## Count files in subdirectories. Defaults to true.
  1914. # recursive = false
  1915. #
  1916. # ## Only count regular files. Defaults to true.
  1917. # regular_only = true
  1918. #
  1919. # ## Only count files that are at least this size. If size is
  1920. # ## a negative number, only count files that are smaller than the
  1921. # ## absolute value of size. Acceptable units are B, KiB, MiB, KB, ...
  1922. # ## Without quotes and units, interpreted as size in bytes.
  1923. # size = "0B"
  1924. #
  1925. # ## Only count files that have not been touched for at least this
  1926. # ## duration. If mtime is negative, only count files that have been
  1927. # ## touched in this duration. Defaults to "0s".
  1928. # mtime = "0s"
  1929. # # Read stats about given file(s)
  1930. # [[inputs.filestat]]
  1931. # ## Files to gather stats about.
  1932. # ## These accept standard unix glob matching rules, but with the addition of
  1933. # ## ** as a "super asterisk". ie:
  1934. # ## "/var/log/**.log" -> recursively find all .log files in /var/log
  1935. # ## "/var/log/*/*.log" -> find all .log files with a parent dir in /var/log
  1936. # ## "/var/log/apache.log" -> just tail the apache log file
  1937. # ##
  1938. # ## See https://github.com/gobwas/glob for more examples
  1939. # ##
  1940. # files = ["/var/log/**.log"]
  1941. # ## If true, read the entire file and calculate an md5 checksum.
  1942. # md5 = false
  1943. # # Read metrics exposed by fluentd in_monitor plugin
  1944. # [[inputs.fluentd]]
  1945. # ## This plugin reads information exposed by fluentd (using /api/plugins.json endpoint).
  1946. # ##
  1947. # ## Endpoint:
  1948. # ## - only one URI is allowed
  1949. # ## - https is not supported
  1950. # endpoint = "http://localhost:24220/api/plugins.json"
  1951. #
  1952. # ## Define which plugins have to be excluded (based on "type" field - e.g. monitor_agent)
  1953. # exclude = [
  1954. # "monitor_agent",
  1955. # "dummy",
  1956. # ]
  1957. # # Read flattened metrics from one or more GrayLog HTTP endpoints
  1958. # [[inputs.graylog]]
  1959. # ## API endpoint, currently supported API:
  1960. # ##
  1961. # ## - multiple (Ex http://<host>:12900/system/metrics/multiple)
  1962. # ## - namespace (Ex http://<host>:12900/system/metrics/namespace/{namespace})
  1963. # ##
  1964. # ## For namespace endpoint, the metrics array will be ignored for that call.
  1965. # ## Endpoint can contain namespace and multiple type calls.
  1966. # ##
  1967. # ## Please check http://[graylog-server-ip]:12900/api-browser for full list
  1968. # ## of endpoints
  1969. # servers = [
  1970. # "http://[graylog-server-ip]:12900/system/metrics/multiple",
  1971. # ]
  1972. #
  1973. # ## Metrics list
  1974. # ## List of metrics can be found on Graylog webservice documentation.
  1975. # ## Or by hitting the the web service api at:
  1976. # ## http://[graylog-host]:12900/system/metrics
  1977. # metrics = [
  1978. # "jvm.cl.loaded",
  1979. # "jvm.memory.pools.Metaspace.committed"
  1980. # ]
  1981. #
  1982. # ## Username and password
  1983. # username = ""
  1984. # password = ""
  1985. #
  1986. # ## Optional TLS Config
  1987. # # tls_ca = "/etc/telegraf/ca.pem"
  1988. # # tls_cert = "/etc/telegraf/cert.pem"
  1989. # # tls_key = "/etc/telegraf/key.pem"
  1990. # ## Use TLS but skip chain & host verification
  1991. # # insecure_skip_verify = false
  1992. # # Read metrics of haproxy, via socket or csv stats page
  1993. # [[inputs.haproxy]]
  1994. # ## An array of address to gather stats about. Specify an ip on hostname
  1995. # ## with optional port. ie localhost, 10.10.3.33:1936, etc.
  1996. # ## Make sure you specify the complete path to the stats endpoint
  1997. # ## including the protocol, ie http://10.10.3.33:1936/haproxy?stats
  1998. #
  1999. # ## If no servers are specified, then default to 127.0.0.1:1936/haproxy?stats
  2000. # servers = ["http://myhaproxy.com:1936/haproxy?stats"]
  2001. #
  2002. # ## Credentials for basic HTTP authentication
  2003. # # username = "admin"
  2004. # # password = "admin"
  2005. #
  2006. # ## You can also use local socket with standard wildcard globbing.
  2007. # ## Server address not starting with 'http' will be treated as a possible
  2008. # ## socket, so both examples below are valid.
  2009. # # servers = ["socket:/run/haproxy/admin.sock", "/run/haproxy/*.sock"]
  2010. #
  2011. # ## By default, some of the fields are renamed from what haproxy calls them.
  2012. # ## Setting this option to true results in the plugin keeping the original
  2013. # ## field names.
  2014. # # keep_field_names = false
  2015. #
  2016. # ## Optional TLS Config
  2017. # # tls_ca = "/etc/telegraf/ca.pem"
  2018. # # tls_cert = "/etc/telegraf/cert.pem"
  2019. # # tls_key = "/etc/telegraf/key.pem"
  2020. # ## Use TLS but skip chain & host verification
  2021. # # insecure_skip_verify = false
  2022. # # Monitor disks' temperatures using hddtemp
  2023. # [[inputs.hddtemp]]
  2024. # ## By default, telegraf gathers temps data from all disks detected by the
  2025. # ## hddtemp.
  2026. # ##
  2027. # ## Only collect temps from the selected disks.
  2028. # ##
  2029. # ## A * as the device name will return the temperature values of all disks.
  2030. # ##
  2031. # # address = "127.0.0.1:7634"
  2032. # # devices = ["sda", "*"]
  2033. # # Read formatted metrics from one or more HTTP endpoints
  2034. # [[inputs.http]]
  2035. # ## One or more URLs from which to read formatted metrics
  2036. # urls = [
  2037. # "http://localhost/metrics"
  2038. # ]
  2039. #
  2040. # ## HTTP method
  2041. # # method = "GET"
  2042. #
  2043. # ## Optional HTTP headers
  2044. # # headers = {"X-Special-Header" = "Special-Value"}
  2045. #
  2046. # ## Optional HTTP Basic Auth Credentials
  2047. # # username = "username"
  2048. # # password = "pa$$word"
  2049. #
  2050. # ## HTTP entity-body to send with POST/PUT requests.
  2051. # # body = ""
  2052. #
  2053. # ## HTTP Content-Encoding for write request body, can be set to "gzip" to
  2054. # ## compress body or "identity" to apply no encoding.
  2055. # # content_encoding = "identity"
  2056. #
  2057. # ## Optional TLS Config
  2058. # # tls_ca = "/etc/telegraf/ca.pem"
  2059. # # tls_cert = "/etc/telegraf/cert.pem"
  2060. # # tls_key = "/etc/telegraf/key.pem"
  2061. # ## Use TLS but skip chain & host verification
  2062. # # insecure_skip_verify = false
  2063. #
  2064. # ## Amount of time allowed to complete the HTTP request
  2065. # # timeout = "5s"
  2066. #
  2067. # ## Data format to consume.
  2068. # ## Each data format has its own unique set of configuration options, read
  2069. # ## more about them here:
  2070. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  2071. # # data_format = "influx"
  2072. # # HTTP/HTTPS request given an address a method and a timeout
  2073. # [[inputs.http_response]]
  2074. # ## Server address (default http://localhost)
  2075. # # address = "http://localhost"
  2076. #
  2077. # ## Set http_proxy (telegraf uses the system wide proxy settings if it's is not set)
  2078. # # http_proxy = "http://localhost:8888"
  2079. #
  2080. # ## Set response_timeout (default 5 seconds)
  2081. # # response_timeout = "5s"
  2082. #
  2083. # ## HTTP Request Method
  2084. # # method = "GET"
  2085. #
  2086. # ## Whether to follow redirects from the server (defaults to false)
  2087. # # follow_redirects = false
  2088. #
  2089. # ## Optional HTTP Request Body
  2090. # # body = '''
  2091. # # {'fake':'data'}
  2092. # # '''
  2093. #
  2094. # ## Optional substring or regex match in body of the response
  2095. # # response_string_match = "\"service_status\": \"up\""
  2096. # # response_string_match = "ok"
  2097. # # response_string_match = "\".*_status\".?:.?\"up\""
  2098. #
  2099. # ## Optional TLS Config
  2100. # # tls_ca = "/etc/telegraf/ca.pem"
  2101. # # tls_cert = "/etc/telegraf/cert.pem"
  2102. # # tls_key = "/etc/telegraf/key.pem"
  2103. # ## Use TLS but skip chain & host verification
  2104. # # insecure_skip_verify = false
  2105. #
  2106. # ## HTTP Request Headers (all values must be strings)
  2107. # # [inputs.http_response.headers]
  2108. # # Host = "github.com"
  2109. # # Read flattened metrics from one or more JSON HTTP endpoints
  2110. # [[inputs.httpjson]]
  2111. # ## NOTE This plugin only reads numerical measurements, strings and booleans
  2112. # ## will be ignored.
  2113. #
  2114. # ## Name for the service being polled. Will be appended to the name of the
  2115. # ## measurement e.g. httpjson_webserver_stats
  2116. # ##
  2117. # ## Deprecated (1.3.0): Use name_override, name_suffix, name_prefix instead.
  2118. # name = "webserver_stats"
  2119. #
  2120. # ## URL of each server in the service's cluster
  2121. # servers = [
  2122. # "http://localhost:9999/stats/",
  2123. # "http://localhost:9998/stats/",
  2124. # ]
  2125. # ## Set response_timeout (default 5 seconds)
  2126. # response_timeout = "5s"
  2127. #
  2128. # ## HTTP method to use: GET or POST (case-sensitive)
  2129. # method = "GET"
  2130. #
  2131. # ## List of tag names to extract from top-level of JSON server response
  2132. # # tag_keys = [
  2133. # # "my_tag_1",
  2134. # # "my_tag_2"
  2135. # # ]
  2136. #
  2137. # ## Optional TLS Config
  2138. # # tls_ca = "/etc/telegraf/ca.pem"
  2139. # # tls_cert = "/etc/telegraf/cert.pem"
  2140. # # tls_key = "/etc/telegraf/key.pem"
  2141. # ## Use TLS but skip chain & host verification
  2142. # # insecure_skip_verify = false
  2143. #
  2144. # ## HTTP parameters (all values must be strings). For "GET" requests, data
  2145. # ## will be included in the query. For "POST" requests, data will be included
  2146. # ## in the request body as "x-www-form-urlencoded".
  2147. # # [inputs.httpjson.parameters]
  2148. # # event_type = "cpu_spike"
  2149. # # threshold = "0.75"
  2150. #
  2151. # ## HTTP Headers (all values must be strings)
  2152. # # [inputs.httpjson.headers]
  2153. # # X-Auth-Token = "my-xauth-token"
  2154. # # apiVersion = "v1"
  2155. # # Gather Icinga2 status
  2156. # [[inputs.icinga2]]
  2157. # ## Required Icinga2 server address (default: "https://localhost:5665")
  2158. # # server = "https://localhost:5665"
  2159. #
  2160. # ## Required Icinga2 object type ("services" or "hosts, default "services")
  2161. # # object_type = "services"
  2162. #
  2163. # ## Credentials for basic HTTP authentication
  2164. # # username = "admin"
  2165. # # password = "admin"
  2166. #
  2167. # ## Maximum time to receive response.
  2168. # # response_timeout = "5s"
  2169. #
  2170. # ## Optional TLS Config
  2171. # # tls_ca = "/etc/telegraf/ca.pem"
  2172. # # tls_cert = "/etc/telegraf/cert.pem"
  2173. # # tls_key = "/etc/telegraf/key.pem"
  2174. # ## Use TLS but skip chain & host verification
  2175. # # insecure_skip_verify = true
  2176. # # Read InfluxDB-formatted JSON metrics from one or more HTTP endpoints
  2177. # [[inputs.influxdb]]
  2178. # ## Works with InfluxDB debug endpoints out of the box,
  2179. # ## but other services can use this format too.
  2180. # ## See the influxdb plugin's README for more details.
  2181. #
  2182. # ## Multiple URLs from which to read InfluxDB-formatted JSON
  2183. # ## Default is "http://localhost:8086/debug/vars".
  2184. # urls = [
  2185. # "http://localhost:8086/debug/vars"
  2186. # ]
  2187. #
  2188. # ## Optional TLS Config
  2189. # # tls_ca = "/etc/telegraf/ca.pem"
  2190. # # tls_cert = "/etc/telegraf/cert.pem"
  2191. # # tls_key = "/etc/telegraf/key.pem"
  2192. # ## Use TLS but skip chain & host verification
  2193. # # insecure_skip_verify = false
  2194. #
  2195. # ## http request & header timeout
  2196. # timeout = "5s"
  2197. # # Collect statistics about itself
  2198. # [[inputs.internal]]
  2199. # ## If true, collect telegraf memory stats.
  2200. # # collect_memstats = true
  2201. # # This plugin gathers interrupts data from /proc/interrupts and /proc/softirqs.
  2202. # [[inputs.interrupts]]
  2203. # ## When set to true, cpu metrics are tagged with the cpu. Otherwise cpu is
  2204. # ## stored as a field.
  2205. # ##
  2206. # ## The default is false for backwards compatibility, and will be changed to
  2207. # ## true in a future version. It is recommended to set to true on new
  2208. # ## deployments.
  2209. # # cpu_as_tag = false
  2210. #
  2211. # ## To filter which IRQs to collect, make use of tagpass / tagdrop, i.e.
  2212. # # [inputs.interrupts.tagdrop]
  2213. # # irq = [ "NET_RX", "TASKLET" ]
  2214. # # Read metrics from the bare metal servers via IPMI
  2215. # [[inputs.ipmi_sensor]]
  2216. # ## optionally specify the path to the ipmitool executable
  2217. # # path = "/usr/bin/ipmitool"
  2218. # ##
  2219. # ## optionally force session privilege level. Can be CALLBACK, USER, OPERATOR, ADMINISTRATOR
  2220. # # privilege = "ADMINISTRATOR"
  2221. # ##
  2222. # ## optionally specify one or more servers via a url matching
  2223. # ## [username[:password]@][protocol[(address)]]
  2224. # ## e.g.
  2225. # ## root:passwd@lan(127.0.0.1)
  2226. # ##
  2227. # ## if no servers are specified, local machine sensor stats will be queried
  2228. # ##
  2229. # # servers = ["USERID:PASSW0RD@lan(192.168.1.1)"]
  2230. #
  2231. # ## Recommended: use metric 'interval' that is a multiple of 'timeout' to avoid
  2232. # ## gaps or overlap in pulled data
  2233. # interval = "30s"
  2234. #
  2235. # ## Timeout for the ipmitool command to complete
  2236. # timeout = "20s"
  2237. #
  2238. # ## Schema Version: (Optional, defaults to version 1)
  2239. # metric_version = 2
  2240. # # Gather packets and bytes counters from Linux ipsets
  2241. # [[inputs.ipset]]
  2242. # ## By default, we only show sets which have already matched at least 1 packet.
  2243. # ## set include_unmatched_sets = true to gather them all.
  2244. # include_unmatched_sets = false
  2245. # ## Adjust your sudo settings appropriately if using this option ("sudo ipset save")
  2246. # use_sudo = false
  2247. # ## The default timeout of 1s for ipset execution can be overridden here:
  2248. # # timeout = "1s"
  2249. # # Gather packets and bytes throughput from iptables
  2250. # [[inputs.iptables]]
  2251. # ## iptables require root access on most systems.
  2252. # ## Setting 'use_sudo' to true will make use of sudo to run iptables.
  2253. # ## Users must configure sudo to allow telegraf user to run iptables with no password.
  2254. # ## iptables can be restricted to only list command "iptables -nvL".
  2255. # use_sudo = false
  2256. # ## Setting 'use_lock' to true runs iptables with the "-w" option.
  2257. # ## Adjust your sudo settings appropriately if using this option ("iptables -wnvl")
  2258. # use_lock = false
  2259. # ## Define an alternate executable, such as "ip6tables". Default is "iptables".
  2260. # # binary = "ip6tables"
  2261. # ## defines the table to monitor:
  2262. # table = "filter"
  2263. # ## defines the chains to monitor.
  2264. # ## NOTE: iptables rules without a comment will not be monitored.
  2265. # ## Read the plugin documentation for more information.
  2266. # chains = [ "INPUT" ]
  2267. # # Collect virtual and real server stats from Linux IPVS
  2268. # [[inputs.ipvs]]
  2269. # # no configuration
  2270. # # Read jobs and cluster metrics from Jenkins instances
  2271. # [[inputs.jenkins]]
  2272. # ## The Jenkins URL
  2273. # url = "http://my-jenkins-instance:8080"
  2274. # # username = "admin"
  2275. # # password = "admin"
  2276. #
  2277. # ## Set response_timeout
  2278. # response_timeout = "5s"
  2279. #
  2280. # ## Optional TLS Config
  2281. # # tls_ca = "/etc/telegraf/ca.pem"
  2282. # # tls_cert = "/etc/telegraf/cert.pem"
  2283. # # tls_key = "/etc/telegraf/key.pem"
  2284. # ## Use SSL but skip chain & host verification
  2285. # # insecure_skip_verify = false
  2286. #
  2287. # ## Optional Max Job Build Age filter
  2288. # ## Default 1 hour, ignore builds older than max_build_age
  2289. # # max_build_age = "1h"
  2290. #
  2291. # ## Optional Sub Job Depth filter
  2292. # ## Jenkins can have unlimited layer of sub jobs
  2293. # ## This config will limit the layers of pulling, default value 0 means
  2294. # ## unlimited pulling until no more sub jobs
  2295. # # max_subjob_depth = 0
  2296. #
  2297. # ## Optional Sub Job Per Layer
  2298. # ## In workflow-multibranch-plugin, each branch will be created as a sub job.
  2299. # ## This config will limit to call only the lasted branches in each layer,
  2300. # ## empty will use default value 10
  2301. # # max_subjob_per_layer = 10
  2302. #
  2303. # ## Jobs to exclude from gathering
  2304. # # job_exclude = [ "job1", "job2/subjob1/subjob2", "job3/*"]
  2305. #
  2306. # ## Nodes to exclude from gathering
  2307. # # node_exclude = [ "node1", "node2" ]
  2308. #
  2309. # ## Worker pool for jenkins plugin only
  2310. # ## Empty this field will use default value 5
  2311. # # max_connections = 5
  2312. # # Read JMX metrics through Jolokia
  2313. # [[inputs.jolokia]]
  2314. # # DEPRECATED: the jolokia plugin has been deprecated in favor of the
  2315. # # jolokia2 plugin
  2316. # # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/jolokia2
  2317. #
  2318. # ## This is the context root used to compose the jolokia url
  2319. # ## NOTE that Jolokia requires a trailing slash at the end of the context root
  2320. # ## NOTE that your jolokia security policy must allow for POST requests.
  2321. # context = "/jolokia/"
  2322. #
  2323. # ## This specifies the mode used
  2324. # # mode = "proxy"
  2325. # #
  2326. # ## When in proxy mode this section is used to specify further
  2327. # ## proxy address configurations.
  2328. # ## Remember to change host address to fit your environment.
  2329. # # [inputs.jolokia.proxy]
  2330. # # host = "127.0.0.1"
  2331. # # port = "8080"
  2332. #
  2333. # ## Optional http timeouts
  2334. # ##
  2335. # ## response_header_timeout, if non-zero, specifies the amount of time to wait
  2336. # ## for a server's response headers after fully writing the request.
  2337. # # response_header_timeout = "3s"
  2338. # ##
  2339. # ## client_timeout specifies a time limit for requests made by this client.
  2340. # ## Includes connection time, any redirects, and reading the response body.
  2341. # # client_timeout = "4s"
  2342. #
  2343. # ## Attribute delimiter
  2344. # ##
  2345. # ## When multiple attributes are returned for a single
  2346. # ## [inputs.jolokia.metrics], the field name is a concatenation of the metric
  2347. # ## name, and the attribute name, separated by the given delimiter.
  2348. # # delimiter = "_"
  2349. #
  2350. # ## List of servers exposing jolokia read service
  2351. # [[inputs.jolokia.servers]]
  2352. # name = "as-server-01"
  2353. # host = "127.0.0.1"
  2354. # port = "8080"
  2355. # # username = "myuser"
  2356. # # password = "mypassword"
  2357. #
  2358. # ## List of metrics collected on above servers
  2359. # ## Each metric consists in a name, a jmx path and either
  2360. # ## a pass or drop slice attribute.
  2361. # ## This collect all heap memory usage metrics.
  2362. # [[inputs.jolokia.metrics]]
  2363. # name = "heap_memory_usage"
  2364. # mbean = "java.lang:type=Memory"
  2365. # attribute = "HeapMemoryUsage"
  2366. #
  2367. # ## This collect thread counts metrics.
  2368. # [[inputs.jolokia.metrics]]
  2369. # name = "thread_count"
  2370. # mbean = "java.lang:type=Threading"
  2371. # attribute = "TotalStartedThreadCount,ThreadCount,DaemonThreadCount,PeakThreadCount"
  2372. #
  2373. # ## This collect number of class loaded/unloaded counts metrics.
  2374. # [[inputs.jolokia.metrics]]
  2375. # name = "class_count"
  2376. # mbean = "java.lang:type=ClassLoading"
  2377. # attribute = "LoadedClassCount,UnloadedClassCount,TotalLoadedClassCount"
  2378. # # Read JMX metrics from a Jolokia REST agent endpoint
  2379. # [[inputs.jolokia2_agent]]
  2380. # # default_tag_prefix = ""
  2381. # # default_field_prefix = ""
  2382. # # default_field_separator = "."
  2383. #
  2384. # # Add agents URLs to query
  2385. # urls = ["http://localhost:8080/jolokia"]
  2386. # # username = ""
  2387. # # password = ""
  2388. # # response_timeout = "5s"
  2389. #
  2390. # ## Optional TLS config
  2391. # # tls_ca = "/var/private/ca.pem"
  2392. # # tls_cert = "/var/private/client.pem"
  2393. # # tls_key = "/var/private/client-key.pem"
  2394. # # insecure_skip_verify = false
  2395. #
  2396. # ## Add metrics to read
  2397. # [[inputs.jolokia2_agent.metric]]
  2398. # name = "java_runtime"
  2399. # mbean = "java.lang:type=Runtime"
  2400. # paths = ["Uptime"]
  2401. # # Read JMX metrics from a Jolokia REST proxy endpoint
  2402. # [[inputs.jolokia2_proxy]]
  2403. # # default_tag_prefix = ""
  2404. # # default_field_prefix = ""
  2405. # # default_field_separator = "."
  2406. #
  2407. # ## Proxy agent
  2408. # url = "http://localhost:8080/jolokia"
  2409. # # username = ""
  2410. # # password = ""
  2411. # # response_timeout = "5s"
  2412. #
  2413. # ## Optional TLS config
  2414. # # tls_ca = "/var/private/ca.pem"
  2415. # # tls_cert = "/var/private/client.pem"
  2416. # # tls_key = "/var/private/client-key.pem"
  2417. # # insecure_skip_verify = false
  2418. #
  2419. # ## Add proxy targets to query
  2420. # # default_target_username = ""
  2421. # # default_target_password = ""
  2422. # [[inputs.jolokia2_proxy.target]]
  2423. # url = "service:jmx:rmi:///jndi/rmi://targethost:9999/jmxrmi"
  2424. # # username = ""
  2425. # # password = ""
  2426. #
  2427. # ## Add metrics to read
  2428. # [[inputs.jolokia2_proxy.metric]]
  2429. # name = "java_runtime"
  2430. # mbean = "java.lang:type=Runtime"
  2431. # paths = ["Uptime"]
  2432. # # Read Kapacitor-formatted JSON metrics from one or more HTTP endpoints
  2433. # [[inputs.kapacitor]]
  2434. # ## Multiple URLs from which to read Kapacitor-formatted JSON
  2435. # ## Default is "http://localhost:9092/kapacitor/v1/debug/vars".
  2436. # urls = [
  2437. # "http://localhost:9092/kapacitor/v1/debug/vars"
  2438. # ]
  2439. #
  2440. # ## Time limit for http requests
  2441. # timeout = "5s"
  2442. #
  2443. # ## Optional TLS Config
  2444. # # tls_ca = "/etc/telegraf/ca.pem"
  2445. # # tls_cert = "/etc/telegraf/cert.pem"
  2446. # # tls_key = "/etc/telegraf/key.pem"
  2447. # ## Use TLS but skip chain & host verification
  2448. # # insecure_skip_verify = false
  2449. # # Get kernel statistics from /proc/vmstat
  2450. # [[inputs.kernel_vmstat]]
  2451. # # no configuration
  2452. # # Read status information from one or more Kibana servers
  2453. # [[inputs.kibana]]
  2454. # ## specify a list of one or more Kibana servers
  2455. # servers = ["http://localhost:5601"]
  2456. #
  2457. # ## Timeout for HTTP requests
  2458. # timeout = "5s"
  2459. #
  2460. # ## HTTP Basic Auth credentials
  2461. # # username = "username"
  2462. # # password = "pa$$word"
  2463. #
  2464. # ## Optional TLS Config
  2465. # # tls_ca = "/etc/telegraf/ca.pem"
  2466. # # tls_cert = "/etc/telegraf/cert.pem"
  2467. # # tls_key = "/etc/telegraf/key.pem"
  2468. # ## Use TLS but skip chain & host verification
  2469. # # insecure_skip_verify = false
  2470. # # Read metrics from the Kubernetes api
  2471. # [[inputs.kube_inventory]]
  2472. # ## URL for the Kubernetes API
  2473. # url = "https://127.0.0.1"
  2474. #
  2475. # ## Namespace to use. Set to "" to use all namespaces.
  2476. # # namespace = "default"
  2477. #
  2478. # ## Use bearer token for authorization. ('bearer_token' takes priority)
  2479. # # bearer_token = "/path/to/bearer/token"
  2480. # ## OR
  2481. # # bearer_token_string = "abc_123"
  2482. #
  2483. # ## Set response_timeout (default 5 seconds)
  2484. # # response_timeout = "5s"
  2485. #
  2486. # ## Optional Resources to exclude from gathering
  2487. # ## Leave them with blank with try to gather everything available.
  2488. # ## Values can be - "daemonsets", deployments", "nodes", "persistentvolumes",
  2489. # ## "persistentvolumeclaims", "pods", "statefulsets"
  2490. # # resource_exclude = [ "deployments", "nodes", "statefulsets" ]
  2491. #
  2492. # ## Optional Resources to include when gathering
  2493. # ## Overrides resource_exclude if both set.
  2494. # # resource_include = [ "deployments", "nodes", "statefulsets" ]
  2495. #
  2496. # ## Optional TLS Config
  2497. # # tls_ca = "/path/to/cafile"
  2498. # # tls_cert = "/path/to/certfile"
  2499. # # tls_key = "/path/to/keyfile"
  2500. # ## Use TLS but skip chain & host verification
  2501. # # insecure_skip_verify = false
  2502. # # Read metrics from the kubernetes kubelet api
  2503. # [[inputs.kubernetes]]
  2504. # ## URL for the kubelet
  2505. # url = "http://127.0.0.1:10255"
  2506. #
  2507. # ## Use bearer token for authorization. ('bearer_token' takes priority)
  2508. # # bearer_token = "/path/to/bearer/token"
  2509. # ## OR
  2510. # # bearer_token_string = "abc_123"
  2511. #
  2512. # ## Set response_timeout (default 5 seconds)
  2513. # # response_timeout = "5s"
  2514. #
  2515. # ## Optional TLS Config
  2516. # # tls_ca = /path/to/cafile
  2517. # # tls_cert = /path/to/certfile
  2518. # # tls_key = /path/to/keyfile
  2519. # ## Use TLS but skip chain & host verification
  2520. # # insecure_skip_verify = false
  2521. # # Read metrics from a LeoFS Server via SNMP
  2522. # [[inputs.leofs]]
  2523. # ## An array of URLs of the form:
  2524. # ## host [ ":" port]
  2525. # servers = ["127.0.0.1:4020"]
  2526. # # Provides Linux sysctl fs metrics
  2527. # [[inputs.linux_sysctl_fs]]
  2528. # # no configuration
  2529. # # Read metrics from local Lustre service on OST, MDS
  2530. # [[inputs.lustre2]]
  2531. # ## An array of /proc globs to search for Lustre stats
  2532. # ## If not specified, the default will work on Lustre 2.5.x
  2533. # ##
  2534. # # ost_procfiles = [
  2535. # # "/proc/fs/lustre/obdfilter/*/stats",
  2536. # # "/proc/fs/lustre/osd-ldiskfs/*/stats",
  2537. # # "/proc/fs/lustre/obdfilter/*/job_stats",
  2538. # # ]
  2539. # # mds_procfiles = [
  2540. # # "/proc/fs/lustre/mdt/*/md_stats",
  2541. # # "/proc/fs/lustre/mdt/*/job_stats",
  2542. # # ]
  2543. # # Gathers metrics from the /3.0/reports MailChimp API
  2544. # [[inputs.mailchimp]]
  2545. # ## MailChimp API key
  2546. # ## get from https://admin.mailchimp.com/account/api/
  2547. # api_key = "" # required
  2548. # ## Reports for campaigns sent more than days_old ago will not be collected.
  2549. # ## 0 means collect all.
  2550. # days_old = 0
  2551. # ## Campaign ID to get, if empty gets all campaigns, this option overrides days_old
  2552. # # campaign_id = ""
  2553. # # Read metrics from one or many mcrouter servers
  2554. # [[inputs.mcrouter]]
  2555. # ## An array of address to gather stats about. Specify an ip or hostname
  2556. # ## with port. ie tcp://localhost:11211, tcp://10.0.0.1:11211, etc.
  2557. # servers = ["tcp://localhost:11211", "unix:///var/run/mcrouter.sock"]
  2558. #
  2559. # ## Timeout for metric collections from all servers. Minimum timeout is "1s".
  2560. # # timeout = "5s"
  2561. # # Read metrics from one or many memcached servers
  2562. # [[inputs.memcached]]
  2563. # ## An array of address to gather stats about. Specify an ip on hostname
  2564. # ## with optional port. ie localhost, 10.0.0.1:11211, etc.
  2565. # servers = ["localhost:11211"]
  2566. # # unix_sockets = ["/var/run/memcached.sock"]
  2567. # # Telegraf plugin for gathering metrics from N Mesos masters
  2568. # [[inputs.mesos]]
  2569. # ## Timeout, in ms.
  2570. # timeout = 100
  2571. # ## A list of Mesos masters.
  2572. # masters = ["http://localhost:5050"]
  2573. # ## Master metrics groups to be collected, by default, all enabled.
  2574. # master_collections = [
  2575. # "resources",
  2576. # "master",
  2577. # "system",
  2578. # "agents",
  2579. # "frameworks",
  2580. # "tasks",
  2581. # "messages",
  2582. # "evqueue",
  2583. # "registrar",
  2584. # ]
  2585. # ## A list of Mesos slaves, default is []
  2586. # # slaves = []
  2587. # ## Slave metrics groups to be collected, by default, all enabled.
  2588. # # slave_collections = [
  2589. # # "resources",
  2590. # # "agent",
  2591. # # "system",
  2592. # # "executors",
  2593. # # "tasks",
  2594. # # "messages",
  2595. # # ]
  2596. #
  2597. # ## Optional TLS Config
  2598. # # tls_ca = "/etc/telegraf/ca.pem"
  2599. # # tls_cert = "/etc/telegraf/cert.pem"
  2600. # # tls_key = "/etc/telegraf/key.pem"
  2601. # ## Use TLS but skip chain & host verification
  2602. # # insecure_skip_verify = false
  2603. # # Collects scores from a minecraft server's scoreboard using the RCON protocol
  2604. # [[inputs.minecraft]]
  2605. # ## server address for minecraft
  2606. # # server = "localhost"
  2607. # ## port for RCON
  2608. # # port = "25575"
  2609. # ## password RCON for mincraft server
  2610. # # password = ""
  2611. # # Read metrics from one or many MongoDB servers
  2612. # [[inputs.mongodb]]
  2613. # ## An array of URLs of the form:
  2614. # ## "mongodb://" [user ":" pass "@"] host [ ":" port]
  2615. # ## For example:
  2616. # ## mongodb://user:auth_key@10.10.3.30:27017,
  2617. # ## mongodb://10.10.3.33:18832,
  2618. # servers = ["mongodb://127.0.0.1:27017"]
  2619. #
  2620. # ## When true, collect per database stats
  2621. # # gather_perdb_stats = false
  2622. #
  2623. # ## Optional TLS Config
  2624. # # tls_ca = "/etc/telegraf/ca.pem"
  2625. # # tls_cert = "/etc/telegraf/cert.pem"
  2626. # # tls_key = "/etc/telegraf/key.pem"
  2627. # ## Use TLS but skip chain & host verification
  2628. # # insecure_skip_verify = false
  2629. # # Aggregates the contents of multiple files into a single point
  2630. # [[inputs.multifile]]
  2631. # ## Base directory where telegraf will look for files.
  2632. # ## Omit this option to use absolute paths.
  2633. # base_dir = "/sys/bus/i2c/devices/1-0076/iio:device0"
  2634. #
  2635. # ## If true, Telegraf discard all data when a single file can't be read.
  2636. # ## Else, Telegraf omits the field generated from this file.
  2637. # # fail_early = true
  2638. #
  2639. # ## Files to parse each interval.
  2640. # [[inputs.multifile.file]]
  2641. # file = "in_pressure_input"
  2642. # dest = "pressure"
  2643. # conversion = "float"
  2644. # [[inputs.multifile.file]]
  2645. # file = "in_temp_input"
  2646. # dest = "temperature"
  2647. # conversion = "float(3)"
  2648. # [[inputs.multifile.file]]
  2649. # file = "in_humidityrelative_input"
  2650. # dest = "humidityrelative"
  2651. # conversion = "float(3)"
  2652. # # Read metrics from one or many mysql servers
  2653. # [[inputs.mysql]]
  2654. # ## specify servers via a url matching:
  2655. # ## [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify|custom]]
  2656. # ## see https://github.com/go-sql-driver/mysql#dsn-data-source-name
  2657. # ## e.g.
  2658. # ## servers = ["user:passwd@tcp(127.0.0.1:3306)/?tls=false"]
  2659. # ## servers = ["user@tcp(127.0.0.1:3306)/?tls=false"]
  2660. # #
  2661. # ## If no servers are specified, then localhost is used as the host.
  2662. # servers = ["tcp(127.0.0.1:3306)/"]
  2663. #
  2664. # ## Selects the metric output format.
  2665. # ##
  2666. # ## This option exists to maintain backwards compatibility, if you have
  2667. # ## existing metrics do not set or change this value until you are ready to
  2668. # ## migrate to the new format.
  2669. # ##
  2670. # ## If you do not have existing metrics from this plugin set to the latest
  2671. # ## version.
  2672. # ##
  2673. # ## Telegraf >=1.6: metric_version = 2
  2674. # ## <1.6: metric_version = 1 (or unset)
  2675. # metric_version = 2
  2676. #
  2677. # ## the limits for metrics form perf_events_statements
  2678. # perf_events_statements_digest_text_limit = 120
  2679. # perf_events_statements_limit = 250
  2680. # perf_events_statements_time_limit = 86400
  2681. # #
  2682. # ## if the list is empty, then metrics are gathered from all databasee tables
  2683. # table_schema_databases = []
  2684. # #
  2685. # ## gather metrics from INFORMATION_SCHEMA.TABLES for databases provided above list
  2686. # gather_table_schema = false
  2687. # #
  2688. # ## gather thread state counts from INFORMATION_SCHEMA.PROCESSLIST
  2689. # gather_process_list = true
  2690. # #
  2691. # ## gather user statistics from INFORMATION_SCHEMA.USER_STATISTICS
  2692. # gather_user_statistics = true
  2693. # #
  2694. # ## gather auto_increment columns and max values from information schema
  2695. # gather_info_schema_auto_inc = true
  2696. # #
  2697. # ## gather metrics from INFORMATION_SCHEMA.INNODB_METRICS
  2698. # gather_innodb_metrics = true
  2699. # #
  2700. # ## gather metrics from SHOW SLAVE STATUS command output
  2701. # gather_slave_status = true
  2702. # #
  2703. # ## gather metrics from SHOW BINARY LOGS command output
  2704. # gather_binary_logs = false
  2705. # #
  2706. # ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_TABLE
  2707. # gather_table_io_waits = false
  2708. # #
  2709. # ## gather metrics from PERFORMANCE_SCHEMA.TABLE_LOCK_WAITS
  2710. # gather_table_lock_waits = false
  2711. # #
  2712. # ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_INDEX_USAGE
  2713. # gather_index_io_waits = false
  2714. # #
  2715. # ## gather metrics from PERFORMANCE_SCHEMA.EVENT_WAITS
  2716. # gather_event_waits = false
  2717. # #
  2718. # ## gather metrics from PERFORMANCE_SCHEMA.FILE_SUMMARY_BY_EVENT_NAME
  2719. # gather_file_events_stats = false
  2720. # #
  2721. # ## gather metrics from PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_DIGEST
  2722. # gather_perf_events_statements = false
  2723. # #
  2724. # ## Some queries we may want to run less often (such as SHOW GLOBAL VARIABLES)
  2725. # interval_slow = "30m"
  2726. #
  2727. # ## Optional TLS Config (will be used if tls=custom parameter specified in server uri)
  2728. # # tls_ca = "/etc/telegraf/ca.pem"
  2729. # # tls_cert = "/etc/telegraf/cert.pem"
  2730. # # tls_key = "/etc/telegraf/key.pem"
  2731. # ## Use TLS but skip chain & host verification
  2732. # # insecure_skip_verify = false
  2733. # # Provides metrics about the state of a NATS server
  2734. # [[inputs.nats]]
  2735. # ## The address of the monitoring endpoint of the NATS server
  2736. # server = "http://localhost:8222"
  2737. #
  2738. # ## Maximum time to receive response
  2739. # # response_timeout = "5s"
  2740. # # Neptune Apex data collector
  2741. # [[inputs.neptune_apex]]
  2742. # ## The Neptune Apex plugin reads the publicly available status.xml data from a local Apex.
  2743. # ## Measurements will be logged under "apex".
  2744. #
  2745. # ## The base URL of the local Apex(es). If you specify more than one server, they will
  2746. # ## be differentiated by the "source" tag.
  2747. # servers = [
  2748. # "http://apex.local",
  2749. # ]
  2750. #
  2751. # ## The response_timeout specifies how long to wait for a reply from the Apex.
  2752. # #response_timeout = "5s"
  2753. # # Read metrics about network interface usage
  2754. # [[inputs.net]]
  2755. # ## By default, telegraf gathers stats from any up interface (excluding loopback)
  2756. # ## Setting interfaces will tell it to gather these explicit interfaces,
  2757. # ## regardless of status.
  2758. # ##
  2759. # # interfaces = ["eth0"]
  2760. # ##
  2761. # ## On linux systems telegraf also collects protocol stats.
  2762. # ## Setting ignore_protocol_stats to true will skip reporting of protocol metrics.
  2763. # ##
  2764. # # ignore_protocol_stats = false
  2765. # ##
  2766. # # Collect response time of a TCP or UDP connection
  2767. # [[inputs.net_response]]
  2768. # ## Protocol, must be "tcp" or "udp"
  2769. # ## NOTE: because the "udp" protocol does not respond to requests, it requires
  2770. # ## a send/expect string pair (see below).
  2771. # protocol = "tcp"
  2772. # ## Server address (default localhost)
  2773. # address = "localhost:80"
  2774. #
  2775. # ## Set timeout
  2776. # # timeout = "1s"
  2777. #
  2778. # ## Set read timeout (only used if expecting a response)
  2779. # # read_timeout = "1s"
  2780. #
  2781. # ## The following options are required for UDP checks. For TCP, they are
  2782. # ## optional. The plugin will send the given string to the server and then
  2783. # ## expect to receive the given 'expect' string back.
  2784. # ## string sent to the server
  2785. # # send = "ssh"
  2786. # ## expected string in answer
  2787. # # expect = "ssh"
  2788. #
  2789. # ## Uncomment to remove deprecated fields
  2790. # # fielddrop = ["result_type", "string_found"]
  2791. # # Read TCP metrics such as established, time wait and sockets counts.
  2792. # [[inputs.netstat]]
  2793. # # no configuration
  2794. # # Read Nginx's basic status information (ngx_http_stub_status_module)
  2795. # [[inputs.nginx]]
  2796. # # An array of Nginx stub_status URI to gather stats.
  2797. # urls = ["http://localhost/server_status"]
  2798. #
  2799. # ## Optional TLS Config
  2800. # tls_ca = "/etc/telegraf/ca.pem"
  2801. # tls_cert = "/etc/telegraf/cert.cer"
  2802. # tls_key = "/etc/telegraf/key.key"
  2803. # ## Use TLS but skip chain & host verification
  2804. # insecure_skip_verify = false
  2805. #
  2806. # # HTTP response timeout (default: 5s)
  2807. # response_timeout = "5s"
  2808. # # Read Nginx Plus' full status information (ngx_http_status_module)
  2809. # [[inputs.nginx_plus]]
  2810. # ## An array of ngx_http_status_module or status URI to gather stats.
  2811. # urls = ["http://localhost/status"]
  2812. #
  2813. # # HTTP response timeout (default: 5s)
  2814. # response_timeout = "5s"
  2815. # # Read Nginx Plus Api documentation
  2816. # [[inputs.nginx_plus_api]]
  2817. # ## An array of API URI to gather stats.
  2818. # urls = ["http://localhost/api"]
  2819. #
  2820. # # Nginx API version, default: 3
  2821. # # api_version = 3
  2822. #
  2823. # # HTTP response timeout (default: 5s)
  2824. # response_timeout = "5s"
  2825. # # Read nginx_upstream_check module status information (https://github.com/yaoweibin/nginx_upstream_check_module)
  2826. # [[inputs.nginx_upstream_check]]
  2827. # ## An URL where Nginx Upstream check module is enabled
  2828. # ## It should be set to return a JSON formatted response
  2829. # url = "http://127.0.0.1/status?format=json"
  2830. #
  2831. # ## HTTP method
  2832. # # method = "GET"
  2833. #
  2834. # ## Optional HTTP headers
  2835. # # headers = {"X-Special-Header" = "Special-Value"}
  2836. #
  2837. # ## Override HTTP "Host" header
  2838. # # host_header = "check.example.com"
  2839. #
  2840. # ## Timeout for HTTP requests
  2841. # timeout = "5s"
  2842. #
  2843. # ## Optional HTTP Basic Auth credentials
  2844. # # username = "username"
  2845. # # password = "pa$$word"
  2846. #
  2847. # ## Optional TLS Config
  2848. # # tls_ca = "/etc/telegraf/ca.pem"
  2849. # # tls_cert = "/etc/telegraf/cert.pem"
  2850. # # tls_key = "/etc/telegraf/key.pem"
  2851. # ## Use TLS but skip chain & host verification
  2852. # # insecure_skip_verify = false
  2853. # # Read Nginx virtual host traffic status module information (nginx-module-vts)
  2854. # [[inputs.nginx_vts]]
  2855. # ## An array of ngx_http_status_module or status URI to gather stats.
  2856. # urls = ["http://localhost/status"]
  2857. #
  2858. # ## HTTP response timeout (default: 5s)
  2859. # response_timeout = "5s"
  2860. # # Read NSQ topic and channel statistics.
  2861. # [[inputs.nsq]]
  2862. # ## An array of NSQD HTTP API endpoints
  2863. # endpoints = ["http://localhost:4151"]
  2864. #
  2865. # ## Optional TLS Config
  2866. # # tls_ca = "/etc/telegraf/ca.pem"
  2867. # # tls_cert = "/etc/telegraf/cert.pem"
  2868. # # tls_key = "/etc/telegraf/key.pem"
  2869. # ## Use TLS but skip chain & host verification
  2870. # # insecure_skip_verify = false
  2871. # # Collect kernel snmp counters and network interface statistics
  2872. # [[inputs.nstat]]
  2873. # ## file paths for proc files. If empty default paths will be used:
  2874. # ## /proc/net/netstat, /proc/net/snmp, /proc/net/snmp6
  2875. # ## These can also be overridden with env variables, see README.
  2876. # proc_net_netstat = "/proc/net/netstat"
  2877. # proc_net_snmp = "/proc/net/snmp"
  2878. # proc_net_snmp6 = "/proc/net/snmp6"
  2879. # ## dump metrics with 0 values too
  2880. # dump_zeros = true
  2881. # # Get standard NTP query metrics, requires ntpq executable.
  2882. # [[inputs.ntpq]]
  2883. # ## If false, set the -n ntpq flag. Can reduce metric gather time.
  2884. # dns_lookup = true
  2885. # # Pulls statistics from nvidia GPUs attached to the host
  2886. # [[inputs.nvidia_smi]]
  2887. # ## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath
  2888. # # bin_path = "/usr/bin/nvidia-smi"
  2889. #
  2890. # ## Optional: timeout for GPU polling
  2891. # # timeout = "5s"
  2892. # # OpenLDAP cn=Monitor plugin
  2893. # [[inputs.openldap]]
  2894. # host = "localhost"
  2895. # port = 389
  2896. #
  2897. # # ldaps, starttls, or no encryption. default is an empty string, disabling all encryption.
  2898. # # note that port will likely need to be changed to 636 for ldaps
  2899. # # valid options: "" | "starttls" | "ldaps"
  2900. # tls = ""
  2901. #
  2902. # # skip peer certificate verification. Default is false.
  2903. # insecure_skip_verify = false
  2904. #
  2905. # # Path to PEM-encoded Root certificate to use to verify server certificate
  2906. # tls_ca = "/etc/ssl/certs.pem"
  2907. #
  2908. # # dn/password to bind with. If bind_dn is empty, an anonymous bind is performed.
  2909. # bind_dn = ""
  2910. # bind_password = ""
  2911. #
  2912. # # Reverse metric names so they sort more naturally. Recommended.
  2913. # # This defaults to false if unset, but is set to true when generating a new config
  2914. # reverse_metric_names = true
  2915. # # A plugin to collect stats from Opensmtpd - a validating, recursive, and caching DNS resolver
  2916. # [[inputs.opensmtpd]]
  2917. # ## If running as a restricted user you can prepend sudo for additional access:
  2918. # #use_sudo = false
  2919. #
  2920. # ## The default location of the smtpctl binary can be overridden with:
  2921. # binary = "/usr/sbin/smtpctl"
  2922. #
  2923. # ## The default timeout of 1000ms can be overriden with (in milliseconds):
  2924. # timeout = 1000
  2925. # # Read metrics of passenger using passenger-status
  2926. # [[inputs.passenger]]
  2927. # ## Path of passenger-status.
  2928. # ##
  2929. # ## Plugin gather metric via parsing XML output of passenger-status
  2930. # ## More information about the tool:
  2931. # ## https://www.phusionpassenger.com/library/admin/apache/overall_status_report.html
  2932. # ##
  2933. # ## If no path is specified, then the plugin simply execute passenger-status
  2934. # ## hopefully it can be found in your PATH
  2935. # command = "passenger-status -v --show=xml"
  2936. # # Gather counters from PF
  2937. # [[inputs.pf]]
  2938. # ## PF require root access on most systems.
  2939. # ## Setting 'use_sudo' to true will make use of sudo to run pfctl.
  2940. # ## Users must configure sudo to allow telegraf user to run pfctl with no password.
  2941. # ## pfctl can be restricted to only list command "pfctl -s info".
  2942. # use_sudo = false
  2943. # # Read metrics of phpfpm, via HTTP status page or socket
  2944. # [[inputs.phpfpm]]
  2945. # ## An array of addresses to gather stats about. Specify an ip or hostname
  2946. # ## with optional port and path
  2947. # ##
  2948. # ## Plugin can be configured in three modes (either can be used):
  2949. # ## - http: the URL must start with http:// or https://, ie:
  2950. # ## "http://localhost/status"
  2951. # ## "http://192.168.130.1/status?full"
  2952. # ##
  2953. # ## - unixsocket: path to fpm socket, ie:
  2954. # ## "/var/run/php5-fpm.sock"
  2955. # ## or using a custom fpm status path:
  2956. # ## "/var/run/php5-fpm.sock:fpm-custom-status-path"
  2957. # ##
  2958. # ## - fcgi: the URL must start with fcgi:// or cgi://, and port must be present, ie:
  2959. # ## "fcgi://10.0.0.12:9000/status"
  2960. # ## "cgi://10.0.10.12:9001/status"
  2961. # ##
  2962. # ## Example of multiple gathering from local socket and remove host
  2963. # ## urls = ["http://192.168.1.20/status", "/tmp/fpm.sock"]
  2964. # urls = ["http://localhost/status"]
  2965. # # Ping given url(s) and return statistics
  2966. # [[inputs.ping]]
  2967. # ## List of urls to ping
  2968. # urls = ["example.org"]
  2969. #
  2970. # ## Number of pings to send per collection (ping -c <COUNT>)
  2971. # # count = 1
  2972. #
  2973. # ## Interval, in s, at which to ping. 0 == default (ping -i <PING_INTERVAL>)
  2974. # ## Not available in Windows.
  2975. # # ping_interval = 1.0
  2976. #
  2977. # ## Per-ping timeout, in s. 0 == no timeout (ping -W <TIMEOUT>)
  2978. # # timeout = 1.0
  2979. #
  2980. # ## Total-ping deadline, in s. 0 == no deadline (ping -w <DEADLINE>)
  2981. # # deadline = 10
  2982. #
  2983. # ## Interface or source address to send ping from (ping -I <INTERFACE/SRC_ADDR>)
  2984. # ## on Darwin and Freebsd only source address possible: (ping -S <SRC_ADDR>)
  2985. # # interface = ""
  2986. #
  2987. # ## Specify the ping executable binary, default is "ping"
  2988. # # binary = "ping"
  2989. #
  2990. # ## Arguments for ping command
  2991. # ## when arguments is not empty, other options (ping_interval, timeout, etc) will be ignored
  2992. # # arguments = ["-c", "3"]
  2993. # # Measure postfix queue statistics
  2994. # [[inputs.postfix]]
  2995. # ## Postfix queue directory. If not provided, telegraf will try to use
  2996. # ## 'postconf -h queue_directory' to determine it.
  2997. # # queue_directory = "/var/spool/postfix"
  2998. # # Read metrics from one or many PowerDNS servers
  2999. # [[inputs.powerdns]]
  3000. # ## An array of sockets to gather stats about.
  3001. # ## Specify a path to unix socket.
  3002. # unix_sockets = ["/var/run/pdns.controlsocket"]
  3003. # # Monitor process cpu and memory usage
  3004. # [[inputs.procstat]]
  3005. # ## PID file to monitor process
  3006. # pid_file = "/var/run/nginx.pid"
  3007. # ## executable name (ie, pgrep <exe>)
  3008. # # exe = "nginx"
  3009. # ## pattern as argument for pgrep (ie, pgrep -f <pattern>)
  3010. # # pattern = "nginx"
  3011. # ## user as argument for pgrep (ie, pgrep -u <user>)
  3012. # # user = "nginx"
  3013. # ## Systemd unit name
  3014. # # systemd_unit = "nginx.service"
  3015. # ## CGroup name or path
  3016. # # cgroup = "systemd/system.slice/nginx.service"
  3017. #
  3018. # ## Windows service name
  3019. # # win_service = ""
  3020. #
  3021. # ## override for process_name
  3022. # ## This is optional; default is sourced from /proc/<pid>/status
  3023. # # process_name = "bar"
  3024. #
  3025. # ## Field name prefix
  3026. # # prefix = ""
  3027. #
  3028. # ## Add PID as a tag instead of a field; useful to differentiate between
  3029. # ## processes whose tags are otherwise the same. Can create a large number
  3030. # ## of series, use judiciously.
  3031. # # pid_tag = false
  3032. #
  3033. # ## Method to use when finding process IDs. Can be one of 'pgrep', or
  3034. # ## 'native'. The pgrep finder calls the pgrep executable in the PATH while
  3035. # ## the native finder performs the search directly in a manor dependent on the
  3036. # ## platform. Default is 'pgrep'
  3037. # # pid_finder = "pgrep"
  3038. # # Reads last_run_summary.yaml file and converts to measurments
  3039. # [[inputs.puppetagent]]
  3040. # ## Location of puppet last run summary file
  3041. # location = "/var/lib/puppet/state/last_run_summary.yaml"
  3042. # # Reads metrics from RabbitMQ servers via the Management Plugin
  3043. # [[inputs.rabbitmq]]
  3044. # ## Management Plugin url. (default: http://localhost:15672)
  3045. # # url = "http://localhost:15672"
  3046. # ## Tag added to rabbitmq_overview series; deprecated: use tags
  3047. # # name = "rmq-server-1"
  3048. # ## Credentials
  3049. # # username = "guest"
  3050. # # password = "guest"
  3051. #
  3052. # ## Optional TLS Config
  3053. # # tls_ca = "/etc/telegraf/ca.pem"
  3054. # # tls_cert = "/etc/telegraf/cert.pem"
  3055. # # tls_key = "/etc/telegraf/key.pem"
  3056. # ## Use TLS but skip chain & host verification
  3057. # # insecure_skip_verify = false
  3058. #
  3059. # ## Optional request timeouts
  3060. # ##
  3061. # ## ResponseHeaderTimeout, if non-zero, specifies the amount of time to wait
  3062. # ## for a server's response headers after fully writing the request.
  3063. # # header_timeout = "3s"
  3064. # ##
  3065. # ## client_timeout specifies a time limit for requests made by this client.
  3066. # ## Includes connection time, any redirects, and reading the response body.
  3067. # # client_timeout = "4s"
  3068. #
  3069. # ## A list of nodes to gather as the rabbitmq_node measurement. If not
  3070. # ## specified, metrics for all nodes are gathered.
  3071. # # nodes = ["rabbit@node1", "rabbit@node2"]
  3072. #
  3073. # ## A list of queues to gather as the rabbitmq_queue measurement. If not
  3074. # ## specified, metrics for all queues are gathered.
  3075. # # queues = ["telegraf"]
  3076. #
  3077. # ## A list of exchanges to gather as the rabbitmq_exchange measurement. If not
  3078. # ## specified, metrics for all exchanges are gathered.
  3079. # # exchanges = ["telegraf"]
  3080. #
  3081. # ## Queues to include and exclude. Globs accepted.
  3082. # ## Note that an empty array for both will include all queues
  3083. # queue_name_include = []
  3084. # queue_name_exclude = []
  3085. # # Read raindrops stats (raindrops - real-time stats for preforking Rack servers)
  3086. # [[inputs.raindrops]]
  3087. # ## An array of raindrops middleware URI to gather stats.
  3088. # urls = ["http://localhost:8080/_raindrops"]
  3089. # # Read metrics from one or many redis servers
  3090. # [[inputs.redis]]
  3091. # ## specify servers via a url matching:
  3092. # ## [protocol://][:password]@address[:port]
  3093. # ## e.g.
  3094. # ## tcp://localhost:6379
  3095. # ## tcp://:password@192.168.99.100
  3096. # ## unix:///var/run/redis.sock
  3097. # ##
  3098. # ## If no servers are specified, then localhost is used as the host.
  3099. # ## If no port is specified, 6379 is used
  3100. # servers = ["tcp://localhost:6379"]
  3101. #
  3102. # ## specify server password
  3103. # # password = "s#cr@t%"
  3104. #
  3105. # ## Optional TLS Config
  3106. # # tls_ca = "/etc/telegraf/ca.pem"
  3107. # # tls_cert = "/etc/telegraf/cert.pem"
  3108. # # tls_key = "/etc/telegraf/key.pem"
  3109. # ## Use TLS but skip chain & host verification
  3110. # # insecure_skip_verify = true
  3111. # # Read metrics from one or many RethinkDB servers
  3112. # [[inputs.rethinkdb]]
  3113. # ## An array of URI to gather stats about. Specify an ip or hostname
  3114. # ## with optional port add password. ie,
  3115. # ## rethinkdb://user:auth_key@10.10.3.30:28105,
  3116. # ## rethinkdb://10.10.3.33:18832,
  3117. # ## 10.0.0.1:10000, etc.
  3118. # servers = ["127.0.0.1:28015"]
  3119. # ##
  3120. # ## If you use actual rethinkdb of > 2.3.0 with username/password authorization,
  3121. # ## protocol have to be named "rethinkdb2" - it will use 1_0 H.
  3122. # # servers = ["rethinkdb2://username:password@127.0.0.1:28015"]
  3123. # ##
  3124. # ## If you use older versions of rethinkdb (<2.2) with auth_key, protocol
  3125. # ## have to be named "rethinkdb".
  3126. # # servers = ["rethinkdb://username:auth_key@127.0.0.1:28015"]
  3127. # # Read metrics one or many Riak servers
  3128. # [[inputs.riak]]
  3129. # # Specify a list of one or more riak http servers
  3130. # servers = ["http://localhost:8098"]
  3131. # # Read API usage and limits for a Salesforce organisation
  3132. # [[inputs.salesforce]]
  3133. # ## specify your credentials
  3134. # ##
  3135. # username = "your_username"
  3136. # password = "your_password"
  3137. # ##
  3138. # ## (optional) security token
  3139. # # security_token = "your_security_token"
  3140. # ##
  3141. # ## (optional) environment type (sandbox or production)
  3142. # ## default is: production
  3143. # ##
  3144. # # environment = "production"
  3145. # ##
  3146. # ## (optional) API version (default: "39.0")
  3147. # ##
  3148. # # version = "39.0"
  3149. # # Monitor sensors, requires lm-sensors package
  3150. # [[inputs.sensors]]
  3151. # ## Remove numbers from field names.
  3152. # ## If true, a field name like 'temp1_input' will be changed to 'temp_input'.
  3153. # # remove_numbers = true
  3154. #
  3155. # ## Timeout is the maximum amount of time that the sensors command can run.
  3156. # # timeout = "5s"
  3157. # # Read metrics from storage devices supporting S.M.A.R.T.
  3158. # [[inputs.smart]]
  3159. # ## Optionally specify the path to the smartctl executable
  3160. # # path = "/usr/bin/smartctl"
  3161. # #
  3162. # ## On most platforms smartctl requires root access.
  3163. # ## Setting 'use_sudo' to true will make use of sudo to run smartctl.
  3164. # ## Sudo must be configured to to allow the telegraf user to run smartctl
  3165. # ## with out password.
  3166. # # use_sudo = false
  3167. # #
  3168. # ## Skip checking disks in this power mode. Defaults to
  3169. # ## "standby" to not wake up disks that have stoped rotating.
  3170. # ## See --nocheck in the man pages for smartctl.
  3171. # ## smartctl version 5.41 and 5.42 have faulty detection of
  3172. # ## power mode and might require changing this value to
  3173. # ## "never" depending on your disks.
  3174. # # nocheck = "standby"
  3175. # #
  3176. # ## Gather detailed metrics for each SMART Attribute.
  3177. # ## Defaults to "false"
  3178. # ##
  3179. # # attributes = false
  3180. # #
  3181. # ## Optionally specify devices to exclude from reporting.
  3182. # # excludes = [ "/dev/pass6" ]
  3183. # #
  3184. # ## Optionally specify devices and device type, if unset
  3185. # ## a scan (smartctl --scan) for S.M.A.R.T. devices will
  3186. # ## done and all found will be included except for the
  3187. # ## excluded in excludes.
  3188. # # devices = [ "/dev/ada0 -d atacam" ]
  3189. # # Retrieves SNMP values from remote agents
  3190. # [[inputs.snmp]]
  3191. # agents = [ "127.0.0.1:161" ]
  3192. # ## Timeout for each SNMP query.
  3193. # timeout = "5s"
  3194. # ## Number of retries to attempt within timeout.
  3195. # retries = 3
  3196. # ## SNMP version, values can be 1, 2, or 3
  3197. # version = 2
  3198. #
  3199. # ## SNMP community string.
  3200. # community = "public"
  3201. #
  3202. # ## The GETBULK max-repetitions parameter
  3203. # max_repetitions = 10
  3204. #
  3205. # ## SNMPv3 auth parameters
  3206. # #sec_name = "myuser"
  3207. # #auth_protocol = "md5" # Values: "MD5", "SHA", ""
  3208. # #auth_password = "pass"
  3209. # #sec_level = "authNoPriv" # Values: "noAuthNoPriv", "authNoPriv", "authPriv"
  3210. # #context_name = ""
  3211. # #priv_protocol = "" # Values: "DES", "AES", ""
  3212. # #priv_password = ""
  3213. #
  3214. # ## measurement name
  3215. # name = "system"
  3216. # [[inputs.snmp.field]]
  3217. # name = "hostname"
  3218. # oid = ".1.0.0.1.1"
  3219. # [[inputs.snmp.field]]
  3220. # name = "uptime"
  3221. # oid = ".1.0.0.1.2"
  3222. # [[inputs.snmp.field]]
  3223. # name = "load"
  3224. # oid = ".1.0.0.1.3"
  3225. # [[inputs.snmp.field]]
  3226. # oid = "HOST-RESOURCES-MIB::hrMemorySize"
  3227. #
  3228. # [[inputs.snmp.table]]
  3229. # ## measurement name
  3230. # name = "remote_servers"
  3231. # inherit_tags = [ "hostname" ]
  3232. # [[inputs.snmp.table.field]]
  3233. # name = "server"
  3234. # oid = ".1.0.0.0.1.0"
  3235. # is_tag = true
  3236. # [[inputs.snmp.table.field]]
  3237. # name = "connections"
  3238. # oid = ".1.0.0.0.1.1"
  3239. # [[inputs.snmp.table.field]]
  3240. # name = "latency"
  3241. # oid = ".1.0.0.0.1.2"
  3242. #
  3243. # [[inputs.snmp.table]]
  3244. # ## auto populate table's fields using the MIB
  3245. # oid = "HOST-RESOURCES-MIB::hrNetworkTable"
  3246. # # DEPRECATED! PLEASE USE inputs.snmp INSTEAD.
  3247. # [[inputs.snmp_legacy]]
  3248. # ## Use 'oids.txt' file to translate oids to names
  3249. # ## To generate 'oids.txt' you need to run:
  3250. # ## snmptranslate -m all -Tz -On | sed -e 's/"//g' > /tmp/oids.txt
  3251. # ## Or if you have an other MIB folder with custom MIBs
  3252. # ## snmptranslate -M /mycustommibfolder -Tz -On -m all | sed -e 's/"//g' > oids.txt
  3253. # snmptranslate_file = "/tmp/oids.txt"
  3254. # [[inputs.snmp.host]]
  3255. # address = "192.168.2.2:161"
  3256. # # SNMP community
  3257. # community = "public" # default public
  3258. # # SNMP version (1, 2 or 3)
  3259. # # Version 3 not supported yet
  3260. # version = 2 # default 2
  3261. # # SNMP response timeout
  3262. # timeout = 2.0 # default 2.0
  3263. # # SNMP request retries
  3264. # retries = 2 # default 2
  3265. # # Which get/bulk do you want to collect for this host
  3266. # collect = ["mybulk", "sysservices", "sysdescr"]
  3267. # # Simple list of OIDs to get, in addition to "collect"
  3268. # get_oids = []
  3269. #
  3270. # [[inputs.snmp.host]]
  3271. # address = "192.168.2.3:161"
  3272. # community = "public"
  3273. # version = 2
  3274. # timeout = 2.0
  3275. # retries = 2
  3276. # collect = ["mybulk"]
  3277. # get_oids = [
  3278. # "ifNumber",
  3279. # ".1.3.6.1.2.1.1.3.0",
  3280. # ]
  3281. #
  3282. # [[inputs.snmp.get]]
  3283. # name = "ifnumber"
  3284. # oid = "ifNumber"
  3285. #
  3286. # [[inputs.snmp.get]]
  3287. # name = "interface_speed"
  3288. # oid = "ifSpeed"
  3289. # instance = "0"
  3290. #
  3291. # [[inputs.snmp.get]]
  3292. # name = "sysuptime"
  3293. # oid = ".1.3.6.1.2.1.1.3.0"
  3294. # unit = "second"
  3295. #
  3296. # [[inputs.snmp.bulk]]
  3297. # name = "mybulk"
  3298. # max_repetition = 127
  3299. # oid = ".1.3.6.1.2.1.1"
  3300. #
  3301. # [[inputs.snmp.bulk]]
  3302. # name = "ifoutoctets"
  3303. # max_repetition = 127
  3304. # oid = "ifOutOctets"
  3305. #
  3306. # [[inputs.snmp.host]]
  3307. # address = "192.168.2.13:161"
  3308. # #address = "127.0.0.1:161"
  3309. # community = "public"
  3310. # version = 2
  3311. # timeout = 2.0
  3312. # retries = 2
  3313. # #collect = ["mybulk", "sysservices", "sysdescr", "systype"]
  3314. # collect = ["sysuptime" ]
  3315. # [[inputs.snmp.host.table]]
  3316. # name = "iftable3"
  3317. # include_instances = ["enp5s0", "eth1"]
  3318. #
  3319. # # SNMP TABLEs
  3320. # # table without mapping neither subtables
  3321. # [[inputs.snmp.table]]
  3322. # name = "iftable1"
  3323. # oid = ".1.3.6.1.2.1.31.1.1.1"
  3324. #
  3325. # # table without mapping but with subtables
  3326. # [[inputs.snmp.table]]
  3327. # name = "iftable2"
  3328. # oid = ".1.3.6.1.2.1.31.1.1.1"
  3329. # sub_tables = [".1.3.6.1.2.1.2.2.1.13"]
  3330. #
  3331. # # table with mapping but without subtables
  3332. # [[inputs.snmp.table]]
  3333. # name = "iftable3"
  3334. # oid = ".1.3.6.1.2.1.31.1.1.1"
  3335. # # if empty. get all instances
  3336. # mapping_table = ".1.3.6.1.2.1.31.1.1.1.1"
  3337. # # if empty, get all subtables
  3338. #
  3339. # # table with both mapping and subtables
  3340. # [[inputs.snmp.table]]
  3341. # name = "iftable4"
  3342. # oid = ".1.3.6.1.2.1.31.1.1.1"
  3343. # # if empty get all instances
  3344. # mapping_table = ".1.3.6.1.2.1.31.1.1.1.1"
  3345. # # if empty get all subtables
  3346. # # sub_tables could be not "real subtables"
  3347. # sub_tables=[".1.3.6.1.2.1.2.2.1.13", "bytes_recv", "bytes_send"]
  3348. # # Read stats from one or more Solr servers or cores
  3349. # [[inputs.solr]]
  3350. # ## specify a list of one or more Solr servers
  3351. # servers = ["http://localhost:8983"]
  3352. #
  3353. # ## specify a list of one or more Solr cores (default - all)
  3354. # # cores = ["main"]
  3355. # # Read metrics from Microsoft SQL Server
  3356. # [[inputs.sqlserver]]
  3357. # ## Specify instances to monitor with a list of connection strings.
  3358. # ## All connection parameters are optional.
  3359. # ## By default, the host is localhost, listening on default port, TCP 1433.
  3360. # ## for Windows, the user is the currently running AD user (SSO).
  3361. # ## See https://github.com/denisenkom/go-mssqldb for detailed connection
  3362. # ## parameters.
  3363. # # servers = [
  3364. # # "Server=192.168.1.10;Port=1433;User Id=<user>;Password=<pw>;app name=telegraf;log=1;",
  3365. # # ]
  3366. #
  3367. # ## Optional parameter, setting this to 2 will use a new version
  3368. # ## of the collection queries that break compatibility with the original
  3369. # ## dashboards.
  3370. # query_version = 2
  3371. #
  3372. # ## If you are using AzureDB, setting this to true will gather resource utilization metrics
  3373. # # azuredb = false
  3374. #
  3375. # ## If you would like to exclude some of the metrics queries, list them here
  3376. # ## Possible choices:
  3377. # ## - PerformanceCounters
  3378. # ## - WaitStatsCategorized
  3379. # ## - DatabaseIO
  3380. # ## - DatabaseProperties
  3381. # ## - CPUHistory
  3382. # ## - DatabaseSize
  3383. # ## - DatabaseStats
  3384. # ## - MemoryClerk
  3385. # ## - VolumeSpace
  3386. # ## - PerformanceMetrics
  3387. # # exclude_query = [ 'DatabaseIO' ]
  3388. # # Gather timeseries from Google Cloud Platform v3 monitoring API
  3389. # [[inputs.stackdriver]]
  3390. # ## GCP Project
  3391. # project = "erudite-bloom-151019"
  3392. #
  3393. # ## Include timeseries that start with the given metric type.
  3394. # metric_type_prefix_include = [
  3395. # "compute.googleapis.com/",
  3396. # ]
  3397. #
  3398. # ## Exclude timeseries that start with the given metric type.
  3399. # # metric_type_prefix_exclude = []
  3400. #
  3401. # ## Many metrics are updated once per minute; it is recommended to override
  3402. # ## the agent level interval with a value of 1m or greater.
  3403. # interval = "1m"
  3404. #
  3405. # ## Maximum number of API calls to make per second. The quota for accounts
  3406. # ## varies, it can be viewed on the API dashboard:
  3407. # ## https://cloud.google.com/monitoring/quotas#quotas_and_limits
  3408. # # rate_limit = 14
  3409. #
  3410. # ## The delay and window options control the number of points selected on
  3411. # ## each gather. When set, metrics are gathered between:
  3412. # ## start: now() - delay - window
  3413. # ## end: now() - delay
  3414. # #
  3415. # ## Collection delay; if set too low metrics may not yet be available.
  3416. # # delay = "5m"
  3417. # #
  3418. # ## If unset, the window will start at 1m and be updated dynamically to span
  3419. # ## the time between calls (approximately the length of the plugin interval).
  3420. # # window = "1m"
  3421. #
  3422. # ## TTL for cached list of metric types. This is the maximum amount of time
  3423. # ## it may take to discover new metrics.
  3424. # # cache_ttl = "1h"
  3425. #
  3426. # ## If true, raw bucket counts are collected for distribution value types.
  3427. # ## For a more lightweight collection, you may wish to disable and use
  3428. # ## distribution_aggregation_aligners instead.
  3429. # # gather_raw_distribution_buckets = true
  3430. #
  3431. # ## Aggregate functions to be used for metrics whose value type is
  3432. # ## distribution. These aggregate values are recorded in in addition to raw
  3433. # ## bucket counts; if they are enabled.
  3434. # ##
  3435. # ## For a list of aligner strings see:
  3436. # ## https://cloud.google.com/monitoring/api/ref_v3/rpc/google.monitoring.v3#aligner
  3437. # # distribution_aggregation_aligners = [
  3438. # # "ALIGN_PERCENTILE_99",
  3439. # # "ALIGN_PERCENTILE_95",
  3440. # # "ALIGN_PERCENTILE_50",
  3441. # # ]
  3442. #
  3443. # ## Filters can be added to reduce the number of time series matched. All
  3444. # ## functions are supported: starts_with, ends_with, has_substring, and
  3445. # ## one_of. Only the '=' operator is supported.
  3446. # ##
  3447. # ## The logical operators when combining filters are defined statically using
  3448. # ## the following values:
  3449. # ## filter ::= <resource_labels> {AND <metric_labels>}
  3450. # ## resource_labels ::= <resource_labels> {OR <resource_label>}
  3451. # ## metric_labels ::= <metric_labels> {OR <metric_label>}
  3452. # ##
  3453. # ## For more details, see https://cloud.google.com/monitoring/api/v3/filters
  3454. # #
  3455. # ## Resource labels refine the time series selection with the following expression:
  3456. # ## resource.labels.<key> = <value>
  3457. # # [[inputs.stackdriver.filter.resource_labels]]
  3458. # # key = "instance_name"
  3459. # # value = 'starts_with("localhost")'
  3460. # #
  3461. # ## Metric labels refine the time series selection with the following expression:
  3462. # ## metric.labels.<key> = <value>
  3463. # # [[inputs.stackdriver.filter.metric_labels]]
  3464. # # key = "device_name"
  3465. # # value = 'one_of("sda", "sdb")'
  3466. # # Sysstat metrics collector
  3467. # [[inputs.sysstat]]
  3468. # ## Path to the sadc command.
  3469. # #
  3470. # ## Common Defaults:
  3471. # ## Debian/Ubuntu: /usr/lib/sysstat/sadc
  3472. # ## Arch: /usr/lib/sa/sadc
  3473. # ## RHEL/CentOS: /usr/lib64/sa/sadc
  3474. # sadc_path = "/usr/lib/sa/sadc" # required
  3475. # #
  3476. # #
  3477. # ## Path to the sadf command, if it is not in PATH
  3478. # # sadf_path = "/usr/bin/sadf"
  3479. # #
  3480. # #
  3481. # ## Activities is a list of activities, that are passed as argument to the
  3482. # ## sadc collector utility (e.g: DISK, SNMP etc...)
  3483. # ## The more activities that are added, the more data is collected.
  3484. # # activities = ["DISK"]
  3485. # #
  3486. # #
  3487. # ## Group metrics to measurements.
  3488. # ##
  3489. # ## If group is false each metric will be prefixed with a description
  3490. # ## and represents itself a measurement.
  3491. # ##
  3492. # ## If Group is true, corresponding metrics are grouped to a single measurement.
  3493. # # group = true
  3494. # #
  3495. # #
  3496. # ## Options for the sadf command. The values on the left represent the sadf
  3497. # ## options and the values on the right their description (which are used for
  3498. # ## grouping and prefixing metrics).
  3499. # ##
  3500. # ## Run 'sar -h' or 'man sar' to find out the supported options for your
  3501. # ## sysstat version.
  3502. # [inputs.sysstat.options]
  3503. # -C = "cpu"
  3504. # -B = "paging"
  3505. # -b = "io"
  3506. # -d = "disk" # requires DISK activity
  3507. # "-n ALL" = "network"
  3508. # "-P ALL" = "per_cpu"
  3509. # -q = "queue"
  3510. # -R = "mem"
  3511. # -r = "mem_util"
  3512. # -S = "swap_util"
  3513. # -u = "cpu_util"
  3514. # -v = "inode"
  3515. # -W = "swap"
  3516. # -w = "task"
  3517. # # -H = "hugepages" # only available for newer linux distributions
  3518. # # "-I ALL" = "interrupts" # requires INT activity
  3519. # #
  3520. # #
  3521. # ## Device tags can be used to add additional tags for devices.
  3522. # ## For example the configuration below adds a tag vg with value rootvg for
  3523. # ## all metrics with sda devices.
  3524. # # [[inputs.sysstat.device_tags.sda]]
  3525. # # vg = "rootvg"
  3526. # # Reads metrics from a Teamspeak 3 Server via ServerQuery
  3527. # [[inputs.teamspeak]]
  3528. # ## Server address for Teamspeak 3 ServerQuery
  3529. # # server = "127.0.0.1:10011"
  3530. # ## Username for ServerQuery
  3531. # username = "serverqueryuser"
  3532. # ## Password for ServerQuery
  3533. # password = "secret"
  3534. # ## Array of virtual servers
  3535. # # virtual_servers = [1]
  3536. # # Read metrics about temperature
  3537. # [[inputs.temp]]
  3538. # # no configuration
  3539. # # Read Tengine's basic status information (ngx_http_reqstat_module)
  3540. # [[inputs.tengine]]
  3541. # # An array of Tengine reqstat module URI to gather stats.
  3542. # urls = ["http://127.0.0.1/us"]
  3543. #
  3544. # # HTTP response timeout (default: 5s)
  3545. # # response_timeout = "5s"
  3546. #
  3547. # ## Optional TLS Config
  3548. # # tls_ca = "/etc/telegraf/ca.pem"
  3549. # # tls_cert = "/etc/telegraf/cert.cer"
  3550. # # tls_key = "/etc/telegraf/key.key"
  3551. # ## Use TLS but skip chain & host verification
  3552. # # insecure_skip_verify = false
  3553. # # Gather metrics from the Tomcat server status page.
  3554. # [[inputs.tomcat]]
  3555. # ## URL of the Tomcat server status
  3556. # # url = "http://127.0.0.1:8080/manager/status/all?XML=true"
  3557. #
  3558. # ## HTTP Basic Auth Credentials
  3559. # # username = "tomcat"
  3560. # # password = "s3cret"
  3561. #
  3562. # ## Request timeout
  3563. # # timeout = "5s"
  3564. #
  3565. # ## Optional TLS Config
  3566. # # tls_ca = "/etc/telegraf/ca.pem"
  3567. # # tls_cert = "/etc/telegraf/cert.pem"
  3568. # # tls_key = "/etc/telegraf/key.pem"
  3569. # ## Use TLS but skip chain & host verification
  3570. # # insecure_skip_verify = false
  3571. # # Inserts sine and cosine waves for demonstration purposes
  3572. # [[inputs.trig]]
  3573. # ## Set the amplitude
  3574. # amplitude = 10.0
  3575. # # Read Twemproxy stats data
  3576. # [[inputs.twemproxy]]
  3577. # ## Twemproxy stats address and port (no scheme)
  3578. # addr = "localhost:22222"
  3579. # ## Monitor pool name
  3580. # pools = ["redis_pool", "mc_pool"]
  3581. # # A plugin to collect stats from the Unbound DNS resolver
  3582. # [[inputs.unbound]]
  3583. # ## Address of server to connect to, read from unbound conf default, optionally ':port'
  3584. # ## Will lookup IP if given a hostname
  3585. # server = "127.0.0.1:8953"
  3586. #
  3587. # ## If running as a restricted user you can prepend sudo for additional access:
  3588. # # use_sudo = false
  3589. #
  3590. # ## The default location of the unbound-control binary can be overridden with:
  3591. # # binary = "/usr/sbin/unbound-control"
  3592. #
  3593. # ## The default timeout of 1s can be overriden with:
  3594. # # timeout = "1s"
  3595. #
  3596. # ## When set to true, thread metrics are tagged with the thread id.
  3597. # ##
  3598. # ## The default is false for backwards compatibility, and will be changed to
  3599. # ## true in a future version. It is recommended to set to true on new
  3600. # ## deployments.
  3601. # thread_as_tag = false
  3602. # # A plugin to collect stats from Varnish HTTP Cache
  3603. # [[inputs.varnish]]
  3604. # ## If running as a restricted user you can prepend sudo for additional access:
  3605. # #use_sudo = false
  3606. #
  3607. # ## The default location of the varnishstat binary can be overridden with:
  3608. # binary = "/usr/bin/varnishstat"
  3609. #
  3610. # ## By default, telegraf gather stats for 3 metric points.
  3611. # ## Setting stats will override the defaults shown below.
  3612. # ## Glob matching can be used, ie, stats = ["MAIN.*"]
  3613. # ## stats may also be set to ["*"], which will collect all stats
  3614. # stats = ["MAIN.cache_hit", "MAIN.cache_miss", "MAIN.uptime"]
  3615. #
  3616. # ## Optional name for the varnish instance (or working directory) to query
  3617. # ## Usually appened after -n in varnish cli
  3618. # # instance_name = instanceName
  3619. #
  3620. # ## Timeout for varnishstat command
  3621. # # timeout = "1s"
  3622. # # Monitor wifi signal strength and quality
  3623. # [[inputs.wireless]]
  3624. # ## Sets 'proc' directory path
  3625. # ## If not specified, then default is /proc
  3626. # # host_proc = "/proc"
  3627. # # Reads metrics from a SSL certificate
  3628. # [[inputs.x509_cert]]
  3629. # ## List certificate sources
  3630. # sources = ["/etc/ssl/certs/ssl-cert-snakeoil.pem", "tcp://example.org:443"]
  3631. #
  3632. # ## Timeout for SSL connection
  3633. # # timeout = "5s"
  3634. #
  3635. # ## Optional TLS Config
  3636. # # tls_ca = "/etc/telegraf/ca.pem"
  3637. # # tls_cert = "/etc/telegraf/cert.pem"
  3638. # # tls_key = "/etc/telegraf/key.pem"
  3639. #
  3640. # ## Use TLS but skip chain & host verification
  3641. # # insecure_skip_verify = false
  3642. # # Read metrics of ZFS from arcstats, zfetchstats, vdev_cache_stats, and pools
  3643. # [[inputs.zfs]]
  3644. # ## ZFS kstat path. Ignored on FreeBSD
  3645. # ## If not specified, then default is:
  3646. # # kstatPath = "/proc/spl/kstat/zfs"
  3647. #
  3648. # ## By default, telegraf gather all zfs stats
  3649. # ## If not specified, then default is:
  3650. # # kstatMetrics = ["arcstats", "zfetchstats", "vdev_cache_stats"]
  3651. # ## For Linux, the default is:
  3652. # # kstatMetrics = ["abdstats", "arcstats", "dnodestats", "dbufcachestats",
  3653. # # "dmu_tx", "fm", "vdev_mirror_stats", "zfetchstats", "zil"]
  3654. # ## By default, don't gather zpool stats
  3655. # # poolMetrics = false
  3656. # # Reads 'mntr' stats from one or many zookeeper servers
  3657. # [[inputs.zookeeper]]
  3658. # ## An array of address to gather stats about. Specify an ip or hostname
  3659. # ## with port. ie localhost:2181, 10.0.0.1:2181, etc.
  3660. #
  3661. # ## If no servers are specified, then localhost is used as the host.
  3662. # ## If no port is specified, 2181 is used
  3663. # servers = [":2181"]
  3664. #
  3665. # ## Timeout for metric collections from all servers. Minimum timeout is "1s".
  3666. # # timeout = "5s"
  3667. #
  3668. # ## Optional TLS Config
  3669. # # enable_tls = true
  3670. # # tls_ca = "/etc/telegraf/ca.pem"
  3671. # # tls_cert = "/etc/telegraf/cert.pem"
  3672. # # tls_key = "/etc/telegraf/key.pem"
  3673. # ## If false, skip chain & host verification
  3674. # # insecure_skip_verify = true
  3675. ###############################################################################
  3676. # SERVICE INPUT PLUGINS #
  3677. ###############################################################################
  3678. # # AMQP consumer plugin
  3679. # [[inputs.amqp_consumer]]
  3680. # ## Broker to consume from.
  3681. # ## deprecated in 1.7; use the brokers option
  3682. # # url = "amqp://localhost:5672/influxdb"
  3683. #
  3684. # ## Brokers to consume from. If multiple brokers are specified a random broker
  3685. # ## will be selected anytime a connection is established. This can be
  3686. # ## helpful for load balancing when not using a dedicated load balancer.
  3687. # brokers = ["amqp://localhost:5672/influxdb"]
  3688. #
  3689. # ## Authentication credentials for the PLAIN auth_method.
  3690. # # username = ""
  3691. # # password = ""
  3692. #
  3693. # ## Exchange to declare and consume from.
  3694. # exchange = "telegraf"
  3695. #
  3696. # ## Exchange type; common types are "direct", "fanout", "topic", "header", "x-consistent-hash".
  3697. # # exchange_type = "topic"
  3698. #
  3699. # ## If true, exchange will be passively declared.
  3700. # # exchange_passive = false
  3701. #
  3702. # ## Exchange durability can be either "transient" or "durable".
  3703. # # exchange_durability = "durable"
  3704. #
  3705. # ## Additional exchange arguments.
  3706. # # exchange_arguments = { }
  3707. # # exchange_arguments = {"hash_propery" = "timestamp"}
  3708. #
  3709. # ## AMQP queue name.
  3710. # queue = "telegraf"
  3711. #
  3712. # ## AMQP queue durability can be "transient" or "durable".
  3713. # queue_durability = "durable"
  3714. #
  3715. # ## Binding Key.
  3716. # binding_key = "#"
  3717. #
  3718. # ## Maximum number of messages server should give to the worker.
  3719. # # prefetch_count = 50
  3720. #
  3721. # ## Maximum messages to read from the broker that have not been written by an
  3722. # ## output. For best throughput set based on the number of metrics within
  3723. # ## each message and the size of the output's metric_batch_size.
  3724. # ##
  3725. # ## For example, if each message from the queue contains 10 metrics and the
  3726. # ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  3727. # ## full batch is collected and the write is triggered immediately without
  3728. # ## waiting until the next flush_interval.
  3729. # # max_undelivered_messages = 1000
  3730. #
  3731. # ## Auth method. PLAIN and EXTERNAL are supported
  3732. # ## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as
  3733. # ## described here: https://www.rabbitmq.com/plugins.html
  3734. # # auth_method = "PLAIN"
  3735. #
  3736. # ## Optional TLS Config
  3737. # # tls_ca = "/etc/telegraf/ca.pem"
  3738. # # tls_cert = "/etc/telegraf/cert.pem"
  3739. # # tls_key = "/etc/telegraf/key.pem"
  3740. # ## Use TLS but skip chain & host verification
  3741. # # insecure_skip_verify = false
  3742. #
  3743. # ## Data format to consume.
  3744. # ## Each data format has its own unique set of configuration options, read
  3745. # ## more about them here:
  3746. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  3747. # data_format = "influx"
  3748. # # Read Cassandra metrics through Jolokia
  3749. # [[inputs.cassandra]]
  3750. # ## DEPRECATED: The cassandra plugin has been deprecated. Please use the
  3751. # ## jolokia2 plugin instead.
  3752. # ##
  3753. # ## see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/jolokia2
  3754. #
  3755. # context = "/jolokia/read"
  3756. # ## List of cassandra servers exposing jolokia read service
  3757. # servers = ["myuser:mypassword@10.10.10.1:8778","10.10.10.2:8778",":8778"]
  3758. # ## List of metrics collected on above servers
  3759. # ## Each metric consists of a jmx path.
  3760. # ## This will collect all heap memory usage metrics from the jvm and
  3761. # ## ReadLatency metrics for all keyspaces and tables.
  3762. # ## "type=Table" in the query works with Cassandra3.0. Older versions might
  3763. # ## need to use "type=ColumnFamily"
  3764. # metrics = [
  3765. # "/java.lang:type=Memory/HeapMemoryUsage",
  3766. # "/org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
  3767. # ]
  3768. # # Read metrics from Google PubSub
  3769. # [[inputs.cloud_pubsub]]
  3770. # ## Required. Name of Google Cloud Platform (GCP) Project that owns
  3771. # ## the given PubSub subscription.
  3772. # project = "my-project"
  3773. #
  3774. # ## Required. Name of PubSub subscription to ingest metrics from.
  3775. # subscription = "my-subscription"
  3776. #
  3777. # ## Required. Data format to consume.
  3778. # ## Each data format has its own unique set of configuration options.
  3779. # ## Read more about them here:
  3780. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  3781. # data_format = "influx"
  3782. #
  3783. # ## Optional. Filepath for GCP credentials JSON file to authorize calls to
  3784. # ## PubSub APIs. If not set explicitly, Telegraf will attempt to use
  3785. # ## Application Default Credentials, which is preferred.
  3786. # # credentials_file = "path/to/my/creds.json"
  3787. #
  3788. # ## Optional. Number of seconds to wait before attempting to restart the
  3789. # ## PubSub subscription receiver after an unexpected error.
  3790. # ## If the streaming pull for a PubSub Subscription fails (receiver),
  3791. # ## the agent attempts to restart receiving messages after this many seconds.
  3792. # # retry_delay_seconds = 5
  3793. #
  3794. # ## Optional. Maximum byte length of a message to consume.
  3795. # ## Larger messages are dropped with an error. If less than 0 or unspecified,
  3796. # ## treated as no limit.
  3797. # # max_message_len = 1000000
  3798. #
  3799. # ## Optional. Maximum messages to read from PubSub that have not been written
  3800. # ## to an output. Defaults to 1000.
  3801. # ## For best throughput set based on the number of metrics within
  3802. # ## each message and the size of the output's metric_batch_size.
  3803. # ##
  3804. # ## For example, if each message contains 10 metrics and the output
  3805. # ## metric_batch_size is 1000, setting this to 100 will ensure that a
  3806. # ## full batch is collected and the write is triggered immediately without
  3807. # ## waiting until the next flush_interval.
  3808. # # max_undelivered_messages = 1000
  3809. #
  3810. # ## The following are optional Subscription ReceiveSettings in PubSub.
  3811. # ## Read more about these values:
  3812. # ## https://godoc.org/cloud.google.com/go/pubsub#ReceiveSettings
  3813. #
  3814. # ## Optional. Maximum number of seconds for which a PubSub subscription
  3815. # ## should auto-extend the PubSub ACK deadline for each message. If less than
  3816. # ## 0, auto-extension is disabled.
  3817. # # max_extension = 0
  3818. #
  3819. # ## Optional. Maximum number of unprocessed messages in PubSub
  3820. # ## (unacknowledged but not yet expired in PubSub).
  3821. # ## A value of 0 is treated as the default PubSub value.
  3822. # ## Negative values will be treated as unlimited.
  3823. # # max_outstanding_messages = 0
  3824. #
  3825. # ## Optional. Maximum size in bytes of unprocessed messages in PubSub
  3826. # ## (unacknowledged but not yet expired in PubSub).
  3827. # ## A value of 0 is treated as the default PubSub value.
  3828. # ## Negative values will be treated as unlimited.
  3829. # # max_outstanding_bytes = 0
  3830. #
  3831. # ## Optional. Max number of goroutines a PubSub Subscription receiver can spawn
  3832. # ## to pull messages from PubSub concurrently. This limit applies to each
  3833. # ## subscription separately and is treated as the PubSub default if less than
  3834. # ## 1. Note this setting does not limit the number of messages that can be
  3835. # ## processed concurrently (use "max_outstanding_messages" instead).
  3836. # # max_receiver_go_routines = 0
  3837. #
  3838. # ## Optional. If true, Telegraf will attempt to base64 decode the
  3839. # ## PubSub message data before parsing
  3840. # # base64_data = false
  3841. # # Google Cloud Pub/Sub Push HTTP listener
  3842. # [[inputs.cloud_pubsub_push]]
  3843. # ## Address and port to host HTTP listener on
  3844. # service_address = ":8080"
  3845. #
  3846. # ## Application secret to verify messages originate from Cloud Pub/Sub
  3847. # # token = ""
  3848. #
  3849. # ## Path to listen to.
  3850. # # path = "/"
  3851. #
  3852. # ## Maximum duration before timing out read of the request
  3853. # # read_timeout = "10s"
  3854. # ## Maximum duration before timing out write of the response. This should be set to a value
  3855. # ## large enough that you can send at least 'metric_batch_size' number of messages within the
  3856. # ## duration.
  3857. # # write_timeout = "10s"
  3858. #
  3859. # ## Maximum allowed http request body size in bytes.
  3860. # ## 0 means to use the default of 524,288,00 bytes (500 mebibytes)
  3861. # # max_body_size = "500MB"
  3862. #
  3863. # ## Whether to add the pubsub metadata, such as message attributes and subscription as a tag.
  3864. # # add_meta = false
  3865. #
  3866. # ## Optional. Maximum messages to read from PubSub that have not been written
  3867. # ## to an output. Defaults to 1000.
  3868. # ## For best throughput set based on the number of metrics within
  3869. # ## each message and the size of the output's metric_batch_size.
  3870. # ##
  3871. # ## For example, if each message contains 10 metrics and the output
  3872. # ## metric_batch_size is 1000, setting this to 100 will ensure that a
  3873. # ## full batch is collected and the write is triggered immediately without
  3874. # ## waiting until the next flush_interval.
  3875. # # max_undelivered_messages = 1000
  3876. #
  3877. # ## Set one or more allowed client CA certificate file names to
  3878. # ## enable mutually authenticated TLS connections
  3879. # # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  3880. #
  3881. # ## Add service certificate and key
  3882. # # tls_cert = "/etc/telegraf/cert.pem"
  3883. # # tls_key = "/etc/telegraf/key.pem"
  3884. #
  3885. # ## Data format to consume.
  3886. # ## Each data format has its own unique set of configuration options, read
  3887. # ## more about them here:
  3888. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  3889. # data_format = "influx"
  3890. # # Influx HTTP write listener
  3891. # [[inputs.http_listener]]
  3892. # ## Address and port to host HTTP listener on
  3893. # service_address = ":8186"
  3894. #
  3895. # ## maximum duration before timing out read of the request
  3896. # read_timeout = "10s"
  3897. # ## maximum duration before timing out write of the response
  3898. # write_timeout = "10s"
  3899. #
  3900. # ## Maximum allowed http request body size in bytes.
  3901. # ## 0 means to use the default of 524,288,000 bytes (500 mebibytes)
  3902. # max_body_size = "500MiB"
  3903. #
  3904. # ## Maximum line size allowed to be sent in bytes.
  3905. # ## 0 means to use the default of 65536 bytes (64 kibibytes)
  3906. # max_line_size = "64KiB"
  3907. #
  3908. # ## Set one or more allowed client CA certificate file names to
  3909. # ## enable mutually authenticated TLS connections
  3910. # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  3911. #
  3912. # ## Add service certificate and key
  3913. # tls_cert = "/etc/telegraf/cert.pem"
  3914. # tls_key = "/etc/telegraf/key.pem"
  3915. #
  3916. # ## Optional username and password to accept for HTTP basic authentication.
  3917. # ## You probably want to make sure you have TLS configured above for this.
  3918. # # basic_username = "foobar"
  3919. # # basic_password = "barfoo"
  3920. # # Generic HTTP write listener
  3921. # [[inputs.http_listener_v2]]
  3922. # ## Address and port to host HTTP listener on
  3923. # service_address = ":8080"
  3924. #
  3925. # ## Path to listen to.
  3926. # # path = "/telegraf"
  3927. #
  3928. # ## HTTP methods to accept.
  3929. # # methods = ["POST", "PUT"]
  3930. #
  3931. # ## maximum duration before timing out read of the request
  3932. # # read_timeout = "10s"
  3933. # ## maximum duration before timing out write of the response
  3934. # # write_timeout = "10s"
  3935. #
  3936. # ## Maximum allowed http request body size in bytes.
  3937. # ## 0 means to use the default of 524,288,00 bytes (500 mebibytes)
  3938. # # max_body_size = "500MB"
  3939. #
  3940. # ## Set one or more allowed client CA certificate file names to
  3941. # ## enable mutually authenticated TLS connections
  3942. # # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  3943. #
  3944. # ## Add service certificate and key
  3945. # # tls_cert = "/etc/telegraf/cert.pem"
  3946. # # tls_key = "/etc/telegraf/key.pem"
  3947. #
  3948. # ## Optional username and password to accept for HTTP basic authentication.
  3949. # ## You probably want to make sure you have TLS configured above for this.
  3950. # # basic_username = "foobar"
  3951. # # basic_password = "barfoo"
  3952. #
  3953. # ## Data format to consume.
  3954. # ## Each data format has its own unique set of configuration options, read
  3955. # ## more about them here:
  3956. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  3957. # data_format = "influx"
  3958. # # Influx HTTP write listener
  3959. # [[inputs.influxdb_listener]]
  3960. # ## Address and port to host HTTP listener on
  3961. # service_address = ":8186"
  3962. #
  3963. # ## maximum duration before timing out read of the request
  3964. # read_timeout = "10s"
  3965. # ## maximum duration before timing out write of the response
  3966. # write_timeout = "10s"
  3967. #
  3968. # ## Maximum allowed http request body size in bytes.
  3969. # ## 0 means to use the default of 524,288,000 bytes (500 mebibytes)
  3970. # max_body_size = "500MiB"
  3971. #
  3972. # ## Maximum line size allowed to be sent in bytes.
  3973. # ## 0 means to use the default of 65536 bytes (64 kibibytes)
  3974. # max_line_size = "64KiB"
  3975. #
  3976. # ## Set one or more allowed client CA certificate file names to
  3977. # ## enable mutually authenticated TLS connections
  3978. # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  3979. #
  3980. # ## Add service certificate and key
  3981. # tls_cert = "/etc/telegraf/cert.pem"
  3982. # tls_key = "/etc/telegraf/key.pem"
  3983. #
  3984. # ## Optional username and password to accept for HTTP basic authentication.
  3985. # ## You probably want to make sure you have TLS configured above for this.
  3986. # # basic_username = "foobar"
  3987. # # basic_password = "barfoo"
  3988. # # Read JTI OpenConfig Telemetry from listed sensors
  3989. # [[inputs.jti_openconfig_telemetry]]
  3990. # ## List of device addresses to collect telemetry from
  3991. # servers = ["localhost:1883"]
  3992. #
  3993. # ## Authentication details. Username and password are must if device expects
  3994. # ## authentication. Client ID must be unique when connecting from multiple instances
  3995. # ## of telegraf to the same device
  3996. # username = "user"
  3997. # password = "pass"
  3998. # client_id = "telegraf"
  3999. #
  4000. # ## Frequency to get data
  4001. # sample_frequency = "1000ms"
  4002. #
  4003. # ## Sensors to subscribe for
  4004. # ## A identifier for each sensor can be provided in path by separating with space
  4005. # ## Else sensor path will be used as identifier
  4006. # ## When identifier is used, we can provide a list of space separated sensors.
  4007. # ## A single subscription will be created with all these sensors and data will
  4008. # ## be saved to measurement with this identifier name
  4009. # sensors = [
  4010. # "/interfaces/",
  4011. # "collection /components/ /lldp",
  4012. # ]
  4013. #
  4014. # ## We allow specifying sensor group level reporting rate. To do this, specify the
  4015. # ## reporting rate in Duration at the beginning of sensor paths / collection
  4016. # ## name. For entries without reporting rate, we use configured sample frequency
  4017. # sensors = [
  4018. # "1000ms customReporting /interfaces /lldp",
  4019. # "2000ms collection /components",
  4020. # "/interfaces",
  4021. # ]
  4022. #
  4023. # ## x509 Certificate to use with TLS connection. If it is not provided, an insecure
  4024. # ## channel will be opened with server
  4025. # ssl_cert = "/etc/telegraf/cert.pem"
  4026. #
  4027. # ## Delay between retry attempts of failed RPC calls or streams. Defaults to 1000ms.
  4028. # ## Failed streams/calls will not be retried if 0 is provided
  4029. # retry_delay = "1000ms"
  4030. #
  4031. # ## To treat all string values as tags, set this to true
  4032. # str_as_tags = false
  4033. # # Read metrics from Kafka topic(s)
  4034. # [[inputs.kafka_consumer]]
  4035. # ## kafka servers
  4036. # brokers = ["localhost:9092"]
  4037. # ## topic(s) to consume
  4038. # topics = ["telegraf"]
  4039. # ## Add topic as tag if topic_tag is not empty
  4040. # # topic_tag = ""
  4041. #
  4042. # ## Optional Client id
  4043. # # client_id = "Telegraf"
  4044. #
  4045. # ## Set the minimal supported Kafka version. Setting this enables the use of new
  4046. # ## Kafka features and APIs. Of particular interest, lz4 compression
  4047. # ## requires at least version 0.10.0.0.
  4048. # ## ex: version = "1.1.0"
  4049. # # version = ""
  4050. #
  4051. # ## Optional TLS Config
  4052. # # tls_ca = "/etc/telegraf/ca.pem"
  4053. # # tls_cert = "/etc/telegraf/cert.pem"
  4054. # # tls_key = "/etc/telegraf/key.pem"
  4055. # ## Use TLS but skip chain & host verification
  4056. # # insecure_skip_verify = false
  4057. #
  4058. # ## Optional SASL Config
  4059. # # sasl_username = "kafka"
  4060. # # sasl_password = "secret"
  4061. #
  4062. # ## the name of the consumer group
  4063. # consumer_group = "telegraf_metrics_consumers"
  4064. # ## Offset (must be either "oldest" or "newest")
  4065. # offset = "oldest"
  4066. # ## Maximum length of a message to consume, in bytes (default 0/unlimited);
  4067. # ## larger messages are dropped
  4068. # max_message_len = 1000000
  4069. #
  4070. # ## Maximum messages to read from the broker that have not been written by an
  4071. # ## output. For best throughput set based on the number of metrics within
  4072. # ## each message and the size of the output's metric_batch_size.
  4073. # ##
  4074. # ## For example, if each message from the queue contains 10 metrics and the
  4075. # ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  4076. # ## full batch is collected and the write is triggered immediately without
  4077. # ## waiting until the next flush_interval.
  4078. # # max_undelivered_messages = 1000
  4079. #
  4080. # ## Data format to consume.
  4081. # ## Each data format has its own unique set of configuration options, read
  4082. # ## more about them here:
  4083. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  4084. # data_format = "influx"
  4085. # # Read metrics from Kafka topic(s)
  4086. # [[inputs.kafka_consumer_legacy]]
  4087. # ## topic(s) to consume
  4088. # topics = ["telegraf"]
  4089. # ## an array of Zookeeper connection strings
  4090. # zookeeper_peers = ["localhost:2181"]
  4091. # ## Zookeeper Chroot
  4092. # zookeeper_chroot = ""
  4093. # ## the name of the consumer group
  4094. # consumer_group = "telegraf_metrics_consumers"
  4095. # ## Offset (must be either "oldest" or "newest")
  4096. # offset = "oldest"
  4097. #
  4098. # ## Data format to consume.
  4099. # ## Each data format has its own unique set of configuration options, read
  4100. # ## more about them here:
  4101. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  4102. # data_format = "influx"
  4103. #
  4104. # ## Maximum length of a message to consume, in bytes (default 0/unlimited);
  4105. # ## larger messages are dropped
  4106. # max_message_len = 65536
  4107. # # Configuration for the AWS Kinesis input.
  4108. # [[inputs.kinesis_consumer]]
  4109. # ## Amazon REGION of kinesis endpoint.
  4110. # region = "ap-southeast-2"
  4111. #
  4112. # ## Amazon Credentials
  4113. # ## Credentials are loaded in the following order
  4114. # ## 1) Assumed credentials via STS if role_arn is specified
  4115. # ## 2) explicit credentials from 'access_key' and 'secret_key'
  4116. # ## 3) shared profile from 'profile'
  4117. # ## 4) environment variables
  4118. # ## 5) shared credentials file
  4119. # ## 6) EC2 Instance Profile
  4120. # # access_key = ""
  4121. # # secret_key = ""
  4122. # # token = ""
  4123. # # role_arn = ""
  4124. # # profile = ""
  4125. # # shared_credential_file = ""
  4126. #
  4127. # ## Endpoint to make request against, the correct endpoint is automatically
  4128. # ## determined and this option should only be set if you wish to override the
  4129. # ## default.
  4130. # ## ex: endpoint_url = "http://localhost:8000"
  4131. # # endpoint_url = ""
  4132. #
  4133. # ## Kinesis StreamName must exist prior to starting telegraf.
  4134. # streamname = "StreamName"
  4135. #
  4136. # ## Shard iterator type (only 'TRIM_HORIZON' and 'LATEST' currently supported)
  4137. # # shard_iterator_type = "TRIM_HORIZON"
  4138. #
  4139. # ## Maximum messages to read from the broker that have not been written by an
  4140. # ## output. For best throughput set based on the number of metrics within
  4141. # ## each message and the size of the output's metric_batch_size.
  4142. # ##
  4143. # ## For example, if each message from the queue contains 10 metrics and the
  4144. # ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  4145. # ## full batch is collected and the write is triggered immediately without
  4146. # ## waiting until the next flush_interval.
  4147. # # max_undelivered_messages = 1000
  4148. #
  4149. # ## Data format to consume.
  4150. # ## Each data format has its own unique set of configuration options, read
  4151. # ## more about them here:
  4152. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  4153. # data_format = "influx"
  4154. #
  4155. # ## Optional
  4156. # ## Configuration for a dynamodb checkpoint
  4157. # [inputs.kinesis_consumer.checkpoint_dynamodb]
  4158. # ## unique name for this consumer
  4159. # app_name = "default"
  4160. # table_name = "default"
  4161. # # Stream and parse log file(s).
  4162. [[inputs.logparser]]
  4163. # ## Log files to parse.
  4164. # ## These accept standard unix glob matching rules, but with the addition of
  4165. # ## ** as a "super asterisk". ie:
  4166. # ## /var/log/**.log -> recursively find all .log files in /var/log
  4167. # ## /var/log/*/*.log -> find all .log files with a parent dir in /var/log
  4168. # ## /var/log/apache.log -> only tail the apache log file
  4169. files = [
  4170. "/var/log/*.log",
  4171. "/var/log/grafana/*.log"
  4172. ]
  4173. [inputs.logparser.grok]
  4174. measurement = "logs"
  4175. patterns = ['^%{GREEDYDATA:message:string}']
  4176. #
  4177. # ## Read files that currently exist from the beginning. Files that are created
  4178. # ## while telegraf is running (and that match the "files" globs) will always
  4179. # ## be read from the beginning.
  4180. # from_beginning = false
  4181. #
  4182. # ## Method used to watch for file updates. Can be either "inotify" or "poll".
  4183. # # watch_method = "inotify"
  4184. #
  4185. # ## Parse logstash-style "grok" patterns:
  4186. # [inputs.logparser.grok]
  4187. # ## This is a list of patterns to check the given log file(s) for.
  4188. # ## Note that adding patterns here increases processing time. The most
  4189. # ## efficient configuration is to have one pattern per logparser.
  4190. # ## Other common built-in patterns are:
  4191. # ## %{COMMON_LOG_FORMAT} (plain apache & nginx access logs)
  4192. # ## %{COMBINED_LOG_FORMAT} (access logs + referrer & agent)
  4193. # patterns = ["%{COMBINED_LOG_FORMAT}"]
  4194. #
  4195. # ## Name of the outputted measurement name.
  4196. # measurement = "apache_access_log"
  4197. #
  4198. # ## Full path(s) to custom pattern files.
  4199. # custom_pattern_files = []
  4200. #
  4201. # ## Custom patterns can also be defined here. Put one pattern per line.
  4202. # custom_patterns = '''
  4203. # '''
  4204. #
  4205. # ## Timezone allows you to provide an override for timestamps that
  4206. # ## don't already include an offset
  4207. # ## e.g. 04/06/2016 12:41:45 data one two 5.43µs
  4208. # ##
  4209. # ## Default: "" which renders UTC
  4210. # ## Options are as follows:
  4211. # ## 1. Local -- interpret based on machine localtime
  4212. # ## 2. "Canada/Eastern" -- Unix TZ values like those found in https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  4213. # ## 3. UTC -- or blank/unspecified, will return timestamp in UTC
  4214. # # timezone = "Canada/Eastern"
  4215. #
  4216. # ## When set to "disable", timestamp will not incremented if there is a
  4217. # ## duplicate.
  4218. # # unique_timestamp = "auto"
  4219. # # Read metrics from MQTT topic(s)
  4220. # [[inputs.mqtt_consumer]]
  4221. # ## MQTT broker URLs to be used. The format should be scheme://host:port,
  4222. # ## schema can be tcp, ssl, or ws.
  4223. # servers = ["tcp://localhost:1883"]
  4224. #
  4225. # ## QoS policy for messages
  4226. # ## 0 = at most once
  4227. # ## 1 = at least once
  4228. # ## 2 = exactly once
  4229. # ##
  4230. # ## When using a QoS of 1 or 2, you should enable persistent_session to allow
  4231. # ## resuming unacknowledged messages.
  4232. # qos = 0
  4233. #
  4234. # ## Connection timeout for initial connection in seconds
  4235. # connection_timeout = "30s"
  4236. #
  4237. # ## Maximum messages to read from the broker that have not been written by an
  4238. # ## output. For best throughput set based on the number of metrics within
  4239. # ## each message and the size of the output's metric_batch_size.
  4240. # ##
  4241. # ## For example, if each message from the queue contains 10 metrics and the
  4242. # ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  4243. # ## full batch is collected and the write is triggered immediately without
  4244. # ## waiting until the next flush_interval.
  4245. # # max_undelivered_messages = 1000
  4246. #
  4247. # ## Topics to subscribe to
  4248. # topics = [
  4249. # "telegraf/host01/cpu",
  4250. # "telegraf/+/mem",
  4251. # "sensors/#",
  4252. # ]
  4253. #
  4254. # # if true, messages that can't be delivered while the subscriber is offline
  4255. # # will be delivered when it comes back (such as on service restart).
  4256. # # NOTE: if true, client_id MUST be set
  4257. # persistent_session = false
  4258. # # If empty, a random client ID will be generated.
  4259. # client_id = ""
  4260. #
  4261. # ## username and password to connect MQTT server.
  4262. # # username = "telegraf"
  4263. # # password = "metricsmetricsmetricsmetrics"
  4264. #
  4265. # ## Optional TLS Config
  4266. # # tls_ca = "/etc/telegraf/ca.pem"
  4267. # # tls_cert = "/etc/telegraf/cert.pem"
  4268. # # tls_key = "/etc/telegraf/key.pem"
  4269. # ## Use TLS but skip chain & host verification
  4270. # # insecure_skip_verify = false
  4271. #
  4272. # ## Data format to consume.
  4273. # ## Each data format has its own unique set of configuration options, read
  4274. # ## more about them here:
  4275. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  4276. # data_format = "influx"
  4277. # # Read metrics from NATS subject(s)
  4278. # [[inputs.nats_consumer]]
  4279. # ## urls of NATS servers
  4280. # servers = ["nats://localhost:4222"]
  4281. # ## Use Transport Layer Security
  4282. # secure = false
  4283. # ## subject(s) to consume
  4284. # subjects = ["telegraf"]
  4285. # ## name a queue group
  4286. # queue_group = "telegraf_consumers"
  4287. #
  4288. # ## Sets the limits for pending msgs and bytes for each subscription
  4289. # ## These shouldn't need to be adjusted except in very high throughput scenarios
  4290. # # pending_message_limit = 65536
  4291. # # pending_bytes_limit = 67108864
  4292. #
  4293. # ## Maximum messages to read from the broker that have not been written by an
  4294. # ## output. For best throughput set based on the number of metrics within
  4295. # ## each message and the size of the output's metric_batch_size.
  4296. # ##
  4297. # ## For example, if each message from the queue contains 10 metrics and the
  4298. # ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  4299. # ## full batch is collected and the write is triggered immediately without
  4300. # ## waiting until the next flush_interval.
  4301. # # max_undelivered_messages = 1000
  4302. #
  4303. # ## Data format to consume.
  4304. # ## Each data format has its own unique set of configuration options, read
  4305. # ## more about them here:
  4306. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  4307. # data_format = "influx"
  4308. # # Read NSQ topic for metrics.
  4309. # [[inputs.nsq_consumer]]
  4310. # ## Server option still works but is deprecated, we just prepend it to the nsqd array.
  4311. # # server = "localhost:4150"
  4312. # ## An array representing the NSQD TCP HTTP Endpoints
  4313. # nsqd = ["localhost:4150"]
  4314. # ## An array representing the NSQLookupd HTTP Endpoints
  4315. # nsqlookupd = ["localhost:4161"]
  4316. # topic = "telegraf"
  4317. # channel = "consumer"
  4318. # max_in_flight = 100
  4319. #
  4320. # ## Maximum messages to read from the broker that have not been written by an
  4321. # ## output. For best throughput set based on the number of metrics within
  4322. # ## each message and the size of the output's metric_batch_size.
  4323. # ##
  4324. # ## For example, if each message from the queue contains 10 metrics and the
  4325. # ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  4326. # ## full batch is collected and the write is triggered immediately without
  4327. # ## waiting until the next flush_interval.
  4328. # # max_undelivered_messages = 1000
  4329. #
  4330. # ## Data format to consume.
  4331. # ## Each data format has its own unique set of configuration options, read
  4332. # ## more about them here:
  4333. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  4334. # data_format = "influx"
  4335. # # Read metrics from one or many pgbouncer servers
  4336. # [[inputs.pgbouncer]]
  4337. # ## specify address via a url matching:
  4338. # ## postgres://[pqgotest[:password]]@localhost[/dbname]\
  4339. # ## ?sslmode=[disable|verify-ca|verify-full]
  4340. # ## or a simple string:
  4341. # ## host=localhost user=pqotest password=... sslmode=... dbname=app_production
  4342. # ##
  4343. # ## All connection parameters are optional.
  4344. # ##
  4345. # address = "host=localhost user=pgbouncer sslmode=disable"
  4346. # # Read metrics from one or many postgresql servers
  4347. # [[inputs.postgresql]]
  4348. # ## specify address via a url matching:
  4349. # ## postgres://[pqgotest[:password]]@localhost[/dbname]\
  4350. # ## ?sslmode=[disable|verify-ca|verify-full]
  4351. # ## or a simple string:
  4352. # ## host=localhost user=pqotest password=... sslmode=... dbname=app_production
  4353. # ##
  4354. # ## All connection parameters are optional.
  4355. # ##
  4356. # ## Without the dbname parameter, the driver will default to a database
  4357. # ## with the same name as the user. This dbname is just for instantiating a
  4358. # ## connection with the server and doesn't restrict the databases we are trying
  4359. # ## to grab metrics for.
  4360. # ##
  4361. # address = "host=localhost user=postgres sslmode=disable"
  4362. # ## A custom name for the database that will be used as the "server" tag in the
  4363. # ## measurement output. If not specified, a default one generated from
  4364. # ## the connection address is used.
  4365. # # outputaddress = "db01"
  4366. #
  4367. # ## connection configuration.
  4368. # ## maxlifetime - specify the maximum lifetime of a connection.
  4369. # ## default is forever (0s)
  4370. # max_lifetime = "0s"
  4371. #
  4372. # ## A list of databases to explicitly ignore. If not specified, metrics for all
  4373. # ## databases are gathered. Do NOT use with the 'databases' option.
  4374. # # ignored_databases = ["postgres", "template0", "template1"]
  4375. #
  4376. # ## A list of databases to pull metrics about. If not specified, metrics for all
  4377. # ## databases are gathered. Do NOT use with the 'ignored_databases' option.
  4378. # # databases = ["app_production", "testing"]
  4379. # # Read metrics from one or many postgresql servers
  4380. # [[inputs.postgresql_extensible]]
  4381. # ## specify address via a url matching:
  4382. # ## postgres://[pqgotest[:password]]@localhost[/dbname]\
  4383. # ## ?sslmode=[disable|verify-ca|verify-full]
  4384. # ## or a simple string:
  4385. # ## host=localhost user=pqotest password=... sslmode=... dbname=app_production
  4386. # #
  4387. # ## All connection parameters are optional. #
  4388. # ## Without the dbname parameter, the driver will default to a database
  4389. # ## with the same name as the user. This dbname is just for instantiating a
  4390. # ## connection with the server and doesn't restrict the databases we are trying
  4391. # ## to grab metrics for.
  4392. # #
  4393. # address = "host=localhost user=postgres sslmode=disable"
  4394. #
  4395. # ## connection configuration.
  4396. # ## maxlifetime - specify the maximum lifetime of a connection.
  4397. # ## default is forever (0s)
  4398. # max_lifetime = "0s"
  4399. #
  4400. # ## A list of databases to pull metrics about. If not specified, metrics for all
  4401. # ## databases are gathered.
  4402. # ## databases = ["app_production", "testing"]
  4403. # #
  4404. # ## A custom name for the database that will be used as the "server" tag in the
  4405. # ## measurement output. If not specified, a default one generated from
  4406. # ## the connection address is used.
  4407. # # outputaddress = "db01"
  4408. # #
  4409. # ## Define the toml config where the sql queries are stored
  4410. # ## New queries can be added, if the withdbname is set to true and there is no
  4411. # ## databases defined in the 'databases field', the sql query is ended by a
  4412. # ## 'is not null' in order to make the query succeed.
  4413. # ## Example :
  4414. # ## The sqlquery : "SELECT * FROM pg_stat_database where datname" become
  4415. # ## "SELECT * FROM pg_stat_database where datname IN ('postgres', 'pgbench')"
  4416. # ## because the databases variable was set to ['postgres', 'pgbench' ] and the
  4417. # ## withdbname was true. Be careful that if the withdbname is set to false you
  4418. # ## don't have to define the where clause (aka with the dbname) the tagvalue
  4419. # ## field is used to define custom tags (separated by commas)
  4420. # ## The optional "measurement" value can be used to override the default
  4421. # ## output measurement name ("postgresql").
  4422. # #
  4423. # ## Structure :
  4424. # ## [[inputs.postgresql_extensible.query]]
  4425. # ## sqlquery string
  4426. # ## version string
  4427. # ## withdbname boolean
  4428. # ## tagvalue string (comma separated)
  4429. # ## measurement string
  4430. # [[inputs.postgresql_extensible.query]]
  4431. # sqlquery="SELECT * FROM pg_stat_database"
  4432. # version=901
  4433. # withdbname=false
  4434. # tagvalue=""
  4435. # measurement=""
  4436. # [[inputs.postgresql_extensible.query]]
  4437. # sqlquery="SELECT * FROM pg_stat_bgwriter"
  4438. # version=901
  4439. # withdbname=false
  4440. # tagvalue="postgresql.stats"
  4441. # # Read metrics from one or many prometheus clients
  4442. # [[inputs.prometheus]]
  4443. # ## An array of urls to scrape metrics from.
  4444. # urls = ["http://localhost:9100/metrics"]
  4445. #
  4446. # ## An array of Kubernetes services to scrape metrics from.
  4447. # # kubernetes_services = ["http://my-service-dns.my-namespace:9100/metrics"]
  4448. #
  4449. # ## Kubernetes config file to create client from.
  4450. # # kube_config = "/path/to/kubernetes.config"
  4451. #
  4452. # ## Scrape Kubernetes pods for the following prometheus annotations:
  4453. # ## - prometheus.io/scrape: Enable scraping for this pod
  4454. # ## - prometheus.io/scheme: If the metrics endpoint is secured then you will need to
  4455. # ## set this to 'https' & most likely set the tls config.
  4456. # ## - prometheus.io/path: If the metrics path is not /metrics, define it with this annotation.
  4457. # ## - prometheus.io/port: If port is not 9102 use this annotation
  4458. # # monitor_kubernetes_pods = true
  4459. #
  4460. # ## Use bearer token for authorization. ('bearer_token' takes priority)
  4461. # # bearer_token = "/path/to/bearer/token"
  4462. # ## OR
  4463. # # bearer_token_string = "abc_123"
  4464. #
  4465. # ## Specify timeout duration for slower prometheus clients (default is 3s)
  4466. # # response_timeout = "3s"
  4467. #
  4468. # ## Optional TLS Config
  4469. # # tls_ca = /path/to/cafile
  4470. # # tls_cert = /path/to/certfile
  4471. # # tls_key = /path/to/keyfile
  4472. # ## Use TLS but skip chain & host verification
  4473. # # insecure_skip_verify = false
  4474. # # Generic socket listener capable of handling multiple socket types.
  4475. # [[inputs.socket_listener]]
  4476. # ## URL to listen on
  4477. # # service_address = "tcp://:8094"
  4478. # # service_address = "tcp://127.0.0.1:http"
  4479. # # service_address = "tcp4://:8094"
  4480. # # service_address = "tcp6://:8094"
  4481. # # service_address = "tcp6://[2001:db8::1]:8094"
  4482. # # service_address = "udp://:8094"
  4483. # # service_address = "udp4://:8094"
  4484. # # service_address = "udp6://:8094"
  4485. # # service_address = "unix:///tmp/telegraf.sock"
  4486. # # service_address = "unixgram:///tmp/telegraf.sock"
  4487. #
  4488. # ## Maximum number of concurrent connections.
  4489. # ## Only applies to stream sockets (e.g. TCP).
  4490. # ## 0 (default) is unlimited.
  4491. # # max_connections = 1024
  4492. #
  4493. # ## Read timeout.
  4494. # ## Only applies to stream sockets (e.g. TCP).
  4495. # ## 0 (default) is unlimited.
  4496. # # read_timeout = "30s"
  4497. #
  4498. # ## Optional TLS configuration.
  4499. # ## Only applies to stream sockets (e.g. TCP).
  4500. # # tls_cert = "/etc/telegraf/cert.pem"
  4501. # # tls_key = "/etc/telegraf/key.pem"
  4502. # ## Enables client authentication if set.
  4503. # # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  4504. #
  4505. # ## Maximum socket buffer size (in bytes when no unit specified).
  4506. # ## For stream sockets, once the buffer fills up, the sender will start backing up.
  4507. # ## For datagram sockets, once the buffer fills up, metrics will start dropping.
  4508. # ## Defaults to the OS default.
  4509. # # read_buffer_size = "64KiB"
  4510. #
  4511. # ## Period between keep alive probes.
  4512. # ## Only applies to TCP sockets.
  4513. # ## 0 disables keep alive probes.
  4514. # ## Defaults to the OS configuration.
  4515. # # keep_alive_period = "5m"
  4516. #
  4517. # ## Data format to consume.
  4518. # ## Each data format has its own unique set of configuration options, read
  4519. # ## more about them here:
  4520. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  4521. # # data_format = "influx"
  4522. # # Statsd UDP/TCP Server
  4523. # [[inputs.statsd]]
  4524. # ## Protocol, must be "tcp", "udp", "udp4" or "udp6" (default=udp)
  4525. # protocol = "udp"
  4526. #
  4527. # ## MaxTCPConnection - applicable when protocol is set to tcp (default=250)
  4528. # max_tcp_connections = 250
  4529. #
  4530. # ## Enable TCP keep alive probes (default=false)
  4531. # tcp_keep_alive = false
  4532. #
  4533. # ## Specifies the keep-alive period for an active network connection.
  4534. # ## Only applies to TCP sockets and will be ignored if tcp_keep_alive is false.
  4535. # ## Defaults to the OS configuration.
  4536. # # tcp_keep_alive_period = "2h"
  4537. #
  4538. # ## Address and port to host UDP listener on
  4539. # service_address = ":8125"
  4540. #
  4541. # ## The following configuration options control when telegraf clears it's cache
  4542. # ## of previous values. If set to false, then telegraf will only clear it's
  4543. # ## cache when the daemon is restarted.
  4544. # ## Reset gauges every interval (default=true)
  4545. # delete_gauges = true
  4546. # ## Reset counters every interval (default=true)
  4547. # delete_counters = true
  4548. # ## Reset sets every interval (default=true)
  4549. # delete_sets = true
  4550. # ## Reset timings & histograms every interval (default=true)
  4551. # delete_timings = true
  4552. #
  4553. # ## Percentiles to calculate for timing & histogram stats
  4554. # percentiles = [90]
  4555. #
  4556. # ## separator to use between elements of a statsd metric
  4557. # metric_separator = "_"
  4558. #
  4559. # ## Parses tags in the datadog statsd format
  4560. # ## http://docs.datadoghq.com/guides/dogstatsd/
  4561. # parse_data_dog_tags = false
  4562. #
  4563. # ## Statsd data translation templates, more info can be read here:
  4564. # ## https://github.com/influxdata/telegraf/blob/master/docs/TEMPLATE_PATTERN.md
  4565. # # templates = [
  4566. # # "cpu.* measurement*"
  4567. # # ]
  4568. #
  4569. # ## Number of UDP messages allowed to queue up, once filled,
  4570. # ## the statsd server will start dropping packets
  4571. # allowed_pending_messages = 10000
  4572. #
  4573. # ## Number of timing/histogram values to track per-measurement in the
  4574. # ## calculation of percentiles. Raising this limit increases the accuracy
  4575. # ## of percentiles but also increases the memory usage and cpu time.
  4576. # percentile_limit = 1000
  4577. # # Accepts syslog messages following RFC5424 format with transports as per RFC5426, RFC5425, or RFC6587
  4578. # [[inputs.syslog]]
  4579. # ## Specify an ip or hostname with port - eg., tcp://localhost:6514, tcp://10.0.0.1:6514
  4580. # ## Protocol, address and port to host the syslog receiver.
  4581. # ## If no host is specified, then localhost is used.
  4582. # ## If no port is specified, 6514 is used (RFC5425#section-4.1).
  4583. # server = "tcp://:6514"
  4584. #
  4585. # ## TLS Config
  4586. # # tls_allowed_cacerts = ["/etc/telegraf/ca.pem"]
  4587. # # tls_cert = "/etc/telegraf/cert.pem"
  4588. # # tls_key = "/etc/telegraf/key.pem"
  4589. #
  4590. # ## Period between keep alive probes.
  4591. # ## 0 disables keep alive probes.
  4592. # ## Defaults to the OS configuration.
  4593. # ## Only applies to stream sockets (e.g. TCP).
  4594. # # keep_alive_period = "5m"
  4595. #
  4596. # ## Maximum number of concurrent connections (default = 0).
  4597. # ## 0 means unlimited.
  4598. # ## Only applies to stream sockets (e.g. TCP).
  4599. # # max_connections = 1024
  4600. #
  4601. # ## Read timeout is the maximum time allowed for reading a single message (default = 5s).
  4602. # ## 0 means unlimited.
  4603. # # read_timeout = "5s"
  4604. #
  4605. # ## The framing technique with which it is expected that messages are transported (default = "octet-counting").
  4606. # ## Whether the messages come using the octect-counting (RFC5425#section-4.3.1, RFC6587#section-3.4.1),
  4607. # ## or the non-transparent framing technique (RFC6587#section-3.4.2).
  4608. # ## Must be one of "octect-counting", "non-transparent".
  4609. # # framing = "octet-counting"
  4610. #
  4611. # ## The trailer to be expected in case of non-trasparent framing (default = "LF").
  4612. # ## Must be one of "LF", or "NUL".
  4613. # # trailer = "LF"
  4614. #
  4615. # ## Whether to parse in best effort mode or not (default = false).
  4616. # ## By default best effort parsing is off.
  4617. # # best_effort = false
  4618. #
  4619. # ## Character to prepend to SD-PARAMs (default = "_").
  4620. # ## A syslog message can contain multiple parameters and multiple identifiers within structured data section.
  4621. # ## Eg., [id1 name1="val1" name2="val2"][id2 name1="val1" nameA="valA"]
  4622. # ## For each combination a field is created.
  4623. # ## Its name is created concatenating identifier, sdparam_separator, and parameter name.
  4624. # # sdparam_separator = "_"
  4625. # # Stream a log file, like the tail -f command
  4626. # [[inputs.tail]]
  4627. # ## files to tail.
  4628. # ## These accept standard unix glob matching rules, but with the addition of
  4629. # ## ** as a "super asterisk". ie:
  4630. # ## "/var/log/**.log" -> recursively find all .log files in /var/log
  4631. # ## "/var/log/*/*.log" -> find all .log files with a parent dir in /var/log
  4632. # ## "/var/log/apache.log" -> just tail the apache log file
  4633. # ##
  4634. # ## See https://github.com/gobwas/glob for more examples
  4635. # ##
  4636. # files = ["/var/log/grafana/*.log"]
  4637. # ## Read file from beginning.
  4638. # from_beginning = false
  4639. # ## Whether file is a named pipe
  4640. # pipe = false
  4641. #
  4642. # ## Method used to watch for file updates. Can be either "inotify" or "poll".
  4643. # # watch_method = "inotify"
  4644. #
  4645. # ## Data format to consume.
  4646. # ## Each data format has its own unique set of configuration options, read
  4647. # ## more about them here:
  4648. # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  4649. # data_format = "logfmt"
  4650. # # Generic TCP listener
  4651. # [[inputs.tcp_listener]]
  4652. # # DEPRECATED: the TCP listener plugin has been deprecated in favor of the
  4653. # # socket_listener plugin
  4654. # # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/socket_listener
  4655. # # Generic UDP listener
  4656. # [[inputs.udp_listener]]
  4657. # # DEPRECATED: the TCP listener plugin has been deprecated in favor of the
  4658. # # socket_listener plugin
  4659. # # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/socket_listener
  4660. # # Read metrics from VMware vCenter
  4661. # [[inputs.vsphere]]
  4662. # ## List of vCenter URLs to be monitored. These three lines must be uncommented
  4663. # ## and edited for the plugin to work.
  4664. # vcenters = [ "https://vcenter.local/sdk" ]
  4665. # username = "user@corp.local"
  4666. # password = "secret"
  4667. #
  4668. # ## VMs
  4669. # ## Typical VM metrics (if omitted or empty, all metrics are collected)
  4670. # vm_metric_include = [
  4671. # "cpu.demand.average",
  4672. # "cpu.idle.summation",
  4673. # "cpu.latency.average",
  4674. # "cpu.readiness.average",
  4675. # "cpu.ready.summation",
  4676. # "cpu.run.summation",
  4677. # "cpu.usagemhz.average",
  4678. # "cpu.used.summation",
  4679. # "cpu.wait.summation",
  4680. # "mem.active.average",
  4681. # "mem.granted.average",
  4682. # "mem.latency.average",
  4683. # "mem.swapin.average",
  4684. # "mem.swapinRate.average",
  4685. # "mem.swapout.average",
  4686. # "mem.swapoutRate.average",
  4687. # "mem.usage.average",
  4688. # "mem.vmmemctl.average",
  4689. # "net.bytesRx.average",
  4690. # "net.bytesTx.average",
  4691. # "net.droppedRx.summation",
  4692. # "net.droppedTx.summation",
  4693. # "net.usage.average",
  4694. # "power.power.average",
  4695. # "virtualDisk.numberReadAveraged.average",
  4696. # "virtualDisk.numberWriteAveraged.average",
  4697. # "virtualDisk.read.average",
  4698. # "virtualDisk.readOIO.latest",
  4699. # "virtualDisk.throughput.usage.average",
  4700. # "virtualDisk.totalReadLatency.average",
  4701. # "virtualDisk.totalWriteLatency.average",
  4702. # "virtualDisk.write.average",
  4703. # "virtualDisk.writeOIO.latest",
  4704. # "sys.uptime.latest",
  4705. # ]
  4706. # # vm_metric_exclude = [] ## Nothing is excluded by default
  4707. # # vm_instances = true ## true by default
  4708. #
  4709. # ## Hosts
  4710. # ## Typical host metrics (if omitted or empty, all metrics are collected)
  4711. # host_metric_include = [
  4712. # "cpu.coreUtilization.average",
  4713. # "cpu.costop.summation",
  4714. # "cpu.demand.average",
  4715. # "cpu.idle.summation",
  4716. # "cpu.latency.average",
  4717. # "cpu.readiness.average",
  4718. # "cpu.ready.summation",
  4719. # "cpu.swapwait.summation",
  4720. # "cpu.usage.average",
  4721. # "cpu.usagemhz.average",
  4722. # "cpu.used.summation",
  4723. # "cpu.utilization.average",
  4724. # "cpu.wait.summation",
  4725. # "disk.deviceReadLatency.average",
  4726. # "disk.deviceWriteLatency.average",
  4727. # "disk.kernelReadLatency.average",
  4728. # "disk.kernelWriteLatency.average",
  4729. # "disk.numberReadAveraged.average",
  4730. # "disk.numberWriteAveraged.average",
  4731. # "disk.read.average",
  4732. # "disk.totalReadLatency.average",
  4733. # "disk.totalWriteLatency.average",
  4734. # "disk.write.average",
  4735. # "mem.active.average",
  4736. # "mem.latency.average",
  4737. # "mem.state.latest",
  4738. # "mem.swapin.average",
  4739. # "mem.swapinRate.average",
  4740. # "mem.swapout.average",
  4741. # "mem.swapoutRate.average",
  4742. # "mem.totalCapacity.average",
  4743. # "mem.usage.average",
  4744. # "mem.vmmemctl.average",
  4745. # "net.bytesRx.average",
  4746. # "net.bytesTx.average",
  4747. # "net.droppedRx.summation",
  4748. # "net.droppedTx.summation",
  4749. # "net.errorsRx.summation",
  4750. # "net.errorsTx.summation",
  4751. # "net.usage.average",
  4752. # "power.power.average",
  4753. # "storageAdapter.numberReadAveraged.average",
  4754. # "storageAdapter.numberWriteAveraged.average",
  4755. # "storageAdapter.read.average",
  4756. # "storageAdapter.write.average",
  4757. # "sys.uptime.latest",
  4758. # ]
  4759. # # host_metric_exclude = [] ## Nothing excluded by default
  4760. # # host_instances = true ## true by default
  4761. #
  4762. # ## Clusters
  4763. # # cluster_metric_include = [] ## if omitted or empty, all metrics are collected
  4764. # # cluster_metric_exclude = [] ## Nothing excluded by default
  4765. # # cluster_instances = false ## false by default
  4766. #
  4767. # ## Datastores
  4768. # # datastore_metric_include = [] ## if omitted or empty, all metrics are collected
  4769. # # datastore_metric_exclude = [] ## Nothing excluded by default
  4770. # # datastore_instances = false ## false by default for Datastores only
  4771. #
  4772. # ## Datacenters
  4773. # datacenter_metric_include = [] ## if omitted or empty, all metrics are collected
  4774. # datacenter_metric_exclude = [ "*" ] ## Datacenters are not collected by default.
  4775. # # datacenter_instances = false ## false by default for Datastores only
  4776. #
  4777. # ## Plugin Settings
  4778. # ## separator character to use for measurement and field names (default: "_")
  4779. # # separator = "_"
  4780. #
  4781. # ## number of objects to retreive per query for realtime resources (vms and hosts)
  4782. # ## set to 64 for vCenter 5.5 and 6.0 (default: 256)
  4783. # # max_query_objects = 256
  4784. #
  4785. # ## number of metrics to retreive per query for non-realtime resources (clusters and datastores)
  4786. # ## set to 64 for vCenter 5.5 and 6.0 (default: 256)
  4787. # # max_query_metrics = 256
  4788. #
  4789. # ## number of go routines to use for collection and discovery of objects and metrics
  4790. # # collect_concurrency = 1
  4791. # # discover_concurrency = 1
  4792. #
  4793. # ## whether or not to force discovery of new objects on initial gather call before collecting metrics
  4794. # ## when true for large environments this may cause errors for time elapsed while collecting metrics
  4795. # ## when false (default) the first collection cycle may result in no or limited metrics while objects are discovered
  4796. # # force_discover_on_init = false
  4797. #
  4798. # ## the interval before (re)discovering objects subject to metrics collection (default: 300s)
  4799. # # object_discovery_interval = "300s"
  4800. #
  4801. # ## timeout applies to any of the api request made to vcenter
  4802. # # timeout = "60s"
  4803. #
  4804. # ## When set to true, all samples are sent as integers. This makes the output data types backwards compatible
  4805. # ## with Telegraf 1.9 or lower. Normally all samples from vCenter, with the exception of percentages, are
  4806. # ## integer values, but under some conditions, some averaging takes place internally in the plugin. Setting this
  4807. # ## flag to "false" will send values as floats to preserve the full precision when averaging takes place.
  4808. # # use_int_samples = true
  4809. #
  4810. # ## Optional SSL Config
  4811. # # ssl_ca = "/path/to/cafile"
  4812. # # ssl_cert = "/path/to/certfile"
  4813. # # ssl_key = "/path/to/keyfile"
  4814. # ## Use SSL but skip chain & host verification
  4815. # # insecure_skip_verify = false
  4816. # # A Webhooks Event collector
  4817. # [[inputs.webhooks]]
  4818. # ## Address and port to host Webhook listener on
  4819. # service_address = ":1619"
  4820. #
  4821. # [inputs.webhooks.filestack]
  4822. # path = "/filestack"
  4823. #
  4824. # [inputs.webhooks.github]
  4825. # path = "/github"
  4826. # # secret = ""
  4827. #
  4828. # [inputs.webhooks.mandrill]
  4829. # path = "/mandrill"
  4830. #
  4831. # [inputs.webhooks.rollbar]
  4832. # path = "/rollbar"
  4833. #
  4834. # [inputs.webhooks.papertrail]
  4835. # path = "/papertrail"
  4836. #
  4837. # [inputs.webhooks.particle]
  4838. # path = "/particle"
  4839. # # This plugin implements the Zipkin http server to gather trace and timing data needed to troubleshoot latency problems in microservice architectures.
  4840. # [[inputs.zipkin]]
  4841. # # path = "/api/v1/spans" # URL path for span data
  4842. # # port = 9411 # Port on which Telegraf listens