Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 1.81 KB

README.md

File metadata and controls

59 lines (47 loc) · 1.81 KB

jira-exporter

JIRA metrics exporter to MP / Prometheus metrics

JIRA_PROJECTS=QUARKUS JIRA_AUTH_TOKEN=foo mvn quarkus:dev

curl http://0.0.0.0:8080/metrics/ 2>/dev/null | grep jira

Docker image

https://hub.docker.com/r/rostasvo/jira-exporter

docker pull rostasvo/jira-exporter:1.1.16.Final

docker run --env JIRA_PROJECTS=QUARKUS --env JIRA_AUTH_TOKEN=foo -i --rm -p 8080:8080 rostasvo/jira-exporter:1.1.16.Final

Metrics

All metrics have type gauge.

# HELP jira_open_blocker Total number of open blocker issues for given project
# HELP jira_open_critical Total number of open critical issues for given project
# HELP jira_verified_blocker Total number of verified blocker issues for given project
# HELP jira_verified_critical Total number of verified critical issues for given project

Release

Docker images are supposed to target linux/amd64 architecture.

mvn release:prepare
mvn release:clean

git checkout $TAG

mvn clean package -DskipTests -Pnative \
  -Dquarkus.native.container-build=true \
  -Dquarkus.native.container-runtime-options=--platform=linux/amd64 \
  -Dquarkus.podman.platform=linux/amd64 \
  -Dquarkus.container-image.build=true \
  -Dquarkus.container-image.push=true \
  -Dquarkus.container-image.username=rostasvo \
  -Dquarkus.container-image.password=$PASSWORD \
  -Dquarkus.container-image.registry=docker.io \
  -Dquarkus.container-image.group=rostasvo

The following command is sufficient when on an x86_64 machine:

mvn clean package -Dnative -Dquarkus.native.container-build=true \
  -Dquarkus.container-image.build=true \
  -Dquarkus.container-image.push=true \
  -Dquarkus.container-image.username=rostasvo \
  -Dquarkus.container-image.password=$PASSWORD \
  -Dquarkus.container-image.registry=docker.io \
  -Dquarkus.container-image.group=rostasvo