Skip to content

Commit

Permalink
Merge pull request #4 from wbollock/chore/linode_obs_transfer
Browse files Browse the repository at this point in the history
chore: transfer repo to linode_obs org; re license
  • Loading branch information
wbollock authored Jan 29, 2024
2 parents b0c0689 + 6667211 commit 4d1e035
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 40 deletions.
14 changes: 7 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/wbollock/{{.ProjectName}}:{{ .Tag }}"
- "ghcr.io/wbollock/{{.ProjectName}}:{{ .Tag }}-amd64"
- "ghcr.io/wbollock/{{.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
Expand All @@ -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/wbollock/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/wbollock/{{.ProjectName}}:{{ .Tag }}-linux-arm64"
- "ghcr.io/linode_obs/{{.ProjectName}}:{{ .Tag }}-linux-arm64"
use: buildx
goos: linux
goarch: arm64
Expand All @@ -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/wbollock/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"
Expand All @@ -90,7 +90,7 @@ nfpms:
description: |
Yet another prometheus ping exporter with support
for the multi-target export pattern.
homepage: "https://github.com/wbollock/ping_exporter"
homepage: "https://github.com/linode_obs/ping_exporter"
license: "MIT"
contents:
# provided by goreleaser
Expand Down
28 changes: 10 additions & 18 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
MIT License
Copyright 2023 Akamai Technologies, Inc.

Copyright (c) 2023 Will Bollock
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
http://www.apache.org/licenses/LICENSE-2.0

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Prometheus Ping Exporter

![Github Release Downloads](https://img.shields.io/github/downloads/wbollock/ping_exporter/total.svg)
[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/wbollock/ping_exporter/blob/master/LICENSE)
[![golangci-lint](https://github.com/wbollock/ping_exporter/actions/workflows/golangci-lint.yaml/badge.svg)](https://github.com/wbollock/ping_exporter/actions/workflows/golangci-lint.yaml)
![Go Report Card](https://goreportcard.com/badge/github.com/wbollock/ping_exporter)
[![contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat")](https://github.com/wbollock/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.

Expand Down Expand Up @@ -111,7 +111,7 @@ scrape_configs:
Substitute `{{ version }}` for your desired release.

```bash
wget https://github.com/wbollock/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}
```

Expand All @@ -120,21 +120,21 @@ wget https://github.com/wbollock/ping_exporter/releases/download/v{{ version }}/
```console
sudo docker run \
--privileged \
ghcr.io/wbollock/ping_exporter
ghcr.io/linode_obs/ping_exporter
```

### Binary

```bash
wget https://github.com/wbollock/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
```

### Source

```bash
wget https://github.com/wbollock/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
Expand Down
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"net/http"
"os"

"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"
"github.com/wbollock/ping_exporter/internal/server"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/wbollock/ping_exporter
module github.com/linode_obs/ping_exporter

go 1.21.0

Expand Down
2 changes: 1 addition & 1 deletion internal/collector/icmp_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"strings"
"time"

"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"
log "github.com/sirupsen/logrus"
"github.com/wbollock/ping_exporter/internal/metrics"
)

type pingParams struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"net/http"
"net/http/pprof"

"github.com/linode_obs/ping_exporter/internal/collector"
"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"
"github.com/wbollock/ping_exporter/internal/collector"
)

func SetupServer() http.Handler {
Expand Down
2 changes: 1 addition & 1 deletion nfpm/systemd/prometheus-ping-exporter.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=Prometheus Ping Exporter
Documentation=https://github.com/wbollock/ping_exporter
Documentation=https://github.com/linode_obs/ping_exporter
Wants=network-online.target
After=network-online.target

Expand Down
2 changes: 1 addition & 1 deletion test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

"github.com/wbollock/ping_exporter/internal/server"
"github.com/linode_obs/ping_exporter/internal/server"
)

const expectedStatusCode = 200
Expand Down

0 comments on commit 4d1e035

Please sign in to comment.