Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Prometheus Plugin on Jenkins #23

Open
lordofthejars opened this issue Apr 23, 2018 · 5 comments
Open

Enable Prometheus Plugin on Jenkins #23

lordofthejars opened this issue Apr 23, 2018 · 5 comments
Assignees

Comments

@lordofthejars
Copy link

lordofthejars commented Apr 23, 2018

To enable metrics in Jenkins instances we need to enable Prometheus Jenkins plugin in our base image.

Apart from that we need to configure the plugin accordantly by creating a org.jenkinsci.plugins.prometheus.config.PrometheusConfiguration.xm with next content:

<?xml version='1.1' encoding='UTF-8'?>
<org.jenkinsci.plugins.prometheus.config.PrometheusConfiguration plugin="prometheus@1.1.1">
  <urlName>metrics</urlName>
  <additionalPath></additionalPath>
  <defaultNamespace>default</defaultNamespace>
  <useAuthenticatedEndpoint>false</useAuthenticatedEndpoint>
  <countSuccessfulBuilds>true</countSuccessfulBuilds>
  <countUnstableBuilds>true</countUnstableBuilds>
  <countFailedBuilds>true</countFailedBuilds>
  <countNotBuiltBuilds>true</countNotBuiltBuilds>
  <countAbortedBuilds>true</countAbortedBuilds>
</org.jenkinsci.plugins.prometheus.config.PrometheusConfiguration>

Now what else we would need? @fche I think you mention that we could do something with this but some changes would also be required because of OSIO infrastructure. Can we discuss in this issue what else it is required?

CC/ @chmouel @krishnapaparaju @pradeepto

Related with: openshiftio/openshift.io#2778

@pradeepto
Copy link

@lordofthejars If you are working on this, assign it to yourself and put this on the sprint board. Thanks.

@lordofthejars
Copy link
Author

@pradeepto if I have rights I would do it :) But I have no idea why in all f8 projects I cannot assign myself

@chmouel
Copy link

chmouel commented Apr 23, 2018

@lordofthejars just invited you to this org,

@lordofthejars lordofthejars self-assigned this Apr 23, 2018
@fche
Copy link

fche commented May 23, 2018

Does this mechanism expose the prometheus metrics to unauthenticated localhost (so we'd need the oso-tenant prometheus-relay code in the pod to get at it)? Does it expose them to authenticated routed external URL (so we'd need a user token to get at it)?

@lordofthejars
Copy link
Author

lordofthejars commented May 30, 2018

@fche I am not sure if it is exposed to external URLs. I think that if jenkins server endpoints are available outside localhost, then this Prometheus endpoint is external as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants