Skip to content

Commit

Permalink
Merge pull request #49 from wbollock/fix/org_name
Browse files Browse the repository at this point in the history
fix: linode-obs org name
  • Loading branch information
wbollock committed Feb 5, 2024
2 parents eda6683 + ee873b2 commit 3c1182d
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"repoType": "github",
"repoHost": "https://github.com",
"projectName": "nagios_exporter",
"projectOwner": "linode_obs"
"projectOwner": "linode-obs"
}
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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"
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

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

Expand All @@ -68,22 +68,22 @@ 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
```

### 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
Expand Down Expand Up @@ -271,7 +271,7 @@ goreleaser release
<table>
<tbody>
<tr>
<td align="center"><a href="https://github.com/tjhop"><img src="https://avatars.githubusercontent.com/u/33664289?v=4?s=100" width="100px;" alt="TJ Hoplock"/><br /><sub><b>TJ Hoplock</b></sub></a><br /><a href="https://github.com/linode_obs/nagios_exporter/commits?author=tjhop" title="Code">💻</a> <a href="#mentoring-tjhop" title="Mentoring">🧑‍🏫</a></td>
<td align="center"><a href="https://github.com/tjhop"><img src="https://avatars.githubusercontent.com/u/33664289?v=4?s=100" width="100px;" alt="TJ Hoplock"/><br /><sub><b>TJ Hoplock</b></sub></a><br /><a href="https://github.com/linode-obs/nagios_exporter/commits?author=tjhop" title="Code">💻</a> <a href="#mentoring-tjhop" title="Mentoring">🧑‍🏫</a></td>
</tr>
</tbody>
</table>
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/nagios_exporter
module github.com/linode-obs/nagios_exporter

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion nagios_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion nfpm/systemd/prometheus-nagios-exporter.service
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/get_nagios_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3c1182d

Please sign in to comment.