Skip to content

Atlassian Instance Health Exporter for Prometheus - used to scrape https://<jira|confluence>/rest/troubleshooting/1.0/check/

License

Notifications You must be signed in to change notification settings

ParsonsCorp/atlassian_instance_health_exporter

Repository files navigation

Atlassian Instance Health Exporter for Prometheus

Go Report Card

Atlassian Instance health is used to check your application for known issues.

References

Label Usage

Have dropped time because of cardinality.

isHealthy is used for the metric value (bool to float)

Dropped healthy as it matches isHealthy

Docker Build Example

docker build . -t atlassian_instance_health_exporter

Docker Run Example

List Help

docker run -it --rm atlassian_instance_health_exporter -help

Simple run

docker run -it --rm -p 9998:9998 atlassian_instance_health_exporter -app.token='' -app.fqdn="confluence.domain.com"

Run with difference port

docker run -it --rm -p 6060:6060 atlassian_instance_health_exporter -app.token='' -app.fqdn="jira.domain.com" -svc.port=6060

Run with debug and color logrus

docker run -it --rm -p 9998:9998 atlassian_instance_health_exporter -app.token='' -app.fqdn="confluence.domain.com" -debug -enable-color-logs

Confluence or Jira Curl Endpoint Example

curl -u 'username:password' https://<jira-baseurl>/rest/troubleshooting/1.0/check/

Response JSON Example

...
    {
      "id": 0,
      "completeKey": "com.atlassian.jira.plugins.jira-healthcheck-plugin:eolHealthCheck",
      "name": "End of Life",
      "description": "Checks if the running version of JIRA is approaching, or has reached End of Life.",
      "isHealthy": true,
      "failureReason": "JIRA version 7.3.x has not reached End of Life. This version will reach End of Life in 722 days.",
      "application": "JIRA",
      "time": 1484054268591,
      "severity": "undefined",
      "documentation": "https://confluence.atlassian.com/x/HjnRLg",
      "tag": "Supported Platforms",
      "healthy": true
    },
...

Prometheus Job

- job_name: "atlassian_instance_health_exporter"
  static_configs:
  - targets:
    - 'host.domain.com:9998'

Troubleshooting

If you receive a 403, most likely the account is not a Confluence or Jira Administrator.

References

Thank you everyone that writes code and docs!

About

Atlassian Instance Health Exporter for Prometheus - used to scrape https://<jira|confluence>/rest/troubleshooting/1.0/check/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published