Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export a /prometheus endpoint #680

Merged
merged 2 commits into from Sep 25, 2019
Merged

export a /prometheus endpoint #680

merged 2 commits into from Sep 25, 2019

Conversation

grahamc
Copy link
Member

@grahamc grahamc commented Sep 24, 2019

Currently only shows per-machine build times

@grahamc
Copy link
Member Author

grahamc commented Sep 24, 2019

I ran a local hydra with one local builder and a few dummy builds. Igot this out:

# HELP hydra_machine_build_duration How long builds are taking per server
# TYPE hydra_machine_build_duration histogram
hydra_machine_build_duration_count{machine="localhost"} 3
hydra_machine_build_duration_sum{machine="localhost"} 48
hydra_machine_build_duration_bucket{machine="localhost",le="60"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="600"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="1800"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="3600"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="7200"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="21600"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="43200"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="86400"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="172800"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="259200"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="345600"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="518400"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="604800"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="691200"} 3
hydra_machine_build_duration_bucket{machine="localhost",le="+Inf"} 3
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 0.54
# HELP process_cpu_system_seconds_total Total system CPU time spent in seconds
# TYPE process_cpu_system_seconds_total counter
process_cpu_system_seconds_total 0.03
# HELP process_cpu_user_seconds_total Total user CPU time spent in seconds
# TYPE process_cpu_user_seconds_total counter
process_cpu_user_seconds_total 0.51
# HELP process_max_fds Maximum number of allowed file handles
# TYPE process_max_fds gauge
process_max_fds 1024
# HELP process_open_fds Number of open file handles
# TYPE process_open_fds gauge
process_open_fds 13
# HELP process_resident_memory_bytes Resident memory size in bytes
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 175136768
# HELP process_start_time_seconds Unix epoch time the process started at
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1569357039.59
# HELP process_virtual_memory_bytes Virtual memory size in bytes
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 339767296

@grahamc
Copy link
Member Author

grahamc commented Sep 24, 2019

Depends on NixOS/nixpkgs#69379 being backported.

@edolstra edolstra merged commit 037f648 into NixOS:master Sep 25, 2019
@grahamc grahamc deleted the prometheus branch September 25, 2019 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants