projectatomic/osbs-metrics

Name: osbs-metrics

Owner: Project Atomic

Description: Playground for examining OSBS build metrics, hope to integrate into osbs-client once ready

Created: 2016-02-24 09:05:52.0

Updated: 2018-04-23 12:52:22.0

Pushed: 2018-04-23 12:52:20.0

Homepage: null

Size: 57

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Some quick-and-dirty tools for getting statistics from an OSBS instance.

metrics

Use like this:

 --output=json list-builds > list-builds.json
on ./metrics.py list-builds.json

visual

After running metrics, use like this:

on ./visual metrics-current.csv metrics-concurrent.csv

graph

Use like this:

 --output=json list-builds | \
python ./graph.py | \
graph-easy --as=dot | \
dot -Tsvg > builds.svg
raph.py``` also has optional parameters:

inputfile: read builds json from file
pulp_base_url: use pulp API to get layer size
  (should be used in case ```tar_metadata``` is inconsistent)

ix
=

 build metadata to Zabbix synthetic host:

python zabbix_metrics_watcher.py \

--zabbix-host <zabbix host> \
--osbs-master <synthetic OSBS host on zabbix> \
--instance <instance name in osbs config>
outdated metadata (atomic-reactor < 1.6.4) ```zabbix_metrics_watcher_oldmetadata.py```
ld be used

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.