diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b5f2b40..6bde18b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -40,9 +40,9 @@ dockers: # build latest and specific tag version images # https://goreleaser.com/cookbooks/multi-platform-docker-images/#other-things-to-pay-attention-to - image_templates: - - "ghcr.io/linode_obs/{{.ProjectName}}:{{ .Tag }}" - - "ghcr.io/linode_obs/{{.ProjectName}}:{{ .Tag }}-amd64" - - "ghcr.io/linode_obs/{{.ProjectName}}:latest" # keep latest as linux/amd64 + - "ghcr.io/linode-obs/{{.ProjectName}}:{{ .Tag }}" + - "ghcr.io/linode-obs/{{.ProjectName}}:{{ .Tag }}-amd64" + - "ghcr.io/linode-obs/{{.ProjectName}}:latest" # keep latest as linux/amd64 use: buildx goos: linux goarch: amd64 @@ -52,13 +52,13 @@ dockers: - "--label=org.opencontainers.image.title={{.ProjectName}}" - "--label=org.opencontainers.image.revision={{.FullCommit}}" - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.source=https://github.com/linode_obs/ping_exporter" + - "--label=org.opencontainers.image.source=https://github.com/linode-obs/ping_exporter" - "--label=org.opencontainers.image.description='Yet another prometheus ping exporter'" - "--label=org.opencontainers.image.licenses=MIT" - "--platform=linux/amd64" dockerfile: "Dockerfile_goreleaser" - image_templates: - - "ghcr.io/linode_obs/{{.ProjectName}}:{{ .Tag }}-linux-arm64" + - "ghcr.io/linode-obs/{{.ProjectName}}:{{ .Tag }}-linux-arm64" use: buildx goos: linux goarch: arm64 @@ -68,7 +68,7 @@ dockers: - "--label=org.opencontainers.image.title={{.ProjectName}}" - "--label=org.opencontainers.image.revision={{.FullCommit}}" - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.source=https://github.com/linode_obs/ping_exporter" + - "--label=org.opencontainers.image.source=https://github.com/linode-obs/ping_exporter" - "--label=org.opencontainers.image.description='Yet another prometheus ping exporter'" - "--label=org.opencontainers.image.licenses=MIT" - "--platform=linux/arm64" @@ -90,7 +90,7 @@ nfpms: description: | Yet another prometheus ping exporter with support for the multi-target export pattern. - homepage: "https://github.com/linode_obs/ping_exporter" + homepage: "https://github.com/linode-obs/ping_exporter" license: "MIT" contents: # provided by goreleaser diff --git a/README.md b/README.md index 36611ac..b261efe 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Prometheus Ping Exporter -![Github Release Downloads](https://img.shields.io/github/downloads/linode_obs/ping_exporter/total.svg) -[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/linode_obs/ping_exporter/blob/master/LICENSE) -[![golangci-lint](https://github.com/linode_obs/ping_exporter/actions/workflows/golangci-lint.yaml/badge.svg)](https://github.com/linode_obs/ping_exporter/actions/workflows/golangci-lint.yaml) -![Go Report Card](https://goreportcard.com/badge/github.com/linode_obs/ping_exporter) -[![contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat")](https://github.com/linode_obs/ping_exporter/issues) +![Github Release Downloads](https://img.shields.io/github/downloads/linode-obs/ping_exporter/total.svg) +[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/linode-obs/ping_exporter/blob/master/LICENSE) +[![golangci-lint](https://github.com/linode-obs/ping_exporter/actions/workflows/golangci-lint.yaml/badge.svg)](https://github.com/linode-obs/ping_exporter/actions/workflows/golangci-lint.yaml) +![Go Report Card](https://goreportcard.com/badge/github.com/linode-obs/ping_exporter) +[![contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat")](https://github.com/linode-obs/ping_exporter/issues) Yet another ping exporter. @@ -111,7 +111,7 @@ scrape_configs: Substitute `{{ version }}` for your desired release. ```bash -wget https://github.com/linode_obs/ping_exporter/releases/download/v{{ version }}/prometheus-ping-exporter_{{ version }}_linux_amd64.{deb,rpm} +wget https://github.com/linode-obs/ping_exporter/releases/download/v{{ version }}/prometheus-ping-exporter_{{ version }}_linux_amd64.{deb,rpm} {dpkg,rpm} -i prometheus-ping-exporter_{{ version }}_linux_amd64.{deb,rpm} ``` @@ -120,13 +120,13 @@ wget https://github.com/linode_obs/ping_exporter/releases/download/v{{ version } ```console sudo docker run \ --privileged \ -ghcr.io/linode_obs/ping_exporter +ghcr.io/linode-obs/ping_exporter ``` ### Binary ```bash -wget https://github.com/linode_obs/ping_exporter/releases/download/v{{ version }}/ping_exporter_{{ version }}_Linux_x86_64.tar.gz +wget https://github.com/linode-obs/ping_exporter/releases/download/v{{ version }}/ping_exporter_{{ version }}_Linux_x86_64.tar.gz tar xvf ping_exporter_{{ version }}_Linux_x86_64.tar.gz ./ping_exporter/prometheus-ping-exporter ``` @@ -134,7 +134,7 @@ tar xvf ping_exporter_{{ version }}_Linux_x86_64.tar.gz ### Source ```bash -wget https://github.com/linode_obs/ping_exporter/archive/refs/tags/v{{ version }}.tar.gz +wget https://github.com/linode-obs/ping_exporter/archive/refs/tags/v{{ version }}.tar.gz tar xvf ping_exporter-{{ version }}.tar.gz cd ./ping_exporter-{{ version }} go build ping_exporter.go diff --git a/cmd/main.go b/cmd/main.go index 2df774b..7e9b466 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -6,7 +6,7 @@ import ( "net/http" "os" - "github.com/linode_obs/ping_exporter/internal/server" + "github.com/linode-obs/ping_exporter/internal/server" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" log "github.com/sirupsen/logrus" diff --git a/go.mod b/go.mod index 93b6004..9d22586 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/linode_obs/ping_exporter +module github.com/linode-obs/ping_exporter go 1.21.0 diff --git a/internal/collector/icmp_collector.go b/internal/collector/icmp_collector.go index c676dc3..b60a30d 100644 --- a/internal/collector/icmp_collector.go +++ b/internal/collector/icmp_collector.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/linode_obs/ping_exporter/internal/metrics" + "github.com/linode-obs/ping_exporter/internal/metrics" probing "github.com/prometheus-community/pro-bing" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" diff --git a/internal/server/server.go b/internal/server/server.go index 81928a9..417361c 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -5,7 +5,7 @@ import ( "net/http" "net/http/pprof" - "github.com/linode_obs/ping_exporter/internal/collector" + "github.com/linode-obs/ping_exporter/internal/collector" "github.com/prometheus/client_golang/prometheus/promhttp" log "github.com/sirupsen/logrus" ) diff --git a/nfpm/systemd/prometheus-ping-exporter.service b/nfpm/systemd/prometheus-ping-exporter.service index d11fb71..40dbfc3 100644 --- a/nfpm/systemd/prometheus-ping-exporter.service +++ b/nfpm/systemd/prometheus-ping-exporter.service @@ -1,6 +1,6 @@ [Unit] Description=Prometheus Ping Exporter -Documentation=https://github.com/linode_obs/ping_exporter +Documentation=https://github.com/linode-obs/ping_exporter Wants=network-online.target After=network-online.target diff --git a/test/integration_test.go b/test/integration_test.go index 5ae73b3..2d01f71 100644 --- a/test/integration_test.go +++ b/test/integration_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/linode_obs/ping_exporter/internal/server" + "github.com/linode-obs/ping_exporter/internal/server" ) const expectedStatusCode = 200