Thursday, June 1, 2017

Kicking the tires of Prometheus using Docker on Fedora

Straight from the Prometheus documentation: "Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud."

I haven't had a chance to even take a look at using Prometheus.  Here I'll go over the steps I had to follow to get a working local Prometheus install monitoring my local Docker daemon so I could see metrics through the Prometheus dashboard.

First things first, here are the versions of what I am using (eh, until we find out what the problem is (listed below)):
  • Fedora 25
  • Docker
    • docker-1.12.6-6.gitae7d637.fc25.x86_64
    • docker-common-1.12.6-6.gitae7d637.fc25.x86_64
    • docker-latest-1.12.6-2.git51ef5a8.fc25.x86_64
    • Prometheus
      • prom/prometheus b0195cb1a666
    So, there were a couple of places I went for documentation to get started:



    So, following those docs, I tried to use the default Fedora Docker configuration.  That did not work.  The Docker documentation was off, at least for the version of Docker I am using.  By default, in Fedora, you get a Docker package that is a bit out of date.  Here are the steps I took and what I had to do as a workaround.

    Saturday, February 4, 2017

    Testing OpenShift on Openstack using Snapshots

    The goal here is to allow me to test out OpenShift Container Platform on top of Red Hat OpenStack Platform.  I want to be able to build and tear down the environment quickly so I can check out different configurations.  OpenStack provides a way for me to do this via snapshots.

    The first thing I did was upload a RHEL 7 image.  Then I booted and configured two servers from that image:
    • Bastion Host
    • Master-Infra-AppNode
    To configure these servers, I followed the Red Hat Reference Architecture Red Hat OpenShift Container Platform 3 on Red Hat OpenStack Platform 8 up to page 47, right before deploying OpenShift Container Platform.  This allowed me to update the servers, configure the interfaces, sudo access, etc... Here are what my servers look like:

    $ nova list
    | ID                                   | Name                      | Status  | Task State | Power State | Networks                                                               |
    | 82a42602-030f-4137-94bb-bac5f275dc1b | bastion-gold              | SHUTOFF | -          | Shutdown    | tenant-network=; control-network=192.168.x.6, 10.19.x.80 |
    | 17a505d0-9252-4a65-a0c8-196f6f25e605 | master-infra-appnode-gold | SHUTOFF | -          | Shutdown    | tenant-network=; control-network=192.168.x.5, 10.19.x.53  |

    After the servers were configured, I shut them down and created an image from each of those servers called  "bastion-gold" image, and "master-infra-appnode-gold" image.  This will allow for me to create my OpenShift Container Platform environment from these images.  The steps I followed to create the snapshots are:

    $ openstack server list
    $ nova image-create --poll master-infra-appnode-gold $ nova image-create --poll master-infra-appnode-gold $ nova image-create --poll master-infra-appnode-gold $ nova image-create --poll bastion-gold