You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`pipelines_as_code_git_provider_api_request_count`| Counter | Number of API requests submitted to git providers |
15
16
|`pipelines_as_code_pipelinerun_count`| Counter | Number of pipelineruns created by pipelines-as-code |
16
17
|`pipelines_as_code_pipelinerun_duration_seconds_sum`| Counter | Number of seconds all pipelineruns have taken in pipelines-as-code |
17
18
|`pipelines_as_code_running_pipelineruns_count`| Gauge | Number of running pipelineruns in pipelines-as-code |
19
+
20
+
**Note:** The metric `pipelines_as_code_git_provider_api_request_count`
21
+
is emitted by both the Controller and the Watcher, since both services
22
+
use Git providers' APIs. When analyzing this metric, you may need to
23
+
combine both services' metrics. For example, using PromQL:
24
+
25
+
-`sum (pac_controller_pipelines_as_code_git_provider_api_request_count or pac_watcher_pipelines_as_code_git_provider_api_request_count)`
26
+
-`sum (rate(pac_controller_pipelines_as_code_git_provider_api_request_count[1m]) or rate(pac_watcher_pipelines_as_code_git_provider_api_request_count[1m]))`
27
+
28
+

python -c "import sys,json,datetime; [print(f'• { (lambda t: datetime.datetime.fromisoformat(t.rstrip(\"Z\")).strftime(\"%H:%M:%S\") if isinstance(t,str) else datetime.datetime.fromtimestamp(t).strftime(\"%H:%M:%S\"))(json.loads(l.strip())[\"ts\"] )} {json.loads(l.strip()).get(\"msg\",\"\")}') if l.strip().startswith('{') else print(l.strip()) for l in sys.stdin]" \
108
+
</tmp/logs/pac-pods.log
109
+
fi
110
+
100
111
kind export logs /tmp/logs
101
112
[[ -d /tmp/gosmee-replay ]] && cp -a /tmp/gosmee-replay /tmp/logs/
0 commit comments