Project

General

Profile

Actions

Feature #1906

closed

Add Trends Page to track changes in Fact host counts

Added by Robert Birnie over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inventory
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

We currently have a page to track historical trends in our infrastructure but it's datasource is going the way of the Dodo, so I worked to recreate this information in Foreman.

Goal: Be able to track historical host count for each Environment, Model, and Operatingsystem. Able to add any puppet Fact to the Trends page and start collecting stats. For example this will let a user view the rate that a now unsupported OS is being removed from the infrastructure and how quickly a new OS is being adopted.

My current code progress is here:

[[https://github.com/rbirnie/foreman/commit/e4b4b4fa0d8a934ac578821e9c2a1fc1a96474c7]]

Outstanding issues:
  • Would be better if Trends ignored hosts which are out of sync or have never reported. Host counts are coming through FactValue though so not sure how to pair that with Host.recent data.
  • I can't seem to add the Trends button to the top. Added a line in app/views/home/_topbar.rhtml which I thought would do it but no bueno.
  • Pie charts for Environment, Model, and Operatingsystem don't work - they are passing their ID code as Facts and will show the Pie Chart for that fact_name_id. Rather than their respective models.
Setup:
  • There is a new rake task that needs a crontab entry, this guy will add TrendCounter items for each item tracked. I think hourly is best, up to user though /foreman/rake trends:counter

Related issues 1 (0 open1 closed)

Related to Foreman - Feature #924: Tread reporting for facts and historical dataDuplicate05/20/2011Actions
Actions

Also available in: Atom PDF