Metrics
Attributes
attribute
meter= meter
attribute
node_calls= self.meter.create_counter(name='liman.finops.node.calls', description='Count of calls of Liman nodes', unit='{call}')
attribute
input_llm_tokens= self.meter.create_counter(name='liman.finops.input_llm_tokens', description='Count of tokens used in Liman nodes', unit='{token}')
attribute
output_llm_tokens= self.meter.create_counter(name='liman.finops.output_llm_tokens', description='Count of tokens produced by Liman nodes', unit='{token}')
attribute
llm_tokens_cost= self.meter.create_counter(name='liman.finops.llm_tokens_cost', description='Cost of LLM tokens used in Liman nodes', unit='{currency}')
attribute
actor_executions= self.meter.create_counter(name='liman.finops.actor.executions', description='Count of NodeActor executions', unit='{execution}')
attribute
actor_execution_time= self.meter.create_histogram(name='liman.finops.actor.execution_time', description='Execution time of NodeActor operations', unit='s')
attribute
actor_errors= self.meter.create_counter(name='liman.finops.actor.errors', description='Count of NodeActor execution errors', unit='{error}')
Functions
func
__init____init__(self, /, meter) -> None
param
selfparam
meterMeter
Returns
None
Last updated on