AthenZ / k8s-athenz-sia

Apache License 2.0
1 stars 7 forks source link

Add build_info log and metrics #88

Closed y-myajima closed 6 months ago

y-myajima commented 6 months ago

Description

Add build_info log and metrics

example

log

INFO[2024-03-05T11:05:41+09:00] Starting athenz-sia with version 915c51b, built on 2024-03-04T14:11:11JST+0900

metrics

$ curl -sf -X GET http://localhost:9793/metrics
# HELP sidecar_build_info Indicates the application name, build version and date
# TYPE sidecar_build_info gauge
sidecar_build_info{app_name="athenz-sia",built="2024-03-04T14:11:11JST+0900",version="915c51b"} 1

Type of change

Flags

Related issue/PR

Delete this section if there are no issues or pull requests that relate to this pull request.


Checklist

Checklist for maintainer

mlajkim commented 6 months ago

For @mlajkim myself note: TODOs

mlajkim commented 6 months ago