netdata-swagger.yaml 75 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171
  1. openapi: 3.0.0
  2. info:
  3. title: Netdata API
  4. description: Real-time performance and health monitoring.
  5. version: 1.33.1
  6. paths:
  7. /info:
  8. get:
  9. summary: Get netdata basic information
  10. description: |
  11. The info endpoint returns basic information about netdata. It provides:
  12. * netdata version
  13. * netdata unique id
  14. * list of hosts mirrored (includes itself)
  15. * Operating System, Virtualization, K8s nodes and Container technology information
  16. * List of active collector plugins and modules
  17. * Streaming information
  18. * number of alarms in the host
  19. * number of alarms in normal state
  20. * number of alarms in warning state
  21. * number of alarms in critical state
  22. responses:
  23. "200":
  24. description: netdata basic information.
  25. content:
  26. application/json:
  27. schema:
  28. $ref: "#/components/schemas/info"
  29. "503":
  30. description: netdata daemon not ready (used for health checks).
  31. /charts:
  32. get:
  33. summary: Get a list of all charts available at the server
  34. description: The charts endpoint returns a summary about all charts stored in the
  35. netdata server.
  36. responses:
  37. "200":
  38. description: An array of charts.
  39. content:
  40. application/json:
  41. schema:
  42. $ref: "#/components/schemas/chart_summary"
  43. /chart:
  44. get:
  45. summary: Get info about a specific chart
  46. description: The chart endpoint returns detailed information about a chart.
  47. parameters:
  48. - name: chart
  49. in: query
  50. description: The id of the chart as returned by the /charts call.
  51. required: true
  52. schema:
  53. type: string
  54. format: as returned by /charts
  55. default: system.cpu
  56. responses:
  57. "200":
  58. description: A javascript object with detailed information about the chart.
  59. content:
  60. application/json:
  61. schema:
  62. $ref: "#/components/schemas/chart"
  63. "400":
  64. description: No chart id was supplied in the request.
  65. "404":
  66. description: No chart with the given id is found.
  67. /contexts:
  68. get:
  69. summary: Get a list of all contexts available at the server
  70. description: The contexts endpoint returns a summary about all contexts stored in the
  71. netdata server.
  72. parameters:
  73. - name: options
  74. in: query
  75. description: Options that affect data generation.
  76. required: false
  77. allowEmptyValue: true
  78. schema:
  79. type: array
  80. items:
  81. type: string
  82. enum:
  83. - full
  84. - all
  85. - charts
  86. - dimensions
  87. - labels
  88. - uuids
  89. - queue
  90. - flags
  91. - deleted
  92. - deepscan
  93. default:
  94. - full
  95. - name: after
  96. in: query
  97. description: limit the results on context having data after this timestamp.
  98. required: false
  99. schema:
  100. type: number
  101. format: integer
  102. - name: before
  103. in: query
  104. description: limit the results on context having data before this timestamp.
  105. required: false
  106. schema:
  107. type: number
  108. format: integer
  109. - name: chart_label_key
  110. in: query
  111. description: a simple pattern matching charts label keys (use comma or pipe as separator)
  112. required: false
  113. allowEmptyValue: true
  114. schema:
  115. type: string
  116. - name: chart_labels_filter
  117. in: query
  118. description: a simple pattern matching charts label key and values (use colon for equality, comma or pipe as separator)
  119. required: false
  120. allowEmptyValue: true
  121. schema:
  122. type: string
  123. - name: dimensions
  124. in: query
  125. description: a simple pattern matching dimensions (use comma or pipe as separator)
  126. required: false
  127. allowEmptyValue: true
  128. schema:
  129. type: string
  130. responses:
  131. "200":
  132. description: An array of contexts.
  133. content:
  134. application/json:
  135. schema:
  136. $ref: "#/components/schemas/context_summary"
  137. /context:
  138. get:
  139. summary: Get info about a specific context
  140. description: The context endpoint returns detailed information about a given context.
  141. parameters:
  142. - name: context
  143. in: query
  144. description: The id of the context as returned by the /contexts call.
  145. required: true
  146. schema:
  147. type: string
  148. format: as returned by /contexts
  149. default: system.cpu
  150. - name: options
  151. in: query
  152. description: Options that affect data generation.
  153. required: false
  154. allowEmptyValue: true
  155. schema:
  156. type: array
  157. items:
  158. type: string
  159. enum:
  160. - full
  161. - all
  162. - charts
  163. - dimensions
  164. - labels
  165. - uuids
  166. - queue
  167. - flags
  168. - deleted
  169. - deepscan
  170. default:
  171. - full
  172. - name: after
  173. in: query
  174. description: limit the results on context having data after this timestamp.
  175. required: false
  176. schema:
  177. type: number
  178. format: integer
  179. - name: before
  180. in: query
  181. description: limit the results on context having data before this timestamp.
  182. required: false
  183. schema:
  184. type: number
  185. format: integer
  186. - name: chart_label_key
  187. in: query
  188. description: a simple pattern matching charts label keys (use comma or pipe as separator)
  189. required: false
  190. allowEmptyValue: true
  191. schema:
  192. type: string
  193. - name: chart_labels_filter
  194. in: query
  195. description: a simple pattern matching charts label key and values (use colon for equality, comma or pipe as separator)
  196. required: false
  197. allowEmptyValue: true
  198. schema:
  199. type: string
  200. - name: dimensions
  201. in: query
  202. description: a simple pattern matching dimensions (use comma or pipe as separator)
  203. required: false
  204. allowEmptyValue: true
  205. schema:
  206. type: string
  207. responses:
  208. "200":
  209. description: A javascript object with detailed information about the context.
  210. content:
  211. application/json:
  212. schema:
  213. $ref: "#/components/schemas/context"
  214. "400":
  215. description: No context id was supplied in the request.
  216. "404":
  217. description: No context with the given id is found.
  218. /alarm_variables:
  219. get:
  220. summary: List variables available to configure alarms for a chart
  221. description: Returns the basic information of a chart and all the variables that can
  222. be used in alarm and template health configurations for the particular
  223. chart or family.
  224. parameters:
  225. - name: chart
  226. in: query
  227. description: The id of the chart as returned by the /charts call.
  228. required: true
  229. schema:
  230. type: string
  231. format: as returned by /charts
  232. default: system.cpu
  233. responses:
  234. "200":
  235. description: A javascript object with information about the chart and the
  236. available variables.
  237. content:
  238. application/json:
  239. schema:
  240. $ref: "#/components/schemas/alarm_variables"
  241. "400":
  242. description: Bad request - the body will include a message stating what is wrong.
  243. "404":
  244. description: No chart with the given id is found.
  245. "500":
  246. description: Internal server error. This usually means the server is out of
  247. memory.
  248. /data:
  249. get:
  250. summary: Get collected data for a specific chart
  251. description: The data endpoint returns data stored in the round robin database of a
  252. chart.
  253. parameters:
  254. - name: chart
  255. in: query
  256. description: The id of the chart as returned by the /charts call. Note chart or context must be specified
  257. required: false
  258. allowEmptyValue: false
  259. schema:
  260. type: string
  261. format: as returned by /charts
  262. default: system.cpu
  263. - name: context
  264. in: query
  265. description: The context of the chart as returned by the /charts call. Note chart or context must be specified
  266. required: false
  267. allowEmptyValue: false
  268. schema:
  269. type: string
  270. format: as returned by /charts
  271. - name: dimension
  272. in: query
  273. description: Zero, one or more dimension ids or names, as returned by the /chart
  274. call, separated with comma or pipe. Netdata simple patterns are
  275. supported.
  276. required: false
  277. allowEmptyValue: false
  278. schema:
  279. type: array
  280. items:
  281. type: string
  282. format: as returned by /charts
  283. - name: after
  284. in: query
  285. description: "This parameter can either be an absolute timestamp specifying the
  286. starting point of the data to be returned, or a relative number of
  287. seconds (negative, relative to parameter: before). Netdata will
  288. assume it is a relative number if it is less that 3 years (in seconds).
  289. If not specified the default is -600 seconds. Netdata will adapt this
  290. parameter to the boundaries of the round robin database unless the allow_past
  291. option is specified."
  292. required: true
  293. allowEmptyValue: false
  294. schema:
  295. type: number
  296. format: integer
  297. default: -600
  298. - name: before
  299. in: query
  300. description: This parameter can either be an absolute timestamp specifying the
  301. ending point of the data to be returned, or a relative number of
  302. seconds (negative), relative to the last collected timestamp.
  303. Netdata will assume it is a relative number if it is less than 3
  304. years (in seconds). Netdata will adapt this parameter to the
  305. boundaries of the round robin database. The default is zero (i.e.
  306. the timestamp of the last value collected).
  307. required: false
  308. schema:
  309. type: number
  310. format: integer
  311. default: 0
  312. - name: points
  313. in: query
  314. description: The number of points to be returned. If not given, or it is <= 0, or
  315. it is bigger than the points stored in the round robin database for
  316. this chart for the given duration, all the available collected
  317. values for the given duration will be returned.
  318. required: true
  319. allowEmptyValue: false
  320. schema:
  321. type: number
  322. format: integer
  323. default: 20
  324. - name: chart_label_key
  325. in: query
  326. description: Specify the chart label keys that need to match for context queries as comma separated values.
  327. At least one matching key is needed to match the corresponding chart.
  328. required: false
  329. allowEmptyValue: false
  330. schema:
  331. type: string
  332. format: key1,key2,key3
  333. - name: chart_labels_filter
  334. in: query
  335. description: Specify the chart label keys and values to match for context queries. All keys/values need to
  336. match for the chart to be included in the query. The labels are specified as key1:value1,key2:value2
  337. required: false
  338. allowEmptyValue: false
  339. schema:
  340. type: string
  341. format: key1:value1,key2:value2,key3:value3
  342. - name: group
  343. in: query
  344. description: The grouping method. If multiple collected values are to be grouped
  345. in order to return fewer points, this parameters defines the method
  346. of grouping. methods supported "min", "max", "average", "sum",
  347. "incremental-sum". "max" is actually calculated on the absolute
  348. value collected (so it works for both positive and negative
  349. dimensions to return the most extreme value in either direction).
  350. required: true
  351. allowEmptyValue: false
  352. schema:
  353. type: string
  354. enum:
  355. - min
  356. - max
  357. - average
  358. - median
  359. - stddev
  360. - sum
  361. - incremental-sum
  362. - ses
  363. - des
  364. - cv
  365. - countif
  366. default: average
  367. - name: group_options
  368. in: query
  369. description: When the group function supports additional parameters, this field
  370. can be used to pass them to it. Currently only "countif" supports this.
  371. required: false
  372. allowEmptyValue: false
  373. schema:
  374. type: string
  375. - name: gtime
  376. in: query
  377. description: The grouping number of seconds. This is used in conjunction with
  378. group=average to change the units of metrics (ie when the data is
  379. per-second, setting gtime=60 will turn them to per-minute).
  380. required: false
  381. allowEmptyValue: false
  382. schema:
  383. type: number
  384. format: integer
  385. default: 0
  386. - name: timeout
  387. in: query
  388. description: Specify a timeout value in milliseconds after which the agent will
  389. abort the query and return a 503 error. A value of 0 indicates no timeout.
  390. required: false
  391. allowEmptyValue: false
  392. schema:
  393. type: number
  394. format: integer
  395. default: 0
  396. - name: format
  397. in: query
  398. description: The format of the data to be returned.
  399. required: true
  400. allowEmptyValue: false
  401. schema:
  402. type: string
  403. enum:
  404. - json
  405. - jsonp
  406. - csv
  407. - tsv
  408. - tsv-excel
  409. - ssv
  410. - ssvcomma
  411. - datatable
  412. - datasource
  413. - html
  414. - markdown
  415. - array
  416. - csvjsonarray
  417. default: json
  418. - name: options
  419. in: query
  420. description: Options that affect data generation.
  421. required: false
  422. allowEmptyValue: false
  423. schema:
  424. type: array
  425. items:
  426. type: string
  427. enum:
  428. - nonzero
  429. - flip
  430. - jsonwrap
  431. - min2max
  432. - seconds
  433. - milliseconds
  434. - abs
  435. - absolute
  436. - absolute-sum
  437. - null2zero
  438. - objectrows
  439. - google_json
  440. - percentage
  441. - unaligned
  442. - match-ids
  443. - match-names
  444. - showcustomvars
  445. - allow_past
  446. - anomaly-bit
  447. default:
  448. - seconds
  449. - jsonwrap
  450. - name: callback
  451. in: query
  452. description: For JSONP responses, the callback function name.
  453. required: false
  454. allowEmptyValue: true
  455. schema:
  456. type: string
  457. - name: filename
  458. in: query
  459. description: "Add Content-Disposition: attachment; filename= header to
  460. the response, that will instruct the browser to save the response
  461. with the given filename."
  462. required: false
  463. allowEmptyValue: true
  464. schema:
  465. type: string
  466. - name: tqx
  467. in: query
  468. description: "[Google Visualization
  469. API](https://developers.google.com/chart/interactive/docs/dev/imple\
  470. menting_data_source?hl=en) formatted parameter."
  471. required: false
  472. allowEmptyValue: true
  473. schema:
  474. type: string
  475. responses:
  476. "200":
  477. description: The call was successful. The response includes the data in the
  478. format requested. Swagger2.0 does not process the discriminator
  479. field to show polymorphism. The response will be one of the
  480. sub-types of the data-schema according to the chosen format, e.g.
  481. json -> data_json.
  482. content:
  483. application/json:
  484. schema:
  485. $ref: "#/components/schemas/data"
  486. "400":
  487. description: Bad request - the body will include a message stating what is wrong.
  488. "404":
  489. description: Chart or context is not found. The supplied chart or context will be reported.
  490. "500":
  491. description: Internal server error. This usually means the server is out of
  492. memory.
  493. /badge.svg:
  494. get:
  495. summary: Generate a badge in form of SVG image for a chart (or dimension)
  496. description: Successful responses are SVG images.
  497. parameters:
  498. - name: chart
  499. in: query
  500. description: The id of the chart as returned by the /charts call.
  501. required: true
  502. allowEmptyValue: false
  503. schema:
  504. type: string
  505. format: as returned by /charts
  506. default: system.cpu
  507. - name: alarm
  508. in: query
  509. description: The name of an alarm linked to the chart.
  510. required: false
  511. allowEmptyValue: true
  512. schema:
  513. type: string
  514. format: any text
  515. - name: dimension
  516. in: query
  517. description: Zero, one or more dimension ids, as returned by the /chart call.
  518. required: false
  519. allowEmptyValue: false
  520. schema:
  521. type: array
  522. items:
  523. type: string
  524. format: as returned by /charts
  525. - name: after
  526. in: query
  527. description: This parameter can either be an absolute timestamp specifying the
  528. starting point of the data to be returned, or a relative number of
  529. seconds, to the last collected timestamp. Netdata will assume it is
  530. a relative number if it is smaller than the duration of the round
  531. robin database for this chart. So, if the round robin database is
  532. 3600 seconds, any value from -3600 to 3600 will trigger relative
  533. arithmetics. Netdata will adapt this parameter to the boundaries of
  534. the round robin database.
  535. required: true
  536. allowEmptyValue: false
  537. schema:
  538. type: number
  539. format: integer
  540. default: -600
  541. - name: before
  542. in: query
  543. description: This parameter can either be an absolute timestamp specifying the
  544. ending point of the data to be returned, or a relative number of
  545. seconds, to the last collected timestamp. Netdata will assume it is
  546. a relative number if it is smaller than the duration of the round
  547. robin database for this chart. So, if the round robin database is
  548. 3600 seconds, any value from -3600 to 3600 will trigger relative
  549. arithmetics. Netdata will adapt this parameter to the boundaries of
  550. the round robin database.
  551. required: false
  552. schema:
  553. type: number
  554. format: integer
  555. default: 0
  556. - name: group
  557. in: query
  558. description: The grouping method. If multiple collected values are to be grouped
  559. in order to return fewer points, this parameters defines the method
  560. of grouping. methods are supported "min", "max", "average", "sum",
  561. "incremental-sum". "max" is actually calculated on the absolute
  562. value collected (so it works for both positive and negative
  563. dimensions to return the most extreme value in either direction).
  564. required: true
  565. allowEmptyValue: false
  566. schema:
  567. type: string
  568. enum:
  569. - min
  570. - max
  571. - average
  572. - median
  573. - stddev
  574. - sum
  575. - incremental-sum
  576. default: average
  577. - name: options
  578. in: query
  579. description: Options that affect data generation.
  580. required: false
  581. allowEmptyValue: true
  582. schema:
  583. type: array
  584. items:
  585. type: string
  586. enum:
  587. - abs
  588. - absolute
  589. - display-absolute
  590. - absolute-sum
  591. - null2zero
  592. - percentage
  593. - unaligned
  594. - anomaly-bit
  595. default:
  596. - absolute
  597. - name: label
  598. in: query
  599. description: A text to be used as the label.
  600. required: false
  601. allowEmptyValue: true
  602. schema:
  603. type: string
  604. format: any text
  605. - name: units
  606. in: query
  607. description: A text to be used as the units.
  608. required: false
  609. allowEmptyValue: true
  610. schema:
  611. type: string
  612. format: any text
  613. - name: label_color
  614. in: query
  615. description: A color to be used for the background of the label side(left side) of the badge. One of predefined colors or specific color in hex `RGB` or `RRGGBB` format (without preceding `#` character). If value wrong or not given default color will be used.
  616. required: false
  617. allowEmptyValue: true
  618. schema:
  619. oneOf:
  620. - type: string
  621. enum:
  622. - green
  623. - brightgreen
  624. - yellow
  625. - yellowgreen
  626. - orange
  627. - red
  628. - blue
  629. - grey
  630. - gray
  631. - lightgrey
  632. - lightgray
  633. - type: string
  634. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  635. - name: value_color
  636. in: query
  637. description: "A color to be used for the background of the value *(right)* part of badge. You can set
  638. multiple using a pipe with a condition each, like this:
  639. `color<value|color:null` The following operators are
  640. supported: >, <, >=, <=, =, :null (to check if no value exists). Each color can be specified in same manner as for `label_color` parameter.
  641. Currently only integers are supported as values."
  642. required: false
  643. allowEmptyValue: true
  644. schema:
  645. type: string
  646. format: any text
  647. - name: text_color_lbl
  648. in: query
  649. description: Font color for label *(left)* part of the badge. One of predefined colors or as HTML hexadecimal color without preceding `#` character. Formats allowed `RGB` or `RRGGBB`. If no or wrong value given default color will be used.
  650. required: false
  651. allowEmptyValue: true
  652. schema:
  653. oneOf:
  654. - type: string
  655. enum:
  656. - green
  657. - brightgreen
  658. - yellow
  659. - yellowgreen
  660. - orange
  661. - red
  662. - blue
  663. - grey
  664. - gray
  665. - lightgrey
  666. - lightgray
  667. - type: string
  668. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  669. - name: text_color_val
  670. in: query
  671. description: Font color for value *(right)* part of the badge. One of predefined colors or as HTML hexadecimal color without preceding `#` character. Formats allowed `RGB` or `RRGGBB`. If no or wrong value given default color will be used.
  672. required: false
  673. allowEmptyValue: true
  674. schema:
  675. oneOf:
  676. - type: string
  677. enum:
  678. - green
  679. - brightgreen
  680. - yellow
  681. - yellowgreen
  682. - orange
  683. - red
  684. - blue
  685. - grey
  686. - gray
  687. - lightgrey
  688. - lightgray
  689. - type: string
  690. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  691. - name: multiply
  692. in: query
  693. description: Multiply the value with this number for rendering it at the image
  694. (integer value required).
  695. required: false
  696. allowEmptyValue: true
  697. schema:
  698. type: number
  699. format: integer
  700. - name: divide
  701. in: query
  702. description: Divide the value with this number for rendering it at the image
  703. (integer value required).
  704. required: false
  705. allowEmptyValue: true
  706. schema:
  707. type: number
  708. format: integer
  709. - name: scale
  710. in: query
  711. description: Set the scale of the badge (greater or equal to 100).
  712. required: false
  713. allowEmptyValue: true
  714. schema:
  715. type: number
  716. format: integer
  717. - name: fixed_width_lbl
  718. in: query
  719. description: This parameter overrides auto-sizing of badge and creates it with fixed width. This parameter determines the size of the label's left side *(label/name)*. You must set this parameter together with `fixed_width_val` otherwise it will be ignored. You should set the label/value widths wide enough to provide space for all the possible values/contents of the badge you're requesting. In case the text cannot fit the space given it will be clipped. The `scale` parameter still applies on the values you give to `fixed_width_lbl` and `fixed_width_val`.
  720. required: false
  721. allowEmptyValue: false
  722. schema:
  723. type: number
  724. format: integer
  725. - name: fixed_width_val
  726. in: query
  727. description: This parameter overrides auto-sizing of badge and creates it with fixed width. This parameter determines the size of the label's right side *(value)*. You must set this parameter together with `fixed_width_lbl` otherwise it will be ignored. You should set the label/value widths wide enough to provide space for all the possible values/contents of the badge you're requesting. In case the text cannot fit the space given it will be clipped. The `scale` parameter still applies on the values you give to `fixed_width_lbl` and `fixed_width_val`.
  728. required: false
  729. allowEmptyValue: false
  730. schema:
  731. type: number
  732. format: integer
  733. responses:
  734. "200":
  735. description: The call was successful. The response should be an SVG image.
  736. "400":
  737. description: Bad request - the body will include a message stating what is wrong.
  738. "404":
  739. description: No chart with the given id is found.
  740. "500":
  741. description: Internal server error. This usually means the server is out of
  742. memory.
  743. /allmetrics:
  744. get:
  745. summary: Get a value of all the metrics maintained by netdata
  746. description: The allmetrics endpoint returns the latest value of all charts and
  747. dimensions stored in the netdata server.
  748. parameters:
  749. - name: format
  750. in: query
  751. description: The format of the response to be returned.
  752. required: true
  753. schema:
  754. type: string
  755. enum:
  756. - shell
  757. - prometheus
  758. - prometheus_all_hosts
  759. - json
  760. default: shell
  761. - name: filter
  762. in: query
  763. description: Allows to filter charts out using simple patterns.
  764. required: false
  765. schema:
  766. type: string
  767. format: any text
  768. - name: variables
  769. in: query
  770. description: When enabled, netdata will expose various system
  771. configuration metrics.
  772. required: false
  773. schema:
  774. type: string
  775. enum:
  776. - yes
  777. - no
  778. default: no
  779. - name: help
  780. in: query
  781. description: Enable or disable HELP lines in prometheus output.
  782. required: false
  783. schema:
  784. type: string
  785. enum:
  786. - yes
  787. - no
  788. default: no
  789. - name: types
  790. in: query
  791. description: Enable or disable TYPE lines in prometheus output.
  792. required: false
  793. schema:
  794. type: string
  795. enum:
  796. - yes
  797. - no
  798. default: no
  799. - name: timestamps
  800. in: query
  801. description: Enable or disable timestamps in prometheus output.
  802. required: false
  803. schema:
  804. type: string
  805. enum:
  806. - yes
  807. - no
  808. default: yes
  809. - name: names
  810. in: query
  811. description: When enabled netdata will report dimension names. When disabled
  812. netdata will report dimension IDs. The default is controlled in
  813. netdata.conf.
  814. required: false
  815. schema:
  816. type: string
  817. enum:
  818. - yes
  819. - no
  820. default: yes
  821. - name: oldunits
  822. in: query
  823. description: When enabled, netdata will show metric names for the default
  824. source=average as they appeared before 1.12, by using the legacy
  825. unit naming conventions.
  826. required: false
  827. schema:
  828. type: string
  829. enum:
  830. - yes
  831. - no
  832. default: yes
  833. - name: hideunits
  834. in: query
  835. description: When enabled, netdata will not include the units in the metric
  836. names, for the default source=average.
  837. required: false
  838. schema:
  839. type: string
  840. enum:
  841. - yes
  842. - no
  843. default: yes
  844. - name: server
  845. in: query
  846. description: Set a distinct name of the client querying prometheus metrics.
  847. Netdata will use the client IP if this is not set.
  848. required: false
  849. schema:
  850. type: string
  851. format: any text
  852. - name: prefix
  853. in: query
  854. description: Prefix all prometheus metrics with this string.
  855. required: false
  856. schema:
  857. type: string
  858. format: any text
  859. - name: data
  860. in: query
  861. description: Select the prometheus response data source. There is a setting in
  862. netdata.conf for the default.
  863. required: false
  864. schema:
  865. type: string
  866. enum:
  867. - as-collected
  868. - average
  869. - sum
  870. default: average
  871. responses:
  872. "200":
  873. description: All the metrics returned in the format requested.
  874. "400":
  875. description: The format requested is not supported.
  876. /alarms:
  877. get:
  878. summary: Get a list of active or raised alarms on the server
  879. description: The alarms endpoint returns the list of all raised or enabled alarms on
  880. the netdata server. Called without any parameters, the raised alarms in
  881. state WARNING or CRITICAL are returned. By passing "?all", all the
  882. enabled alarms are returned.
  883. parameters:
  884. - name: all
  885. in: query
  886. description: If passed, all enabled alarms are returned.
  887. required: false
  888. allowEmptyValue: true
  889. schema:
  890. type: boolean
  891. - name: active
  892. in: query
  893. description: If passed, the raised alarms in state WARNING or CRITICAL are returned.
  894. required: false
  895. allowEmptyValue: true
  896. schema:
  897. type: boolean
  898. responses:
  899. "200":
  900. description: An object containing general info and a linked list of alarms.
  901. content:
  902. application/json:
  903. schema:
  904. $ref: "#/components/schemas/alarms"
  905. /alarms_values:
  906. get:
  907. summary: Get a list of active or raised alarms on the server
  908. description: The alarms_values endpoint returns the list of all raised or enabled alarms on
  909. the netdata server. Called without any parameters, the raised alarms in
  910. state WARNING or CRITICAL are returned. By passing "?all", all the
  911. enabled alarms are returned.
  912. This option output differs from `/alarms` in the number of variables delivered. This endpoint gives
  913. to user `id`, `value`, `last_updated` time, and alarm `status`.
  914. parameters:
  915. - name: all
  916. in: query
  917. description: If passed, all enabled alarms are returned.
  918. required: false
  919. allowEmptyValue: true
  920. schema:
  921. type: boolean
  922. - name: active
  923. in: query
  924. description: If passed, the raised alarms in state WARNING or CRITICAL are returned.
  925. required: false
  926. allowEmptyValue: true
  927. schema:
  928. type: boolean
  929. responses:
  930. "200":
  931. description: An object containing general info and a linked list of alarms.
  932. content:
  933. application/json:
  934. schema:
  935. $ref: "#/components/schemas/alarms_values"
  936. /alarm_log:
  937. get:
  938. summary: Retrieves the entries of the alarm log
  939. description: Returns an array of alarm_log entries, with historical information on
  940. raised and cleared alarms.
  941. parameters:
  942. - name: after
  943. in: query
  944. description: Passing the parameter after=UNIQUEID returns all the events in the
  945. alarm log that occurred after UNIQUEID. An automated series of calls
  946. would call the interface once without after=, store the last
  947. UNIQUEID of the returned set, and give it back to get incrementally
  948. the next events.
  949. required: false
  950. schema:
  951. type: integer
  952. responses:
  953. "200":
  954. description: An array of alarm log entries.
  955. content:
  956. application/json:
  957. schema:
  958. type: array
  959. items:
  960. $ref: "#/components/schemas/alarm_log_entry"
  961. /alarm_count:
  962. get:
  963. summary: Get an overall status of the chart
  964. description: Checks multiple charts with the same context and counts number of alarms
  965. with given status.
  966. parameters:
  967. - in: query
  968. name: context
  969. description: Specify context which should be checked.
  970. required: false
  971. allowEmptyValue: true
  972. schema:
  973. type: array
  974. items:
  975. type: string
  976. default:
  977. - system.cpu
  978. - in: query
  979. name: status
  980. description: Specify alarm status to count.
  981. required: false
  982. allowEmptyValue: true
  983. schema:
  984. type: string
  985. enum:
  986. - REMOVED
  987. - UNDEFINED
  988. - UNINITIALIZED
  989. - CLEAR
  990. - RAISED
  991. - WARNING
  992. - CRITICAL
  993. default: RAISED
  994. responses:
  995. "200":
  996. description: An object containing a count of alarms with given status for given
  997. contexts.
  998. content:
  999. application/json:
  1000. schema:
  1001. type: array
  1002. items:
  1003. type: number
  1004. "500":
  1005. description: Internal server error. This usually means the server is out of
  1006. memory.
  1007. /manage/health:
  1008. get:
  1009. summary: Accesses the health management API to control health checks and
  1010. notifications at runtime.
  1011. description: Available from Netdata v1.12 and above, protected via bearer
  1012. authorization. Especially useful for maintenance periods, the API allows
  1013. you to disable health checks completely, silence alarm notifications, or
  1014. Disable/Silence specific alarms that match selectors on alarm/template
  1015. name, chart, context, host and family. For the simple disable/silence
  1016. all scenarios, only the cmd parameter is required. The other parameters
  1017. are used to define alarm selectors. For more information and examples,
  1018. refer to the netdata documentation.
  1019. parameters:
  1020. - name: cmd
  1021. in: query
  1022. description: "DISABLE ALL: No alarm criteria are evaluated, nothing is written in
  1023. the alarm log. SILENCE ALL: No notifications are sent. RESET: Return
  1024. to the default state. DISABLE/SILENCE: Set the mode to be used for
  1025. the alarms matching the criteria of the alarm selectors. LIST: Show
  1026. active configuration."
  1027. required: false
  1028. schema:
  1029. type: string
  1030. enum:
  1031. - DISABLE ALL
  1032. - SILENCE ALL
  1033. - DISABLE
  1034. - SILENCE
  1035. - RESET
  1036. - LIST
  1037. - name: alarm
  1038. in: query
  1039. description: The expression provided will match both `alarm` and `template` names.
  1040. schema:
  1041. type: string
  1042. - name: chart
  1043. in: query
  1044. description: Chart ids/names, as shown on the dashboard. These will match the
  1045. `on` entry of a configured `alarm`.
  1046. schema:
  1047. type: string
  1048. - name: context
  1049. in: query
  1050. description: Chart context, as shown on the dashboard. These will match the `on`
  1051. entry of a configured `template`.
  1052. schema:
  1053. type: string
  1054. - name: hosts
  1055. in: query
  1056. description: The hostnames that will need to match.
  1057. schema:
  1058. type: string
  1059. - name: families
  1060. in: query
  1061. description: The alarm families.
  1062. schema:
  1063. type: string
  1064. responses:
  1065. "200":
  1066. description: A plain text response based on the result of the command.
  1067. "403":
  1068. description: Bearer authentication error.
  1069. /aclk:
  1070. get:
  1071. summary: Get information about current ACLK state
  1072. description: aclk endpoint returns detailed information
  1073. about current state of ACLK (Agent to Cloud communication).
  1074. responses:
  1075. "200":
  1076. description: JSON object with ACLK information.
  1077. content:
  1078. application/json:
  1079. schema:
  1080. $ref: "#/components/schemas/aclk_state"
  1081. /metric_correlations:
  1082. get:
  1083. summary: Analyze all the metrics to find their correlations
  1084. description: Given two time-windows (baseline, highlight), it goes
  1085. through all the available metrics, querying both windows and tries to find
  1086. how these two windows relate to each other. It supports
  1087. multiple algorithms to do so. The result is a list of all
  1088. metrics evaluated, weighted for 0.0 (the two windows are
  1089. more different) to 1.0 (the two windows are similar).
  1090. The algorithm adjusts automatically the baseline window to be
  1091. a power of two multiple of the highlighted (1, 2, 4, 8, etc).
  1092. parameters:
  1093. - name: baseline_after
  1094. in: query
  1095. description: This parameter can either be an absolute timestamp specifying the
  1096. starting point of baseline window, or a relative number of
  1097. seconds (negative, relative to parameter baseline_before). Netdata will
  1098. assume it is a relative number if it is less that 3 years (in seconds).
  1099. required: false
  1100. allowEmptyValue: false
  1101. schema:
  1102. type: number
  1103. format: integer
  1104. default: -300
  1105. - name: baseline_before
  1106. in: query
  1107. description: This parameter can either be an absolute timestamp specifying the
  1108. ending point of the baseline window, or a relative number of
  1109. seconds (negative), relative to the last collected timestamp.
  1110. Netdata will assume it is a relative number if it is less than 3
  1111. years (in seconds).
  1112. required: false
  1113. schema:
  1114. type: number
  1115. format: integer
  1116. default: -60
  1117. - name: after
  1118. in: query
  1119. description: This parameter can either be an absolute timestamp specifying the
  1120. starting point of highlighted window, or a relative number of
  1121. seconds (negative, relative to parameter highlight_before). Netdata will
  1122. assume it is a relative number if it is less that 3 years (in seconds).
  1123. required: false
  1124. allowEmptyValue: false
  1125. schema:
  1126. type: number
  1127. format: integer
  1128. default: -60
  1129. - name: before
  1130. in: query
  1131. description: This parameter can either be an absolute timestamp specifying the
  1132. ending point of the highlighted window, or a relative number of
  1133. seconds (negative), relative to the last collected timestamp.
  1134. Netdata will assume it is a relative number if it is less than 3
  1135. years (in seconds).
  1136. required: false
  1137. schema:
  1138. type: number
  1139. format: integer
  1140. default: 0
  1141. - name: points
  1142. in: query
  1143. description: The number of points to be evaluated for the highlighted window.
  1144. The baseline window will be adjusted automatically to receive a proportional
  1145. amount of points.
  1146. required: false
  1147. allowEmptyValue: false
  1148. schema:
  1149. type: number
  1150. format: integer
  1151. default: 500
  1152. - name: method
  1153. in: query
  1154. description: the algorithm to run
  1155. required: false
  1156. schema:
  1157. type: string
  1158. enum:
  1159. - ks2
  1160. - volume
  1161. default: ks2
  1162. - name: timeout
  1163. in: query
  1164. description: Cancel the query if to takes more that this amount of milliseconds.
  1165. required: false
  1166. allowEmptyValue: false
  1167. schema:
  1168. type: number
  1169. format: integer
  1170. default: 60000
  1171. - name: options
  1172. in: query
  1173. description: Options that affect data generation.
  1174. required: false
  1175. allowEmptyValue: false
  1176. schema:
  1177. type: array
  1178. items:
  1179. type: string
  1180. enum:
  1181. - min2max
  1182. - abs
  1183. - absolute
  1184. - absolute-sum
  1185. - null2zero
  1186. - percentage
  1187. - unaligned
  1188. - allow_past
  1189. - nonzero
  1190. - anomaly-bit
  1191. - raw
  1192. default:
  1193. - null2zero
  1194. - allow_past
  1195. - nonzero
  1196. - unaligned
  1197. - name: group
  1198. in: query
  1199. description: The grouping method. If multiple collected values are to be grouped
  1200. in order to return fewer points, this parameters defines the method
  1201. of grouping. methods supported "min", "max", "average", "sum",
  1202. "incremental-sum". "max" is actually calculated on the absolute
  1203. value collected (so it works for both positive and negative
  1204. dimensions to return the most extreme value in either direction).
  1205. required: true
  1206. allowEmptyValue: false
  1207. schema:
  1208. type: string
  1209. enum:
  1210. - min
  1211. - max
  1212. - average
  1213. - median
  1214. - stddev
  1215. - sum
  1216. - incremental-sum
  1217. - ses
  1218. - des
  1219. - cv
  1220. - countif
  1221. default: average
  1222. - name: group_options
  1223. in: query
  1224. description: When the group function supports additional parameters, this field
  1225. can be used to pass them to it. Currently only "countif" supports this.
  1226. required: false
  1227. allowEmptyValue: false
  1228. schema:
  1229. type: string
  1230. responses:
  1231. "200":
  1232. description: JSON object with weights for each chart and dimension.
  1233. content:
  1234. application/json:
  1235. schema:
  1236. $ref: "#/components/schemas/metric_correlations"
  1237. "400":
  1238. description: The given parameters are invalid.
  1239. "403":
  1240. description: metrics correlations are not enabled on this Netdata Agent.
  1241. "404":
  1242. description: No charts could be found, or the method
  1243. that correlated the metrics did not produce any result.
  1244. "504":
  1245. description: Timeout - the query took too long and has been cancelled.
  1246. servers:
  1247. - url: https://registry.my-netdata.io/api/v1
  1248. - url: http://registry.my-netdata.io/api/v1
  1249. components:
  1250. schemas:
  1251. info:
  1252. type: object
  1253. properties:
  1254. version:
  1255. type: string
  1256. description: netdata version of the server.
  1257. example: 1.11.1_rolling
  1258. uid:
  1259. type: string
  1260. description: netdata unique id of the server.
  1261. example: 24e9fe3c-f2ac-11e8-bafc-0242ac110002
  1262. mirrored_hosts:
  1263. type: array
  1264. description: List of hosts mirrored of the server (include itself).
  1265. items:
  1266. type: string
  1267. example:
  1268. - host1.example.com
  1269. - host2.example.com
  1270. mirrored_hosts_status:
  1271. type: array
  1272. description: >-
  1273. List of details of hosts mirrored to this served (including self).
  1274. Indexes correspond to indexes in "mirrored_hosts".
  1275. items:
  1276. type: object
  1277. description: Host data
  1278. properties:
  1279. guid:
  1280. type: string
  1281. format: uuid
  1282. nullable: false
  1283. description: Host unique GUID from `netdata.public.unique.id`.
  1284. example: 245e4bff-3b34-47c1-a6e5-5c535a9abfb2
  1285. reachable:
  1286. type: boolean
  1287. nullable: false
  1288. description: Current state of streaming. Always true for localhost/self.
  1289. claim_id:
  1290. type: string
  1291. format: uuid
  1292. nullable: true
  1293. description: >-
  1294. Cloud GUID/identifier in case the host is claimed.
  1295. If child status unknown or unclaimed this field is set to `null`
  1296. example: c3b2a66a-3052-498c-ac52-7fe9e8cccb0c
  1297. os_name:
  1298. type: string
  1299. description: Operating System Name.
  1300. example: Manjaro Linux
  1301. os_id:
  1302. type: string
  1303. description: Operating System ID.
  1304. example: manjaro
  1305. os_id_like:
  1306. type: string
  1307. description: Known OS similar to this OS.
  1308. example: arch
  1309. os_version:
  1310. type: string
  1311. description: Operating System Version.
  1312. example: 18.0.4
  1313. os_version_id:
  1314. type: string
  1315. description: Operating System Version ID.
  1316. example: unknown
  1317. os_detection:
  1318. type: string
  1319. description: OS parameters detection method.
  1320. example: Mixed
  1321. kernel_name:
  1322. type: string
  1323. description: Kernel Name.
  1324. example: Linux
  1325. kernel_version:
  1326. type: string
  1327. description: Kernel Version.
  1328. example: 4.19.32-1-MANJARO
  1329. is_k8s_node:
  1330. type: boolean
  1331. description: Netdata is running on a K8s node.
  1332. example: false
  1333. architecture:
  1334. type: string
  1335. description: Kernel architecture.
  1336. example: x86_64
  1337. virtualization:
  1338. type: string
  1339. description: Virtualization Type.
  1340. example: kvm
  1341. virt_detection:
  1342. type: string
  1343. description: Virtualization detection method.
  1344. example: systemd-detect-virt
  1345. container:
  1346. type: string
  1347. description: Container technology.
  1348. example: docker
  1349. container_detection:
  1350. type: string
  1351. description: Container technology detection method.
  1352. example: dockerenv
  1353. stream_compression:
  1354. type: boolean
  1355. description: Stream transmission compression method.
  1356. example: true
  1357. labels:
  1358. type: object
  1359. description: List of host labels.
  1360. properties:
  1361. app:
  1362. type: string
  1363. description: Host label.
  1364. example: netdata
  1365. collectors:
  1366. type: array
  1367. items:
  1368. type: object
  1369. description: Array of collector plugins and modules.
  1370. properties:
  1371. plugin:
  1372. type: string
  1373. description: Collector plugin.
  1374. example: python.d.plugin
  1375. module:
  1376. type: string
  1377. description: Module of the collector plugin.
  1378. example: dockerd
  1379. alarms:
  1380. type: object
  1381. description: Number of alarms in the server.
  1382. properties:
  1383. normal:
  1384. type: integer
  1385. description: Number of alarms in normal state.
  1386. warning:
  1387. type: integer
  1388. description: Number of alarms in warning state.
  1389. critical:
  1390. type: integer
  1391. description: Number of alarms in critical state.
  1392. chart_summary:
  1393. type: object
  1394. properties:
  1395. hostname:
  1396. type: string
  1397. description: The hostname of the netdata server.
  1398. version:
  1399. type: string
  1400. description: netdata version of the server.
  1401. release_channel:
  1402. type: string
  1403. description: The release channel of the build on the server.
  1404. example: nightly
  1405. timezone:
  1406. type: string
  1407. description: The current timezone on the server.
  1408. os:
  1409. type: string
  1410. description: The netdata server host operating system.
  1411. enum:
  1412. - macos
  1413. - linux
  1414. - freebsd
  1415. history:
  1416. type: number
  1417. description: The duration, in seconds, of the round robin database maintained by
  1418. netdata.
  1419. memory_mode:
  1420. type: string
  1421. description: The name of the database memory mode on the server.
  1422. update_every:
  1423. type: number
  1424. description: The default update frequency of the netdata server. All charts have
  1425. an update frequency equal or bigger than this.
  1426. charts:
  1427. type: object
  1428. description: An object containing all the chart objects available at the netdata
  1429. server. This is used as an indexed array. The key of each chart
  1430. object is the id of the chart.
  1431. additionalProperties:
  1432. $ref: "#/components/schemas/chart"
  1433. charts_count:
  1434. type: number
  1435. description: The number of charts.
  1436. dimensions_count:
  1437. type: number
  1438. description: The total number of dimensions.
  1439. alarms_count:
  1440. type: number
  1441. description: The number of alarms.
  1442. rrd_memory_bytes:
  1443. type: number
  1444. description: The size of the round robin database in bytes.
  1445. chart:
  1446. type: object
  1447. properties:
  1448. id:
  1449. type: string
  1450. description: The unique id of the chart.
  1451. name:
  1452. type: string
  1453. description: The name of the chart.
  1454. type:
  1455. type: string
  1456. description: The type of the chart. Types are not handled by netdata. You can use
  1457. this field for anything you like.
  1458. family:
  1459. type: string
  1460. description: The family of the chart. Families are not handled by netdata. You
  1461. can use this field for anything you like.
  1462. title:
  1463. type: string
  1464. description: The title of the chart.
  1465. priority:
  1466. type: number
  1467. description: The relative priority of the chart. Netdata does not care about
  1468. priorities. This is just an indication of importance for the chart
  1469. viewers to sort charts of higher priority (lower number) closer to
  1470. the top. Priority sorting should only be used among charts of the
  1471. same type or family.
  1472. enabled:
  1473. type: boolean
  1474. description: True when the chart is enabled. Disabled charts do not currently
  1475. collect values, but they may have historical values available.
  1476. units:
  1477. type: string
  1478. description: The unit of measurement for the values of all dimensions of the
  1479. chart.
  1480. data_url:
  1481. type: string
  1482. description: The absolute path to get data values for this chart. You are
  1483. expected to use this path as the base when constructing the URL to
  1484. fetch data values for this chart.
  1485. chart_type:
  1486. type: string
  1487. description: The chart type.
  1488. enum:
  1489. - line
  1490. - area
  1491. - stacked
  1492. duration:
  1493. type: number
  1494. description: The duration, in seconds, of the round robin database maintained by
  1495. netdata.
  1496. first_entry:
  1497. type: number
  1498. description: The UNIX timestamp of the first entry (the oldest) in the round
  1499. robin database.
  1500. last_entry:
  1501. type: number
  1502. description: The UNIX timestamp of the latest entry in the round robin database.
  1503. update_every:
  1504. type: number
  1505. description: The update frequency of this chart, in seconds. One value every this
  1506. amount of time is kept in the round robin database.
  1507. dimensions:
  1508. type: object
  1509. description: "An object containing all the chart dimensions available for the
  1510. chart. This is used as an indexed array. For each pair in the
  1511. dictionary: the key is the id of the dimension and the value is a
  1512. dictionary containing the name."
  1513. additionalProperties:
  1514. type: object
  1515. properties:
  1516. name:
  1517. type: string
  1518. description: The name of the dimension
  1519. chart_variables:
  1520. type: object
  1521. additionalProperties:
  1522. $ref: "#/components/schemas/chart_variables"
  1523. green:
  1524. type: number
  1525. nullable: true
  1526. description: Chart health green threshold.
  1527. red:
  1528. type: number
  1529. nullable: true
  1530. description: Chart health red threshold.
  1531. context_summary:
  1532. type: object
  1533. properties:
  1534. hostname:
  1535. type: string
  1536. description: The hostname of the netdata server.
  1537. machine_guid:
  1538. type: string
  1539. description: The unique installation id of this netdata server.
  1540. node_id:
  1541. type: string
  1542. description: The unique node id of this netdata server at the hub.
  1543. example: nightly
  1544. claim_id:
  1545. type: string
  1546. description: The unique handshake id of this netdata server and the hub.
  1547. host_labels:
  1548. type: object
  1549. description: The host labels associated with this netdata server.
  1550. context:
  1551. type: object
  1552. description: An object containing all the context objects available at the netdata server. This is used as an indexed array. The key of each context object is the id of the context.
  1553. additionalProperties:
  1554. $ref: "#/components/schemas/context"
  1555. context:
  1556. type: object
  1557. properties:
  1558. version:
  1559. type: string
  1560. description: The version of this context. The number are not sequential, but bigger numbers depict a newer object.
  1561. hub_version:
  1562. type: string
  1563. description: The version of this context, as known by hub.
  1564. family:
  1565. type: string
  1566. description: The family of the context. When multiple charts of a context have different families, the netdata server replaces the different parts with [x], so that the context can have only one family.
  1567. title:
  1568. type: string
  1569. description: The title of the context. When multiple charts of a context have different titles, the netdata server replaces the different parts with [x], so that the context can have only one title.
  1570. priority:
  1571. type: number
  1572. description: The relative priority of the context. When multiple contexts have different priorities, the minimum among them is selected as the priority of the context.
  1573. units:
  1574. type: string
  1575. description: The unit of measurement for the values of all dimensions of the context. If multple charts of context have different units, the latest collected is selected.
  1576. chart_type:
  1577. type: string
  1578. description: The chart type.
  1579. enum:
  1580. - line
  1581. - area
  1582. - stacked
  1583. first_time_t:
  1584. type: number
  1585. description: The UNIX timestamp of the first entry (the oldest) in the database.
  1586. last_time_t:
  1587. type: number
  1588. description: The UNIX timestamp of the latest entry in the database.
  1589. charts:
  1590. type: object
  1591. description: An object containing all the charts available for the chart. This is used as an indexed array. For each pair in the dictionary, the key is the id of the chart and the value provides all details about the chart.
  1592. alarm_variables:
  1593. type: object
  1594. properties:
  1595. chart:
  1596. type: string
  1597. description: The unique id of the chart.
  1598. chart_name:
  1599. type: string
  1600. description: The name of the chart.
  1601. cnart_context:
  1602. type: string
  1603. description: The context of the chart. It is shared across multiple monitored
  1604. software or hardware instances and used in alarm templates.
  1605. family:
  1606. type: string
  1607. description: The family of the chart.
  1608. host:
  1609. type: string
  1610. description: The host containing the chart.
  1611. chart_variables:
  1612. type: object
  1613. additionalProperties:
  1614. $ref: "#/components/schemas/chart_variables"
  1615. family_variables:
  1616. type: object
  1617. properties:
  1618. varname1:
  1619. type: number
  1620. format: float
  1621. varname2:
  1622. type: number
  1623. format: float
  1624. host_variables:
  1625. type: object
  1626. properties:
  1627. varname1:
  1628. type: number
  1629. format: float
  1630. varname2:
  1631. type: number
  1632. format: float
  1633. chart_variables:
  1634. type: object
  1635. properties:
  1636. varname1:
  1637. type: number
  1638. format: float
  1639. varname2:
  1640. type: number
  1641. format: float
  1642. data:
  1643. type: object
  1644. discriminator:
  1645. propertyName: format
  1646. description: Response will contain the appropriate subtype, e.g. data_json depending
  1647. on the requested format.
  1648. properties:
  1649. api:
  1650. type: number
  1651. description: The API version this conforms to, currently 1.
  1652. id:
  1653. type: string
  1654. description: The unique id of the chart.
  1655. name:
  1656. type: string
  1657. description: The name of the chart.
  1658. update_every:
  1659. type: number
  1660. description: The update frequency of this chart, in seconds. One value every this
  1661. amount of time is kept in the round robin database (independently of
  1662. the current view).
  1663. view_update_every:
  1664. type: number
  1665. description: The current view appropriate update frequency of this chart, in
  1666. seconds. There is no point to request chart refreshes, using the
  1667. same settings, more frequently than this.
  1668. first_entry:
  1669. type: number
  1670. description: The UNIX timestamp of the first entry (the oldest) in the round
  1671. robin database (independently of the current view).
  1672. last_entry:
  1673. type: number
  1674. description: The UNIX timestamp of the latest entry in the round robin database
  1675. (independently of the current view).
  1676. after:
  1677. type: number
  1678. description: The UNIX timestamp of the first entry (the oldest) returned in this
  1679. response.
  1680. before:
  1681. type: number
  1682. description: The UNIX timestamp of the latest entry returned in this response.
  1683. min:
  1684. type: number
  1685. description: The minimum value returned in the current view. This can be used to
  1686. size the y-series of the chart.
  1687. max:
  1688. type: number
  1689. description: The maximum value returned in the current view. This can be used to
  1690. size the y-series of the chart.
  1691. dimension_names:
  1692. description: The dimension names of the chart as returned in the current view.
  1693. type: array
  1694. items:
  1695. type: string
  1696. dimension_ids:
  1697. description: The dimension IDs of the chart as returned in the current view.
  1698. type: array
  1699. items:
  1700. type: string
  1701. latest_values:
  1702. description: The latest values collected for the chart (independently of the
  1703. current view).
  1704. type: array
  1705. items:
  1706. type: string
  1707. view_latest_values:
  1708. description: The latest values returned with this response.
  1709. type: array
  1710. items:
  1711. type: string
  1712. dimensions:
  1713. type: number
  1714. description: The number of dimensions returned.
  1715. points:
  1716. type: number
  1717. description: The number of rows / points returned.
  1718. format:
  1719. type: string
  1720. description: The format of the result returned.
  1721. chart_variables:
  1722. type: object
  1723. additionalProperties:
  1724. $ref: "#/components/schemas/chart_variables"
  1725. data_json:
  1726. description: Data response in json format.
  1727. allOf:
  1728. - $ref: "#/components/schemas/data"
  1729. - properties:
  1730. result:
  1731. type: object
  1732. properties:
  1733. labels:
  1734. description: The dimensions retrieved from the chart.
  1735. type: array
  1736. items:
  1737. type: string
  1738. data:
  1739. description: The data requested, one element per sample with each element
  1740. containing the values of the dimensions described in the
  1741. labels value.
  1742. type: array
  1743. items:
  1744. type: number
  1745. description: The result requested, in the format requested.
  1746. data_flat:
  1747. description: Data response in csv / tsv / tsv-excel / ssv / ssv-comma / markdown /
  1748. html formats.
  1749. allOf:
  1750. - $ref: "#/components/schemas/data"
  1751. - properties:
  1752. result:
  1753. type: string
  1754. data_array:
  1755. description: Data response in array format.
  1756. allOf:
  1757. - $ref: "#/components/schemas/data"
  1758. - properties:
  1759. result:
  1760. type: array
  1761. items:
  1762. type: number
  1763. data_csvjsonarray:
  1764. description: Data response in csvjsonarray format.
  1765. allOf:
  1766. - $ref: "#/components/schemas/data"
  1767. - properties:
  1768. result:
  1769. description: The first inner array contains strings showing the labels of
  1770. each column, each subsequent array contains the values for each
  1771. point in time.
  1772. type: array
  1773. items:
  1774. type: array
  1775. items: {}
  1776. data_datatable:
  1777. description: Data response in datatable / datasource formats (suitable for Google
  1778. Charts).
  1779. allOf:
  1780. - $ref: "#/components/schemas/data"
  1781. - properties:
  1782. result:
  1783. type: object
  1784. properties:
  1785. cols:
  1786. type: array
  1787. items:
  1788. type: object
  1789. properties:
  1790. id:
  1791. description: Always empty - for future use.
  1792. label:
  1793. description: The dimension returned from the chart.
  1794. pattern:
  1795. description: Always empty - for future use.
  1796. type:
  1797. description: The type of data in the column / chart-dimension.
  1798. p:
  1799. description: Contains any annotations for the column.
  1800. required:
  1801. - id
  1802. - label
  1803. - pattern
  1804. - type
  1805. rows:
  1806. type: array
  1807. items:
  1808. type: object
  1809. properties:
  1810. c:
  1811. type: array
  1812. items:
  1813. properties:
  1814. v:
  1815. description: "Each value in the row is represented by an
  1816. object named `c` with five v fields: data, null,
  1817. null, 0, the value. This format is fixed by the
  1818. Google Charts API."
  1819. alarms:
  1820. type: object
  1821. properties:
  1822. hostname:
  1823. type: string
  1824. latest_alarm_log_unique_id:
  1825. type: integer
  1826. format: int32
  1827. status:
  1828. type: boolean
  1829. now:
  1830. type: integer
  1831. format: int32
  1832. alarms:
  1833. type: object
  1834. properties:
  1835. chart-name.alarm-name:
  1836. type: object
  1837. properties:
  1838. id:
  1839. type: integer
  1840. format: int32
  1841. name:
  1842. type: string
  1843. description: Full alarm name.
  1844. chart:
  1845. type: string
  1846. family:
  1847. type: string
  1848. active:
  1849. type: boolean
  1850. description: Will be false only if the alarm is disabled in the
  1851. configuration.
  1852. disabled:
  1853. type: boolean
  1854. description: Whether the health check for this alarm has been disabled
  1855. via a health command API DISABLE command.
  1856. silenced:
  1857. type: boolean
  1858. description: Whether notifications for this alarm have been silenced via
  1859. a health command API SILENCE command.
  1860. exec:
  1861. type: string
  1862. recipient:
  1863. type: string
  1864. source:
  1865. type: string
  1866. units:
  1867. type: string
  1868. info:
  1869. type: string
  1870. status:
  1871. type: string
  1872. last_status_change:
  1873. type: integer
  1874. format: int32
  1875. last_updated:
  1876. type: integer
  1877. format: int32
  1878. next_update:
  1879. type: integer
  1880. format: int32
  1881. update_every:
  1882. type: integer
  1883. format: int32
  1884. delay_up_duration:
  1885. type: integer
  1886. format: int32
  1887. delay_down_duration:
  1888. type: integer
  1889. format: int32
  1890. delay_max_duration:
  1891. type: integer
  1892. format: int32
  1893. delay_multiplier:
  1894. type: integer
  1895. format: int32
  1896. delay:
  1897. type: integer
  1898. format: int32
  1899. delay_up_to_timestamp:
  1900. type: integer
  1901. format: int32
  1902. value_string:
  1903. type: string
  1904. no_clear_notification:
  1905. type: boolean
  1906. lookup_dimensions:
  1907. type: string
  1908. db_after:
  1909. type: integer
  1910. format: int32
  1911. db_before:
  1912. type: integer
  1913. format: int32
  1914. lookup_method:
  1915. type: string
  1916. lookup_after:
  1917. type: integer
  1918. format: int32
  1919. lookup_before:
  1920. type: integer
  1921. format: int32
  1922. lookup_options:
  1923. type: string
  1924. calc:
  1925. type: string
  1926. calc_parsed:
  1927. type: string
  1928. warn:
  1929. type: string
  1930. warn_parsed:
  1931. type: string
  1932. crit:
  1933. type: string
  1934. crit_parsed:
  1935. type: string
  1936. warn_repeat_every:
  1937. type: integer
  1938. format: int32
  1939. crit_repeat_every:
  1940. type: integer
  1941. format: int32
  1942. green:
  1943. type: string
  1944. format: nullable
  1945. red:
  1946. type: string
  1947. format: nullable
  1948. value:
  1949. type: number
  1950. alarm_log_entry:
  1951. type: object
  1952. properties:
  1953. hostname:
  1954. type: string
  1955. unique_id:
  1956. type: integer
  1957. format: int32
  1958. alarm_id:
  1959. type: integer
  1960. format: int32
  1961. alarm_event_id:
  1962. type: integer
  1963. format: int32
  1964. name:
  1965. type: string
  1966. chart:
  1967. type: string
  1968. family:
  1969. type: string
  1970. processed:
  1971. type: boolean
  1972. updated:
  1973. type: boolean
  1974. exec_run:
  1975. type: integer
  1976. format: int32
  1977. exec_failed:
  1978. type: boolean
  1979. exec:
  1980. type: string
  1981. recipient:
  1982. type: string
  1983. exec_code:
  1984. type: integer
  1985. format: int32
  1986. source:
  1987. type: string
  1988. units:
  1989. type: string
  1990. when:
  1991. type: integer
  1992. format: int32
  1993. duration:
  1994. type: integer
  1995. format: int32
  1996. non_clear_duration:
  1997. type: integer
  1998. format: int32
  1999. status:
  2000. type: string
  2001. old_status:
  2002. type: string
  2003. delay:
  2004. type: integer
  2005. format: int32
  2006. delay_up_to_timestamp:
  2007. type: integer
  2008. format: int32
  2009. updated_by_id:
  2010. type: integer
  2011. format: int32
  2012. updates_id:
  2013. type: integer
  2014. format: int32
  2015. value_string:
  2016. type: string
  2017. old_value_string:
  2018. type: string
  2019. silenced:
  2020. type: string
  2021. info:
  2022. type: string
  2023. value:
  2024. type: number
  2025. nullable: true
  2026. old_value:
  2027. type: number
  2028. nullable: true
  2029. alarms_values:
  2030. type: object
  2031. properties:
  2032. hostname:
  2033. type: string
  2034. alarms:
  2035. type: object
  2036. description: HashMap with keys being alarm names
  2037. additionalProperties:
  2038. type: object
  2039. properties:
  2040. id:
  2041. type: integer
  2042. value:
  2043. type: integer
  2044. last_updated:
  2045. type: integer
  2046. format: int32
  2047. status:
  2048. type: string
  2049. enum:
  2050. - REMOVED
  2051. - UNDEFINED
  2052. - UNINITIALIZED
  2053. - CLEAR
  2054. - RAISED
  2055. - WARNING
  2056. - CRITICAL
  2057. - UNKNOWN
  2058. aclk_state:
  2059. type: object
  2060. properties:
  2061. aclk-available:
  2062. type: string
  2063. description: Describes whether this agent is capable of connection to the Cloud.
  2064. False means agent has been built without ACLK component either on purpose (user choice) or due to missing dependency.
  2065. aclk-version:
  2066. type: integer
  2067. description: Describes which ACLK version is currently used.
  2068. protocols-supported:
  2069. type: array
  2070. description: List of supported protocols for communication with Cloud.
  2071. items:
  2072. type: string
  2073. agent-claimed:
  2074. type: boolean
  2075. description: Informs whether this agent has been added to a space in the cloud (User has to perform claiming).
  2076. If false (user didn't perform claiming) agent will never attempt any cloud connection.
  2077. claimed_id:
  2078. type: string
  2079. format: uuid
  2080. description: Unique ID this agent uses to identify when connecting to cloud
  2081. online:
  2082. type: boolean
  2083. description: Informs if this agent was connected to the cloud at the time this request has been processed.
  2084. used-cloud-protocol:
  2085. type: string
  2086. description: Informs which protocol is used to communicate with cloud
  2087. enum:
  2088. - Old
  2089. - New
  2090. metric_correlations:
  2091. type: object
  2092. properties:
  2093. after:
  2094. description: the start time of the highlighted window
  2095. type: integer
  2096. before:
  2097. description: the end time of the highlighted window
  2098. type: integer
  2099. duration:
  2100. description: the duration of the highlighted window
  2101. type: integer
  2102. points:
  2103. description: the points of the highlighted window
  2104. type: integer
  2105. baseline_after:
  2106. description: the start time of the baseline window
  2107. type: integer
  2108. baseline_before:
  2109. description: the end time of the baseline window
  2110. type: integer
  2111. baseline_duration:
  2112. description: the duration of the baseline window
  2113. type: integer
  2114. baseline_points:
  2115. description: the points of the baseline window
  2116. type: integer
  2117. group:
  2118. description: the grouping method across time
  2119. type: string
  2120. method:
  2121. description: the correlation method used
  2122. type: string
  2123. options:
  2124. description: a comma separated list of the query options set
  2125. type: string
  2126. correlated_dimensions:
  2127. description: the number of dimensions returned in the result
  2128. total_dimensions_count:
  2129. description: the total number of dimensions evaluated
  2130. type: integer
  2131. statistics:
  2132. type: object
  2133. properties:
  2134. query_time_ms:
  2135. type: number
  2136. db_queries:
  2137. type: integer
  2138. db_points_read:
  2139. type: integer
  2140. query_result_points:
  2141. type: integer
  2142. binary_searches:
  2143. type: integer
  2144. correlated_charts:
  2145. type: object
  2146. description: An object containing chart objects with their metrics correlations.
  2147. properties:
  2148. chart-id1:
  2149. type: object
  2150. properties:
  2151. context:
  2152. type: string
  2153. dimensions:
  2154. type: object
  2155. properties:
  2156. dimension1-name:
  2157. type: number
  2158. dimension2-name:
  2159. type: number
  2160. chart-id2:
  2161. type: object
  2162. properties:
  2163. context:
  2164. type: string
  2165. dimensions:
  2166. type: object
  2167. properties:
  2168. dimension1-name:
  2169. type: number
  2170. dimension2-name:
  2171. type: number