No description
Find a file
2024-04-19 12:01:14 +02:00
.woodpecker add test CI 2024-04-19 10:57:38 +02:00
cache add caching functionality 2024-04-19 11:40:05 +02:00
collector add caching functionality 2024-04-19 11:40:05 +02:00
helpers add caching functionality 2024-04-19 11:40:05 +02:00
models add caching functionality 2024-04-19 11:40:05 +02:00
.gitignore add binary folders to gitignore 2024-04-17 20:07:24 +02:00
.gitlab-ci.yml Configure SAST in .gitlab-ci.yml, creating this file if it does not already exist 2024-04-13 08:13:29 +00:00
CHANGELOG.md update CHANGELOG and CONTRIBUTING 2024-04-19 12:01:14 +02:00
CONTRIBUTING.md update CHANGELOG and CONTRIBUTING 2024-04-19 12:01:14 +02:00
Dockerfile Resolve "Nil reference pointer exception when getting queried by Prometheus" 2024-04-17 17:38:21 +00:00
go.mod add mvp 2024-04-17 12:47:40 +02:00
go.sum add mvp 2024-04-17 12:47:40 +02:00
LICENSE add license 2024-04-14 18:25:00 +02:00
main.go add caching functionality 2024-04-19 11:40:05 +02:00
MAINTAINERS.md add contributing guide and maintainers file 2024-04-14 17:43:41 +02:00
Makefile add makefile 2024-04-19 09:02:38 +02:00
README.md describe project 2024-04-17 15:20:58 +02:00
VERSION updaet changelog and bump version 2024-04-17 19:59:34 +02:00

ntppool.org Exporter

This exporter is @adoralaura s try to display server scores from servers in ntppool.org in a format which Prometheus can ingest.

Usage

Installation

Binaries can be downloaded soon from the GitLab releases page and need no special installation

Running

Start ntppool-exporter as a daemon or from CLI:

./ntppool-exporter

Visit http://localhost:43609/metrics?target=192.0.0.8 where 192.0.0.8 is the IP of the NTP server you want to get the score from.

Prometheus Configuration

The URL parameter target can be controlled through relabelling.

Example config:

scrape_configs:
  - job_name: 'ntppool'
    static_configs:
      - targets:
        - 192.168.1.2
        - 2003:db8::1
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: 127.0.0.1:43609  # The ntppool exporter's real hostname:port.

Similarly to blackbox_exporter, ntppool-exporter is meant to run on a few central machines and can be thought of like a "Prometheus proxy".

TLS and basic authentication

The ntppool Exporter does not support TLS and basic authentication yet. This may be added in a future release.

Scaling

A single instance of ntppool-exporter should be able to query for a lot of servers. However, rate limits for upstream ntppool.org API endpoints may interfere. Furthermore, as this project is in its early stage, issues may currently prevent it from scaling.

Once you have it running

It can be opaque to get started with all this. To make it easier for others, please consider contributing back your configurations to us.

Contributing

If you have any ideas, enhancements, bug reports or general questions, please don't hesitate to create a new issue.

If you want to contribute to this project, please read the Contribution Guidelines