client_golang icon indicating copy to clipboard operation
client_golang copied to clipboard

add _created support: add createdTime() method to counter

Open andysim3d opened this issue 2 years ago • 3 comments

first step of issue #685

Signed-off-by: Pengfei Zhang [email protected]

andysim3d avatar May 03 '22 21:05 andysim3d

@beorn7 Please take a look since you are the original owner of that issue.

andysim3d avatar May 03 '22 21:05 andysim3d

While I opened this issue, this has to be figured out between the OpenMetrics experts and the current maintainers of prometheus/client_golang.

From a very general perspective, I don't think Created() should be a method (similar to not making the counter value itself accessible via some kind of Get() method).

beorn7 avatar May 04 '22 10:05 beorn7

Hello,

Is this still being discussed?

pintohutch avatar Sep 23 '22 19:09 pintohutch

Can we please do this? _created timeseries is a necessary prerequisite for upstream Kubernetes to even consider supporting prometheus' open-metrics format.

logicalhan avatar Feb 07 '23 15:02 logicalhan

Can we please do this? _created timeseries is a necessary prerequisite for upstream Kubernetes to even consider supporting prometheus' open-metrics format.

I will check-in with maintainers about this again.

kakkoyun avatar Mar 01 '23 14:03 kakkoyun

BTW, @ArthurSens, our mentee works on adding created timestamp with tests https://github.com/prometheus/client_golang/pull/1044

bwplotka avatar Aug 02 '23 07:08 bwplotka

Done in https://github.com/prometheus/client_golang/pull/1044, so closing this PR. Thanks anyway!

bwplotka avatar Oct 10 '23 08:10 bwplotka

Done in #1044, so closing this PR. Thanks anyway!

this is PR #1044...

logicalhan avatar Oct 10 '23 15:10 logicalhan

I believe he meant #1313

ArthurSens avatar Oct 10 '23 16:10 ArthurSens