{"id":20757618,"url":"https://github.com/dodevops/scalyr-jmxtrans","last_synced_at":"2025-08-04T10:36:59.543Z","repository":{"id":90748508,"uuid":"301308276","full_name":"dodevops/scalyr-jmxtrans","owner":"dodevops","description":"An Scaylr agent for fetching JMX metrics using JMXtrans and Graphite.","archived":false,"fork":false,"pushed_at":"2020-10-07T07:51:08.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-10T17:52:18.253Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dodevops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-05T06:02:18.000Z","updated_at":"2021-06-08T17:32:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"674d2e44-04cd-4b9e-a6fd-69ece11db695","html_url":"https://github.com/dodevops/scalyr-jmxtrans","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dodevops/scalyr-jmxtrans","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fscalyr-jmxtrans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fscalyr-jmxtrans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fscalyr-jmxtrans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fscalyr-jmxtrans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dodevops","download_url":"https://codeload.github.com/dodevops/scalyr-jmxtrans/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fscalyr-jmxtrans/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268682861,"owners_count":24289691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T09:43:25.129Z","updated_at":"2025-08-04T10:36:59.492Z","avatar_url":"https://github.com/dodevops.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scalyr JMX fetching\n\n![Docker Build Status](https://img.shields.io/docker/build/dodevops/scalyr-jmxtrans) ![Docker Image Version (latest by date)](https://img.shields.io/docker/v/dodevops/scalyr-jmxtrans) ![Docker Pulls](https://img.shields.io/docker/pulls/dodevops/scalyr-jmxtrans)\n\n## Introduction\n\nThis repository holds a Dockerized solution for fetching JMX metrics and \ntransferring them to the [Scalyr Cloud](https://scalyr.com).\n\nAs Scalyr doesn't support JMX out of the box yet, this is done by fetching\nJMX metrics using [JMXTRANS](http://jmxtrans.org/) and feeding them to\nthe Scalyr agent using the \n[Graphite relay](https://app.scalyr.com/help/data-sources#graphite) feature.\n\n## Usage\n\nStart your app and a container using this image as a sidecar container and \nset the following environment variables:\n\n* JMX_PORT: The JMX port your app JVM listens to on localhost\n* JMX_USERNAME: (optional) username to use when connecting \n* JMX_PASSWORD: (optional) password to use when connecting\n* JMX_QUERIES: The JMX queries to run from JMXTRANS\n* SCALYR_VERSION: Version of the Scalyr agent to install\n* SCALYR_APIKEY: API Key to use when sending to scalyr\n* SCALYR_SERVER: Scalyr Server to send logs to\n\n## Queries\n\nThe JMX_QUERIES environment variable holds a list of queries for JMXTRANS.\n\nIt is formatted as:\n\n* All queries are separated by |\n* A query starts with the JMX bean object to query (e.g. java.lang:type=Memory)\n* After the query a ; separates the query from the attributes to fetch\n* The attributes are separated by , (e.g. HeapMemoryUsage,NonHeapMemoryUsage)\n\nThis will add the requested queries to the JMXTRANS configuration and write\nall results to Scalyr.\n\nThe resulting metrics will have the full object class path as a key (e.g. sun_management_MemoryImpl_HeapMemoryUsage.used).\nIf you like to shorten that up, you can add an @ and an alias to the object name.\n\nPlease see [JMXTRANS' queries documentation](https://github.com/jmxtrans/jmxtrans/wiki/Queries) for more details.\n\n## Example\n\n    JMX_QUERIES=java.lang:type=Memory@memory;HeapMemoryUsage,NonHeapMemoryUsage|java.lang:type=Threading@threading;ThreadCount\n\nWill fetch the following beans and attributes:\n\n* java.lang:type=Memory (metrics received from this bean are prefixed with the alias \"memory\")\n  * HeapMemoryUsage\n  * NonHeapMemoryUsage\n* java.lang:type=Threading (metrics received from this bean are prefixed with the alias \"threading\")\n  * ThreadCount\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fscalyr-jmxtrans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodevops%2Fscalyr-jmxtrans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fscalyr-jmxtrans/lists"}