miekg / pgo

container gitops in a simple way
GNU General Public License v3.0
11 stars 1 forks source link

metrics #31

Closed miekg closed 10 months ago

miekg commented 1 year ago

port some of the metrics over from gitopper

miekg commented 1 year ago

per service we can export the number of running services from podman-compose ps (count lines basically), but hard to use for alerting because we don't know how many we expect.

miekg commented 1 year ago

i'ts probably wise to capture the command begin execute, for both git and podman-compose I have access to the service name.

pgo_command_total{service=<service>, cmd=git, subcmd=bla} n
pgo_command_errors_total{service=<service>, cmd=git, subcmd=bla} n
miekg commented 1 year ago

exporting healtchecks from the docker-compose might be neat though!

miekg commented 10 months ago

this has been implemented, not the last bit though