No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_telegraf_telegraf.j2 182KB

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