Skip to content

Commit

Permalink
chore(jq): Fix metric order in JQ filters (issue #268) (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
lquerel authored Jul 31, 2024
1 parent 03d619e commit 7199c5b
Show file tree
Hide file tree
Showing 6 changed files with 222 additions and 238 deletions.
60 changes: 15 additions & 45 deletions Cargo.lock

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

Large diffs are not rendered by default.

178 changes: 89 additions & 89 deletions crates/weaver_forge/expected_output/test/metric/jvm.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,106 @@
## Metrics Namespace `jvm`


## Metric `jvm.memory.used`
## Metric `jvm.class.count`

Instrument: updowncounter
Unit: By
Unit: {class}
Stability: stable

### Attributes


#### Attribute `jvm.memory.type`

## Metric `jvm.class.loaded`

The type of memory.
Instrument: counter
Unit: {class}
Stability: stable

### Attributes



## Metric `jvm.class.unloaded`

Instrument: counter
Unit: {class}
Stability: stable

### Attributes



## Metric `jvm.cpu.count`

Instrument: updowncounter
Unit: {cpu}
Stability: stable

### Attributes



## Metric `jvm.cpu.recent_utilization`

Instrument: gauge
Unit: 1
Stability: stable

### Attributes



## Metric `jvm.cpu.time`

Instrument: counter
Unit: s
Stability: stable

### Attributes



## Metric `jvm.gc.duration`

Instrument: histogram
Unit: s
Stability: stable

### Attributes


#### Attribute `jvm.gc.name`

Name of the garbage collector.


Garbage collector name is generally obtained via [GarbageCollectionNotificationInfo#getGcName()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcName()).

- Requirement Level: Recommended

- Type: Enum [heap, non_heap]
- Type: string
- Examples: [
"heap",
"non_heap",
"G1 Young Generation",
"G1 Old Generation",
]

- Stability: Stable


#### Attribute `jvm.memory.pool.name`
#### Attribute `jvm.gc.action`

Name of the memory pool.
Name of the garbage collector action.


Pool names are generally obtained via [MemoryPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName()).
Garbage collector action is generally obtained via [GarbageCollectionNotificationInfo#getGcAction()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcAction()).

- Requirement Level: Recommended

- Type: string
- Examples: [
"G1 Old Gen",
"G1 Eden space",
"G1 Survivor Space",
"end of minor GC",
"end of major GC",
]

- Stability: Stable
Expand Down Expand Up @@ -136,7 +197,7 @@ Pool names are generally obtained via [MemoryPoolMXBean#getName()](https://docs.



## Metric `jvm.memory.used_after_last_gc`
## Metric `jvm.memory.used`

Instrument: updowncounter
Unit: By
Expand Down Expand Up @@ -181,46 +242,45 @@ Pool names are generally obtained via [MemoryPoolMXBean#getName()](https://docs.



## Metric `jvm.gc.duration`
## Metric `jvm.memory.used_after_last_gc`

Instrument: histogram
Unit: s
Instrument: updowncounter
Unit: By
Stability: stable

### Attributes


#### Attribute `jvm.gc.name`

Name of the garbage collector.
#### Attribute `jvm.memory.type`

The type of memory.

Garbage collector name is generally obtained via [GarbageCollectionNotificationInfo#getGcName()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcName()).

- Requirement Level: Recommended

- Type: string
- Type: Enum [heap, non_heap]
- Examples: [
"G1 Young Generation",
"G1 Old Generation",
"heap",
"non_heap",
]

- Stability: Stable


#### Attribute `jvm.gc.action`
#### Attribute `jvm.memory.pool.name`

Name of the garbage collector action.
Name of the memory pool.


Garbage collector action is generally obtained via [GarbageCollectionNotificationInfo#getGcAction()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcAction()).
Pool names are generally obtained via [MemoryPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName()).

- Requirement Level: Recommended

- Type: string
- Examples: [
"end of minor GC",
"end of major GC",
"G1 Old Gen",
"G1 Eden space",
"G1 Survivor Space",
]

- Stability: Stable
Expand Down Expand Up @@ -264,64 +324,4 @@ State of the thread.
- Stability: Stable



## Metric `jvm.class.loaded`

Instrument: counter
Unit: {class}
Stability: stable

### Attributes



## Metric `jvm.class.unloaded`

Instrument: counter
Unit: {class}
Stability: stable

### Attributes



## Metric `jvm.class.count`

Instrument: updowncounter
Unit: {class}
Stability: stable

### Attributes



## Metric `jvm.cpu.count`

Instrument: updowncounter
Unit: {cpu}
Stability: stable

### Attributes



## Metric `jvm.cpu.time`

Instrument: counter
Unit: s
Stability: stable

### Attributes



## Metric `jvm.cpu.recent_utilization`

Instrument: gauge
Unit: 1
Stability: stable

### Attributes



Loading

0 comments on commit 7199c5b

Please sign in to comment.