Skip to content

Commit

Permalink
add sample in config.yaml file for GC metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
xudesheng committed Apr 10, 2022
1 parent 3f92f31 commit 22ccc96
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]

### Added
## [v4.2.3] - 2022-04-07

### Added
- Limited support to flatten the Java TabularData format into InfluxDB Measurement for GC metrics.
- Added sample of `jmx_garbagecollector_status` to capture the GC metrics in the sample configuration file.

## [v4.2.2] - 2022-04-07

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tsample"
version = "4.2.2"
version = "4.2.3"
authors = ["xudesheng <[email protected]>"]
edition = "2021"
readme = "README.md"
Expand Down
7 changes: 7 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ thingworx_servers:
# you can add/remove field in the blow list, or make it empty to include all fields.
metrics: ["PeakUsage_committed","PeakUsage_init","Valid","PeakUsage_used","Usage_committed","Usage_used","Usage_init","CollectionUsage_used","CollectionUsage_committed","CollectionUsage_init","CollectionUsageThresholdCount",]

# this jmx_metrics is optional, you have to install specific jmx extension in order to use this block.
# it will grab both "G1 Old Generation" and "G1 Young Generation" metrics in different sub_name.
# the original data format is Java TabularData, which is not supported by InfluxDB. therefore, it will be flattened into a single line.
- name: jmx_garbagecollector_status
object_name_pattern: "java.lang:type=GarbageCollector,name=G1"
metrics: ["LastGcInfo_duration","LastGcInfo_endTime","LastGcInfo_memoryUsageAfterGc","LastGcInfo_memoryUsageBeforeGc","LastGcInfo_startTime","CollectionCount","CollectionTime"]

# in the case where you want to grab the metrics from any URL, you can use this block.
# the url is the full URL after /Thingworx of the metrics.
# as long as the result follows the sample JSON format, it will be parsed and scraped. the JSON format should
Expand Down

0 comments on commit 22ccc96

Please sign in to comment.