Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-14772

Include servicemonitor in openshift profile of quickstarts/archetypes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • Fuse on Openshift
    • None
    • False
    • False
    • % %
    • ?
    • Undefined

      In order to monitor a Fuse app, we need to create a servicemonitor for the app :

      https://github.com/jboss-fuse/application-templates/blob/master/monitoring/fuse-servicemonitor.yml#L40-L54 

      We might be able to save a step in monitoring setup if we configured f-m-p or openshift-maven-plugin to configure the servicemonitor in a "monitoring" or the openshift profile.    In recent versions of openshift, the servicemonitor CRD will be there - maybe we could do something smart and try to detect the version of openshift we're installing on.

      I don't think the servicemonitor CRD will be there out of the box in openshift 3 or openshift <= 4.2, so we wouldn't want to do that there because it might cause an error.

      example

      mvn -Popenshift,monitoring fabric8:deploy 

       

            tcunning@redhat.com Thomas Cunningham
            tcunning@redhat.com Thomas Cunningham
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: