Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: linode-obs org name #5

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/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
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/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
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/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"
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/linode_obs/ping_exporter"
homepage: "https://github.com/linode-obs/ping_exporter"
license: "MIT"
contents:
# provided by goreleaser
Expand Down
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/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.

Expand Down Expand Up @@ -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}
```

Expand All @@ -120,21 +120,21 @@ 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
```

### 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
Expand Down
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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/linode_obs/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,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"
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,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"
)
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/linode_obs/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/linode_obs/ping_exporter/internal/server"
"github.com/linode-obs/ping_exporter/internal/server"
)

const expectedStatusCode = 200
Expand Down
Loading