dora-metrics / pelorus

Automate the measurement of organizational behavior
https://pelorus.readthedocs.io/
Apache License 2.0
245 stars 83 forks source link

Using the webhook posting commit and deploytime, grafana issue? #890

Open weshayutin opened 1 year ago

weshayutin commented 1 year ago

ok.. here's my data

webhook_processed_total 13.0
# HELP webhook_processed_created Number of processed webhooks
# TYPE webhook_processed_created gauge
webhook_processed_created 1.6785702379354002e+09
# HELP commit_timestamp Commit timestamp
# TYPE commit_timestamp gauge
commit_timestamp{app="mongo-todolist",commit_hash="5379bad65a3f83853a75aabec9e0e43c75fd18fc",image_sha="sha256:af4092ccbfa99a3ec1ea93058fe39b8ddfd8db1c7a18081db397c50a0b8ec77d",namespace="mongo-persistent"} 1.678105701e+09
commit_timestamp{app="mongo-todolist",commit_hash="5379bad65a3f83853a75aabec9e0e43c75fd18fe",image_sha="sha256:af4092ccbfa99a3ec1ea93058fe39b8ddfd8db1c7a18081db397c50a0b8ec77f",namespace="mongo-persistent"} 1.678105712e+09
commit_timestamp{app="mongo-todolist",commit_hash="5379bad65a3f83853a75aabec9e0e43c75fd18fg",image_sha="sha256:af4092ccbfa99a3ec1ea93058fe39b8ddfd8db1c7a18081db397c50a0b8ec77f",namespace="mongo-persistent"} 1.678573123e+09
commit_timestamp{app="mongo-todolist",commit_hash="5379bad65a3f83853a75aabec9e0e43c75fd18fi",image_sha="sha256:ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",namespace="mongo-persistent"} 1.67857335e+09
commit_timestamp{app="mongo-todolist",commit_hash="5379bad65a3f83853a75aabec9e0e43c75fd18fj",image_sha="sha256:d506e53865631f460d841ec8158cd946157fe57b5f223b614c26d3a4bb8c83df",namespace="mongo-persistent"} 1.678573624e+09
commit_timestamp{app="mongo-todolist",commit_hash="88bff218f76ce963e257c1db72d9a2cecb3b5528",image_sha="sha256:e1a0f2f6107b6d9f23b72079eac7653c3c9d6737590eeec855e0a52f449a8201",namespace="mongo-persistent"} 1.678573998e+09
# HELP deploy_timestamp Deployment timestamp
# TYPE deploy_timestamp gauge
deploy_timestamp{app="mongo-todolist",image_sha="sha256:af4092ccbfa99a3ec1ea93058fe39b8ddfd8db1c7a18081db397c50a0b8ec77d",namespace="mongo-persistent"} 1.678106205e+09
deploy_timestamp{app="mongo-todolist",image_sha="sha256:af4092ccbfa99a3ec1ea93058fe39b8ddfd8db1c7a18081db397c50a0b8ec77f",namespace="mongo-persistent"} 1.678106705e+09
deploy_timestamp{app="mongo-todolist",image_sha="sha256:ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",namespace="mongo-persistent"} 1.67857335e+09
deploy_timestamp{app="mongo-todolist",image_sha="sha256:d506e53865631f460d841ec8158cd946157fe57b5f223b614c26d3a4bb8c83df",namespace="mongo-persistent"} 1.678573624e+09
deploy_timestamp{app="mongo-todolist",image_sha="sha256:e1a0f2f6107b6d9f23b72079eac7653c3c9d6737590eeec855e0a52f449a8201",namespace="mongo-persistent"} 1.678573998e+09
# HELP failure_creation_timestamp Failure Creation Timestamp
# TYPE failure_creation_timestamp gauge
# HELP failure_resolution_timestamp Failure Resolution Timestamp
# TYPE failure_resolution_timestamp gauge

The deploytime is properly getting through to grafana, however either I'm doing something incorrectly or perhaps we have a bug? Not sure.. See screenshot

Image

weshayutin commented 1 year ago

perhaps posting w/ the same commit hash w/ different image sha's and timestamps is throwing things off? not sure. Will discuss soon :)

mpryc commented 1 year ago

May be relevant to #934