Skip to content

Commit

Permalink
Added snapcraft packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
James Hebden committed May 29, 2020
1 parent 10a67b4 commit c151b08
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
ping_exporter
ping_exporter.exe
artifacts

# snap
*.snap
25 changes: 25 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ping-exporter
base: core18
version: git
summary: A Prometheus exporter for measuring latency to servers using ICMP ping
description: |
ping_exporter uses the go-ping library to measure network latency to configured
hosts, as an indicator of connection quality. This data is made available (exported)
to prometheus, where it is stored and can be charted and queried over time.
grade: stable
confinement: strict

apps:
daemon:
plugs:
- network
- network-bind
- network-control # for raw socket support
command: ping_exporter --config.path=$SNAP_COMMON/config.yaml
daemon: simple

parts:
speedtest-exporter:
plugin: go
source: .

0 comments on commit c151b08

Please sign in to comment.