-
Notifications
You must be signed in to change notification settings - Fork 125
Add: more examples #518
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
Open
pnvnd
wants to merge
12
commits into
newrelic:master
Choose a base branch
from
pnvnd:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add: more examples #518
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f53e79e
Added flex config for watching files/folders
pnvnd fef2c86
Added flex config for watching files/folders
pnvnd bd83382
Merge branch 'master' of https://github.com/pnvnd/nri-flex
pnvnd 132fd17
Added example for Statuspage component status
pnvnd 782e0e8
Merge branch 'master' into master
cristianciutea 8c82e4d
Merge branch 'newrelic:master' into master
pnvnd 6647923
Update windows-dirwatcher.yml
pnvnd fb80bc6
Create windows-gpusample.yml
pnvnd 1362338
Merge branch 'newrelic:master' into master
pnvnd 47520f4
Merge branch 'newrelic:master' into master
pnvnd 502c9d9
add: ibmmq example
pnvnd 1ed374b
update: fix older windows examples
pnvnd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| integrations: | ||
| - name: nri-flex | ||
| interval: 30s | ||
| config: | ||
| name: ibmmq | ||
| apis: | ||
| - name: ibmmq-status | ||
| event_type: ibmmqStatusSample | ||
| commands: | ||
| - run: "dspmq" | ||
| split: horizontal | ||
| set_header: [qname,status] | ||
| regex_match: true | ||
| split_by: \w+\((.*?)\)\s+\w+\((.*?)\) | ||
| - name: ibmmq-queue-depth | ||
| event_type: ibmmqQueueDepthSample | ||
| commands: | ||
| - run: >- | ||
| echo "dis ql(*) CURDEPTH" | runmqsc | grep -E 'QUEUE\(|CURDEPTH\(' | sed 's/TYPE(QLOCAL)//' | sed 's/ *//g' | awk 'NR%2{printf "%s ",$0;next;}1' | egrep '^QUEUE\(SYSTEM' | ||
| split: horizontal | ||
| set_header: [queue,curdepth] | ||
| regex_match: true | ||
| split_by: \w+\((.*?)\)\s+\w+\((.*?)\) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # SELECT gpuName, gpuDriverVersion, gpu3D_percent, gpuCopy_percent, gpuEncode_percent, gpuDecode_percent, gpuDedicatedMemoryUsage_GB, gpuSharedMemoryUsage_GB FROM GpuSample LIMIT MAX SINCE 5 MINUTES AGO | ||
| # Example for NRQL Alert: SELECT count(*) FROM GpuSample WHERE error IS NOT NULL | ||
| integrations: | ||
| - name: nri-flex | ||
| interval: 30s # This is the Infrastructure agent polling interval for this Flex configuration, set to one poll every 30 seconds | ||
| config: | ||
| name: GpuSample | ||
| apis: | ||
| - event_type: GpuSample | ||
| shell: powershell | ||
| commands: | ||
| - run: (Get-WmiObject Win32_VideoController).Name+';'+(Get-WmiObject Win32_VideoController).DriverVersion+';'+([math]::Round((((Get-Counter "\GPU Engine(*engtype_3D)\Utilization Percentage").CounterSamples | where CookedValue).CookedValue | measure -sum).sum,2))+';'+([math]::Round((((Get-Counter "\GPU Engine(*engtype_Copy)\Utilization Percentage").CounterSamples | where CookedValue).CookedValue | measure -sum).sum,2))+';'+([math]::Round((((Get-Counter "\GPU Engine(*engtype_VideoEncode)\Utilization Percentage").CounterSamples | where CookedValue).CookedValue | measure -sum).sum,2))+';'+([math]::Round((((Get-Counter "\GPU Engine(*engtype_VideoDecode)\Utilization Percentage").CounterSamples | where CookedValue).CookedValue | measure -sum).sum,2))+';'+([math]::Round((((Get-Counter "\GPU Process Memory(*)\Dedicated Usage").CounterSamples | where CookedValue).CookedValue | measure -sum).sum/1GB,2))+';'+([math]::Round((((Get-Counter "\GPU Process Memory(*)\Shared Usage").CounterSamples | where CookedValue).CookedValue | measure -sum).sum/1GB,2)) | ||
| split: horizontal | ||
| set_header: [gpuName, gpuDriverVersion, gpu3D_percent, gpuCopy_percent, gpuEncode_percent, gpuDecode_percent, gpuDedicatedMemoryUsage_GB, gpuSharedMemoryUsage_GB] | ||
| split_by: ";" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this telemetry something that could be also scraped using the ibmmq integration ? If so , there is any difference on the data collected ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was created to address IBMMQ version 8 and 7. I've tested the IBMMQ integration and it does not work for IBM MQ version 8, which is why we opted for a flex script instead. As well, the IBMMQ integration states support for version 9+. This flex script works on version 7, 8 and 9 when I tested it.