From ee873b2d8f4a81052493c722e7f5fb30b21d08ec Mon Sep 17 00:00:00 2001 From: Will Bollock Date: Mon, 5 Feb 2024 10:38:28 -0500 Subject: [PATCH] fix: linode-obs org name not linode_obs --- .all-contributorsrc | 2 +- .goreleaser.yaml | 8 ++++---- README.md | 20 +++++++++---------- go.mod | 2 +- nagios_exporter.go | 2 +- .../prometheus-nagios-exporter.service | 2 +- tests/get_nagios_version_test.go | 2 +- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 0d42673..908386a 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -22,5 +22,5 @@ "repoType": "github", "repoHost": "https://github.com", "projectName": "nagios_exporter", - "projectOwner": "linode_obs" + "projectOwner": "linode-obs" } diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 985ffa8..727dab6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -38,8 +38,8 @@ changelog: dockers: # build latest and specific tag version images - image_templates: - - "ghcr.io/linode_obs/{{.ProjectName}}:{{ .Tag }}" - - "ghcr.io/linode_obs/{{.ProjectName}}:latest" + - "ghcr.io/linode-obs/{{.ProjectName}}:{{ .Tag }}" + - "ghcr.io/linode-obs/{{.ProjectName}}:latest" goos: linux goarch: amd64 use: docker @@ -49,7 +49,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/nagios_exporter" + - "--label=org.opencontainers.image.source=https://github.com/linode-obs/nagios_exporter" - "--label=org.opencontainers.image.description='A Prometheus Exporter for Nagios'" - "--label=org.opencontainers.image.licenses=MIT" nfpms: @@ -69,7 +69,7 @@ nfpms: description: | A Prometheus Nagios Exporter that provides information on the current state of a Nagios application and configuration. - homepage: "https://github.com/linode_obs/nagios_exporter" + homepage: "https://github.com/linode-obs/nagios_exporter" license: "MIT" # TODO - changelog? #changelog: "changelog.yaml" diff --git a/README.md b/README.md index ec8a1fa..6a007ec 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ # nagios_exporter -![Github Release Downloads](https://img.shields.io/github/downloads/linode_obs/nagios_exporter/total.svg) -[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/linode_obs/nagios_exporter/blob/master/LICENSE) -[![golangci-lint](https://github.com/linode_obs/nagios_exporter/actions/workflows/golangci-lint.yaml/badge.svg)](https://github.com/linode_obs/nagios_exporter/actions/workflows/golangci-lint.yaml) -![Go Report Card](https://goreportcard.com/badge/github.com/linode_obs/nagios_exporter) -[![contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat")](https://github.com/linode_obs/nagios_exporter/issues) +![Github Release Downloads](https://img.shields.io/github/downloads/linode-obs/nagios_exporter/total.svg) +[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/linode-obs/nagios_exporter/blob/master/LICENSE) +[![golangci-lint](https://github.com/linode-obs/nagios_exporter/actions/workflows/golangci-lint.yaml/badge.svg)](https://github.com/linode-obs/nagios_exporter/actions/workflows/golangci-lint.yaml) +![Go Report Card](https://goreportcard.com/badge/github.com/linode-obs/nagios_exporter) +[![contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat")](https://github.com/linode-obs/nagios_exporter/issues) A Prometheus exporter currently supporting: @@ -57,7 +57,7 @@ This exporter does not output Nagios check results as Prometheus metrics; it is Substitute `{{ version }}` for your desired release. ```bash -wget https://github.com/linode_obs/nagios_exporter/releases/download/v{{ version }}/prometheus-nagios-exporter_{{ version }}_linux_amd64.{deb,rpm} +wget https://github.com/linode-obs/nagios_exporter/releases/download/v{{ version }}/prometheus-nagios-exporter_{{ version }}_linux_amd64.{deb,rpm} {dpkg,rpm} -i prometheus-nagios-exporter_{{ version }}_linux_amd64.{deb,rpm} ``` @@ -68,14 +68,14 @@ Populate `config.toml` with your `APIKey = NagiosXIAPIKey` ```console sudo docker run \ -v ./config.toml:/etc/prometheus-nagios-exporter/config.toml \ -ghcr.io/linode_obs/nagios_exporter \ +ghcr.io/linode-obs/nagios_exporter \ --nagios.scrape-uri http://localhost ``` ### Binary ```bash -wget https://github.com/linode_obs/nagios_exporter/releases/download/v{{ version }}/nagios_exporter_{{ version }}_Linux_x86_64.tar.gz +wget https://github.com/linode-obs/nagios_exporter/releases/download/v{{ version }}/nagios_exporter_{{ version }}_Linux_x86_64.tar.gz tar xvf nagios_exporter_{{ version }}_Linux_x86_64.tar.gz ./nagios_exporter/prometheus-nagios-exporter ``` @@ -83,7 +83,7 @@ tar xvf nagios_exporter_{{ version }}_Linux_x86_64.tar.gz ### Source ```bash -wget https://github.com/linode_obs/nagios_exporter/archive/refs/tags/v{{ version }}.tar.gz +wget https://github.com/linode-obs/nagios_exporter/archive/refs/tags/v{{ version }}.tar.gz tar xvf nagios_exporter-{{ version }}.tar.gz cd ./nagios_exporter-{{ version }} go build nagios_exporter.go @@ -271,7 +271,7 @@ goreleaser release - +
TJ Hoplock
TJ Hoplock

💻 🧑‍🏫
TJ Hoplock
TJ Hoplock

💻 🧑‍🏫
diff --git a/go.mod b/go.mod index 2425647..6db6036 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/linode_obs/nagios_exporter +module github.com/linode-obs/nagios_exporter go 1.19 diff --git a/nagios_exporter.go b/nagios_exporter.go index bf44096..148c1c2 100644 --- a/nagios_exporter.go +++ b/nagios_exporter.go @@ -14,7 +14,7 @@ import ( "strings" "time" - "github.com/linode_obs/nagios_exporter/get_nagios_version" + "github.com/linode-obs/nagios_exporter/get_nagios_version" "github.com/BurntSushi/toml" "github.com/hashicorp/go-version" diff --git a/nfpm/systemd/prometheus-nagios-exporter.service b/nfpm/systemd/prometheus-nagios-exporter.service index 59afb08..4b94005 100644 --- a/nfpm/systemd/prometheus-nagios-exporter.service +++ b/nfpm/systemd/prometheus-nagios-exporter.service @@ -1,6 +1,6 @@ [Unit] Description=Nagios Exporter -Documentation=https://github.com/linode_obs/nagios_exporter +Documentation=https://github.com/linode-obs/nagios_exporter Wants=network-online.target nagios.service After=network-online.target nagios.service diff --git a/tests/get_nagios_version_test.go b/tests/get_nagios_version_test.go index bdbe28b..96a9f7a 100644 --- a/tests/get_nagios_version_test.go +++ b/tests/get_nagios_version_test.go @@ -6,7 +6,7 @@ import ( "testing" log "github.com/sirupsen/logrus" - "github.com/linode_obs/nagios_exporter/get_nagios_version" + "github.com/linode-obs/nagios_exporter/get_nagios_version" ) func TestGetStringFromWebpage(t *testing.T) {