moonchen opened a new issue, #13940: URL: https://github.com/apache/trafficserver/issues/13940
`TSStatCreate()` ignores its `TSRecordDataType` and `TSStatSync` arguments and always creates a gauge: ```cpp int id = Metrics::Gauge::create(the_name); // src/api/InkAPI.cc ``` So a plugin that asks for a counter, for example with `TS_RECORDDATATYPE_COUNTER` and `TS_STAT_SYNC_SUM`, gets a gauge. stats_over_http then reports it as `# TYPE ... gauge`, and traffic_ctl and JSONRPC report it as an INT. In-tree plugins such as `http_stats` are affected. `TSStatCreate()` should create a counter when the arguments ask for one. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
