Skip to content

Commit f42a069

Browse files
Add ntp resource (#217)
Co-authored-by: David de Torres <[email protected]>
1 parent 55aece8 commit f42a069

File tree

12 files changed

+672
-0
lines changed

12 files changed

+672
-0
lines changed

apps/images/ntp.png

29.1 KB
Loading

apps/ntp.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
apiVersion: v1
3+
kind: App
4+
name: "NTP"
5+
keywords:
6+
- Network
7+
- Available
8+
availableVersions:
9+
- '4'
10+
shortDescription: "The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems"
11+
description: |
12+
The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks. In operation since before 1985, NTP is one of the oldest Internet protocols in current use. NTP was designed by David L. Mills of the University of Delaware.
13+
icon: https://raw.githubusercontent.com/sysdiglabs/promcat-resources/master/apps/images/ntp.png
14+
website: http://www.ntp.org/
15+
available: yes

resources/ntp/ALERTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Alerts
2+
## Drift is too high
3+
The time drift is more than 10s

resources/ntp/INSTALL.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Installing the exporter
2+
To install the [NTP exporter](https://github.com/sapcc/ntp_exporter) here there is an example of a deployment:
3+

resources/ntp/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# NTP
2+
[NTP](http://www.ntp.org/) The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks. In operation since before 1985, NTP is one of the oldest Internet protocols in current use. NTP was designed by David L. Mills of the University of Delaware.
3+
4+
To extract metrics you can use the [NTP Exporter](https://github.com/sapcc/ntp_exporter).
5+
6+
# Metrics
7+
The metrics available are the ones related to the modules:
8+
* Drift
9+
10+
# Number of time series generated
11+
* Each instance generates ~4 metrics
12+
13+
# Attributions
14+
The configuration files, dashboards, and alerts maintained by [Sysdig team](https://sysdig.com/).
15+
16+
Using [NTP Exporter](https://github.com/sapcc/ntp_exporter) with Apache 2.0 license.

resources/ntp/alerts.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: v1
2+
kind: Alert
3+
app: NTP
4+
version: 1.0.0
5+
appVersion:
6+
- '4'
7+
descriptionFile: ALERTS.md
8+
configurations:
9+
- kind: Prometheus
10+
data: |-
11+
groups:
12+
- name: NTP
13+
rules:
14+
- alert: '[NTP] Drift is too high'
15+
expr: "ntp_drift_seconds > 10"
16+
for: 5m
17+
labels:
18+
severity: critical
19+
annotations:
20+
description: Drift is too high.

resources/ntp/dashboards.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Dashboard
3+
app: 'NTP'
4+
version: 1.0.0
5+
appVersion:
6+
- '4'
7+
configurations:
8+
- name: 'Instance Health'
9+
kind: Sysdig
10+
image: 'ntp/images/ntp.png'
11+
description: |
12+
This dashboard offers information on:
13+
* Drift per node
14+
file: include/ntp.json

resources/ntp/description.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v1
2+
kind: Description
3+
app: NTP
4+
version: 1.0.0
5+
appVersion:
6+
- '4'
7+
descriptionFile: README.md

resources/ntp/images/ntp.png

450 KB
Loading
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: apps/v1
2+
kind: DaemonSet
3+
metadata:
4+
name: ntp-exporter
5+
labels:
6+
k8s-app: ntp-exporter
7+
spec:
8+
selector:
9+
matchLabels:
10+
k8s-app: ntp-exporter
11+
template:
12+
metadata:
13+
labels:
14+
k8s-app: ntp-exporter
15+
spec:
16+
hostNetwork: true
17+
dnsPolicy: ClusterFirstWithHostNet
18+
containers:
19+
- name: ntp-exporter
20+
image: sapcc/ntp-exporter:v2.0.2
21+
args: [
22+
"-ntp.server", "chrony-alpine-service"
23+
]
24+
resources:
25+
limits:
26+
memory: 200Mi
27+
requests:
28+
cpu: 100m
29+
memory: 100Mi

0 commit comments

Comments
 (0)