expected.yaml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. resourceMetrics:
  2. - resource:
  3. attributes:
  4. - key: haproxy.addr
  5. value:
  6. stringValue: http://localhost:63810/stats
  7. - key: haproxy.proxy_name
  8. value:
  9. stringValue: stats
  10. - key: haproxy.service_name
  11. value:
  12. stringValue: FRONTEND
  13. scopeMetrics:
  14. - metrics:
  15. - description: Bytes in. Corresponds to HAProxy's `bin` metric.
  16. name: haproxy.bytes.input
  17. sum:
  18. aggregationTemporality: 2
  19. dataPoints:
  20. - asInt: "0"
  21. startTimeUnixNano: "1691479578831831000"
  22. timeUnixNano: "1691479579855985000"
  23. isMonotonic: true
  24. unit: by
  25. - description: Bytes out. Corresponds to HAProxy's `bout` metric.
  26. name: haproxy.bytes.output
  27. sum:
  28. aggregationTemporality: 2
  29. dataPoints:
  30. - asInt: "0"
  31. startTimeUnixNano: "1691479578831831000"
  32. timeUnixNano: "1691479579855985000"
  33. isMonotonic: true
  34. unit: by
  35. - description: Number of connections over the last elapsed second (frontend). Corresponds to HAProxy's `conn_rate` metric.
  36. gauge:
  37. dataPoints:
  38. - asInt: "1"
  39. startTimeUnixNano: "1691479578831831000"
  40. timeUnixNano: "1691479579855985000"
  41. name: haproxy.connections.rate
  42. unit: '{connections}'
  43. - description: Requests denied because of security concerns. Corresponds to HAProxy's `dreq` metric
  44. name: haproxy.requests.denied
  45. sum:
  46. aggregationTemporality: 2
  47. dataPoints:
  48. - asInt: "0"
  49. startTimeUnixNano: "1691479578831831000"
  50. timeUnixNano: "1691479579855985000"
  51. isMonotonic: true
  52. unit: '{requests}'
  53. - description: Cumulative number of request errors. Corresponds to HAProxy's `ereq` metric.
  54. name: haproxy.requests.errors
  55. sum:
  56. aggregationTemporality: 2
  57. dataPoints:
  58. - asInt: "0"
  59. startTimeUnixNano: "1691479578831831000"
  60. timeUnixNano: "1691479579855985000"
  61. isMonotonic: true
  62. unit: '{errors}'
  63. - description: HTTP requests per second over last elapsed second. Corresponds to HAProxy's `req_rate` metric.
  64. gauge:
  65. dataPoints:
  66. - asDouble: 1
  67. startTimeUnixNano: "1691479578831831000"
  68. timeUnixNano: "1691479579855985000"
  69. name: haproxy.requests.rate
  70. unit: '{requests}'
  71. - description: Total number of HTTP requests received. Corresponds to HAProxy's `req_tot`, `hrsp_1xx`, `hrsp_2xx`, `hrsp_3xx`, `hrsp_4xx`, `hrsp_5xx` and `hrsp_other` metrics.
  72. name: haproxy.requests.total
  73. sum:
  74. aggregationTemporality: 2
  75. dataPoints:
  76. - asInt: "0"
  77. attributes:
  78. - key: status_code
  79. value:
  80. stringValue: 1xx
  81. startTimeUnixNano: "1691479578831831000"
  82. timeUnixNano: "1691479579855985000"
  83. - asInt: "0"
  84. attributes:
  85. - key: status_code
  86. value:
  87. stringValue: 2xx
  88. startTimeUnixNano: "1691479578831831000"
  89. timeUnixNano: "1691479579855985000"
  90. - asInt: "0"
  91. attributes:
  92. - key: status_code
  93. value:
  94. stringValue: 3xx
  95. startTimeUnixNano: "1691479578831831000"
  96. timeUnixNano: "1691479579855985000"
  97. - asInt: "0"
  98. attributes:
  99. - key: status_code
  100. value:
  101. stringValue: 4xx
  102. startTimeUnixNano: "1691479578831831000"
  103. timeUnixNano: "1691479579855985000"
  104. - asInt: "0"
  105. attributes:
  106. - key: status_code
  107. value:
  108. stringValue: 5xx
  109. startTimeUnixNano: "1691479578831831000"
  110. timeUnixNano: "1691479579855985000"
  111. - asInt: "0"
  112. attributes:
  113. - key: status_code
  114. value:
  115. stringValue: other
  116. startTimeUnixNano: "1691479578831831000"
  117. timeUnixNano: "1691479579855985000"
  118. isMonotonic: true
  119. unit: '{requests}'
  120. - description: Responses denied because of security concerns. Corresponds to HAProxy's `dresp` metric
  121. name: haproxy.responses.denied
  122. sum:
  123. aggregationTemporality: 2
  124. dataPoints:
  125. - asInt: "0"
  126. startTimeUnixNano: "1691479578831831000"
  127. timeUnixNano: "1691479579855985000"
  128. isMonotonic: true
  129. unit: '{responses}'
  130. - description: Current sessions. Corresponds to HAProxy's `scur` metric.
  131. gauge:
  132. dataPoints:
  133. - asInt: "1"
  134. startTimeUnixNano: "1691479578831831000"
  135. timeUnixNano: "1691479579855985000"
  136. name: haproxy.sessions.count
  137. unit: '{sessions}'
  138. - description: Number of sessions per second over last elapsed second. Corresponds to HAProxy's `rate` metric.
  139. gauge:
  140. dataPoints:
  141. - asDouble: 1
  142. startTimeUnixNano: "1691479578831831000"
  143. timeUnixNano: "1691479579855985000"
  144. name: haproxy.sessions.rate
  145. unit: '{sessions}'
  146. scope:
  147. name: otelcol/haproxyreceiver
  148. version: latest