https://github.com/netmarkjp/nri-flex-ntp-offset
NewRelic Infrastructure Agent, custom integration ntp-offset
https://github.com/netmarkjp/nri-flex-ntp-offset
Last synced: 11 months ago
JSON representation
NewRelic Infrastructure Agent, custom integration ntp-offset
- Host: GitHub
- URL: https://github.com/netmarkjp/nri-flex-ntp-offset
- Owner: netmarkjp
- License: apache-2.0
- Created: 2023-08-23T01:40:49.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-23T04:39:12.000Z (almost 3 years ago)
- Last Synced: 2025-06-22T16:06:16.620Z (12 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# New Relic Infrastructure Integration Setting
```yaml
# /etc/newrelic-infra/integrations.d/ntp-offset.yml
integrations:
- name: nri-flex
config:
name: ntpOffset
apis:
- name: ntpOffset
commands:
- run: /opt/nri-flex-ntp-offset
```
# Graph/Dashboard NRQL Example
```sql
SELECT latest(`clock.offset.ms`) FROM ntpOffsetSample FACET fullHostname TIMESERIES
```
# Alert Example
```sql
SELECT abs(latest(`clock.offset.ms`)) FROM ntpOffsetSample
```
# Development
```sh
[[ -f "$(go env GOPATH)/bin/task" ]] || go install github.com/go-task/task/v3/cmd/task@latest
$(go env GOPATH)/bin/task lint
```