spiffe-helper icon indicating copy to clipboard operation
spiffe-helper copied to clipboard

Telemetry support

Open keeganwitt opened this issue 1 year ago • 1 comments

I wonder if we should support publishing telemetry metrics. The only metric I can think of offhand is to keep a metric for each rotated file (and whether it succeeded).

keeganwitt avatar Dec 10 '24 20:12 keeganwitt

Off the top of my head useful values would include:

  • successful rotation count (counter)
  • last rotation timestamp (gauge, unix epoch timestamp)
  • is cmd running (gauge, bool)
  • last exit code of cmd if it has exited since being launched, NaN otherwise (gauge)
  • number of times pid in pid_file_name signalling attempted (counter)
  • number of times pid in pid_file_name signalling failed with an error (counter)

ringerc avatar Feb 02 '25 20:02 ringerc