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

NetdataForAtlassian #3057

Closed
ktsaou opened this issue Nov 23, 2017 · 5 comments
Closed

NetdataForAtlassian #3057

ktsaou opened this issue Nov 23, 2017 · 5 comments
Labels

Comments

@ktsaou
Copy link
Member

ktsaou commented Nov 23, 2017

@wjkennedy I think you are the author of https://bitbucket.org/wkennedy/netdataforatlassian/wiki/Home

I run jira and I monitor it with netdata, so I have a few suggestions to make for your wiki:

  1. Enable systemd services monitoring for debian: https://github.com/firehol/netdata/wiki/monitoring-systemd-services#how-to-enable-cgroup-accounting-on-systemd-systems-that-is-by-default-disabled

  2. Add Atlassian applications for apps.plugin. Now your wiki provides screenshots for java applications. You can add all Atlassian apps at /etc/netdata/apps_groups.conf. On my system I have these (add them before java):

jira: */opt/atlassian/jira*

If we add such patterns, netdata will be able to provide separate chart dimensions for each of the atlassian apps, even when they run on the same server (without these patterns, netdata will group them together as java).

  1. Using the latest version of netdata (like you do), you can press ALT on the keyboard and then select an area of interest at a chart. netdata will highlight that area on all charts of the dashboard, like this:

screenshot from 2017-11-23 22-11-41

  1. On my installation I chose to proxy jira through an nginx running on the same host. This provided an access.log file, which was automatically picked up by netdata and allowed me to have charts like these:

screenshot from 2017-11-23 22-37-10

The best part is that I can get jira API timings:

screenshot from 2017-11-23 22-38-12

and with a bit of netdata customization, I can get a real-time view of which jira API methods are called:

screenshot from 2017-11-23 22-40-04

For this customization I edited /etc/netdata/python.d/web_log.conf, removed the default jobs and added this one:

jira_nginxlog:
  path: '/var/log/nginx/access.log'
  categories:
    tempo: '.*[Tt][Ee][Mm][Pp][Oo].*'
    download: '.*/download/.*'
    images: '.*/images/.*'
    gadget: '.*/gadgets?/.*'
    scriptrunner: '.*/scriptrunner/.*'
    analytics: '.*/analytics/.*'
    slack: '.*/slack/.*'
    hipchat: '.*/hipchat/.*'
    raven: '.*/raven/.*'
    servicedesk: '.*/servicedesk/.*'
    issue: '^/jira/rest/api/2/issue/.*'
    stub_status: '.*stub_status.*'
    search: '.*/jira/rest/api/2/search.*'
    webresources: '.*/rest/webResources/1.0/resources.*'
    avatar: '.*/jira/secure/(user|view)avatar.*'
    comment_template: '.*/comment-templates/.*'
    other: '.*'

It would be best if we could have an official list of all the interesting jira patterns.

@ilyam8
Copy link
Member

ilyam8 commented Nov 23, 2017

plugin uses re.search:

Scan through string looking for the first location where the regular expression pattern produces a match

So
all patterns should be
/PATTERN/ not .* /PATTERN/. *

#2328 (comment)

@wjkennedy
Copy link

Thanks for the thoughtful feedback.

FWIW: This is not part of the Netdata project, just a blog I maintain.

I have added your comments to a new 'Feedback' section: https://bitbucket.org/wkennedy/netdataforatlassian/wiki/Feedback%20and%20Followup

@ktsaou
Copy link
Member Author

ktsaou commented Jan 12, 2018

btw, you may be interested for this: https://github.com/firehol/netdata/wiki/Custom-Dashboard-with-Confluence

@paulfantom
Copy link
Contributor

@ktsaou Can this be closed?

@ktsaou
Copy link
Member Author

ktsaou commented Sep 23, 2018

Yes, I think it can.

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

No branches or pull requests

4 participants