ConSol / springboot-monitoring-example

Simple SpringBoot application with Prometheus metrics
12 stars 28 forks source link

Need help deploying prometheus #1

Open satabdichakraborty opened 6 years ago

satabdichakraborty commented 6 years ago

Hi, I am trying to deploy this example to Openshift and getting into some issues.

First I got an error executing the command oc new-app -f C://springboot-monitoring-example//templates//prometheus3.7_with_clusterrole.yaml -p NAMESPACE=prometheus

It got resolved by changing the following in 'prometheus3.7_with_clusterrole.yaml'

apiVersion: template.openshift.io/v1

apiVersion: v1

now when I try to do the

C:\Softwares\openshift-origin-client>oc new-app -f C://springboot-monitoring-example//templates//prometheus3.7_with_clusterrole. yaml -p NAMESPACE=prometheus --> Deploying template "prometheus/prometheus" for "C://springboot-monitoring-example//templates//prometheus3.7_with_clusterrole .yaml" to project prometheus

 Prometheus
 ---------
 A monitoring solution for an OpenShift cluster - collect and gather metrics

and alerts from nodes, services, and the infrastructure. This is a tech preview feature.

 * With parameters:
    * NAMESPACE=prometheus
    * IMAGE_PROXY=openshift/oauth-proxy:v1.0.0
    * IMAGE_PROMETHEUS=openshift/prometheus:v2.0.0
    * IMAGE_ALERTMANAGER=openshift/prometheus-alertmanager:v0.9.1
    * IMAGE_ALERT_BUFFER=openshift/prometheus-alert-buffer:v0.0.2
    * SESSION_SECRET=RkveeKbjp2UofPxk60QokCNf7KoinUkYqa7tQb0ng5E # generated

error: object does not implement the Object interfaces

Please advise and thanks in advance!

olaf-meyer commented 5 years ago

I'm sorry for the late reply. Could you give me some more information about the error message?