adoroszlai opened a new pull request #1118: HDDS-1811. Prometheus metrics are 
broken
URL: https://github.com/apache/hadoop/pull/1118
 
 
   ## What changes were proposed in this pull request?
   
   Fix invalid metric type errors:
   
   ```
   target=http://192.168.69.76:9882/prom err="invalid metric type 
\"apache.hadoop.ozone.container.common.transport.server.ratis._csm_metrics_delete_container_avg_time
 gauge\""
   ```
   
   and
   
   ```
   target=http://scm:9876/prom err="invalid metric type 
\"_rati_s-_thre_e-d7116831-ac55-4bf2-a259-d85cfba0572d counter\""
   ```
   
    1. datanode: avoid `.` in record name by using simple class name
    2. SCM: replace `-` with `_`.  Also properly convert `ALL_CAPS` names, eg. 
`RATIS_THREE` to `ratis_three` instead of `_rati_s-_thre_e`.
   
   https://issues.apache.org/jira/browse/HDDS-1811
   
   ## How was this patch tested?
   
   Updated unit test.
   
   Checked metrics in `ozoneperf` pseudo-cluster.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to