v1.0.58 Armory Agent Service (2023-06-09)
Changes:
- rename the operation logging namespacecontextual key tooperationNamespace
- expose logging contextual key-value pairs in config fileThe following two keys could be detected automatically when a value is not provided:logging: fields: keyOne: valueOne keyTwo: valueTwo keyN: valueNThe computed value when it is not specified for the following keys will be:logging: fields: agentCluster: agentNamespace:- agentCluster: Cluster name where agent is running (if- KUBERNETES_SERVICE_NAMEenvironment variable is set), Cluster Host where agent is running (if- KUBERNETES_SERVICE_HOSTenvironment variable is set), empty if any environment variable is specified
- agentNamespace: Namespace where agent is running
 
Example: Having the following configuration:
logging:
  fields:
    agentCluster: test
    agentNamespace:
    keyOne: valueOne
    keyTwo: valueTwo
    keyN: valueN
The log will look like this:
INFO[0099] Operation Delete processed (status 204 No Content) in 2.03850709s  account=account1 agentCluster=test** agentId=7affa394-7ee1-456d-9528-a4339fb56051 **agentNamespace=spinnaker keyN=valueN keyOne=valueOne keyTwo=valueTwo operationId=01H2RBKP1SHP7PDXA1JEMMA6DZ operationNamespace=default operationType=Delete
Feedback
Was this page helpful?
Thank you for letting us know!
Sorry to hear that. Please tell us how we can improve.
Last modified June 12, 2023: (bfc8b3d7)