Skip to content
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
106 changes: 0 additions & 106 deletions .circleci/config.yml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI

on:
push:
pull_request:

env:
GO_VERSION: '1.24.6'
GORELEASER_VERSION: 'v2.9.0'

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build / Coverage / Snapshot
runs-on: ubuntu-22.04
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true

- name: Download modules
run: go mod download

- name: GoReleaser snapshot (build-only)
uses: goreleaser/goreleaser-action@v6
with:
version: ${{ env.GORELEASER_VERSION }}
args: release --snapshot --clean

- name: Collect snapshot artifacts
run: |
mkdir -p /tmp/artifacts
shopt -s nullglob
mv dist/manifest-node-exporter_*.tar.gz dist/manifest-node-exporter_*.txt /tmp/artifacts || true

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: snapshot-artifacts
path: /tmp/artifacts
if-no-files-found: ignore

security:
name: Security (govulncheck)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: govulncheck
run: make govulncheck
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release

on:
push:
tags:
- 'v*.*.*' # v0.1.1, v1.2.3-alpha.8
- '*.*.*' # 0.1.1, 1.2.3-rc.1

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

env:
GO_VERSION: '1.24.6'
GORELEASER_VERSION: 'v2.9.0'

jobs:
release:
name: GoReleaser
runs-on: ubuntu-22.04
permissions:
contents: write # create GitHub Releases

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # GoReleaser needs tags/history

- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true

- name: GoReleaser check
uses: goreleaser/goreleaser-action@v6
with:
version: ${{ env.GORELEASER_VERSION }}
args: check

- name: Release
uses: goreleaser/goreleaser-action@v6
with:
version: ${{ env.GORELEASER_VERSION }}
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ builds:
- manifest_node_exporter
ldflags:
- -s -w
- -X github.com/liftedinit/manifest-node-exporter/cmd/manifest-node-exporter.Version={{ .Version }}
- -X github.com/manifest-network/manifest-node-exporter/cmd/manifest-node-exporter.Version={{ .Version }}

- id: manifest-excluded-supply-exporter
binary: manifest-excluded-supply-exporter
Expand All @@ -52,7 +52,7 @@ builds:
- manifest_excluded_supply_exporter
ldflags:
- -s -w
- -X github.com/liftedinit/manifest-node-exporter/cmd/manifest-excluded-supply-exporter.Version={{ .Version }}
- -X github.com/manifest-network/manifest-node-exporter/cmd/manifest-excluded-supply-exporter.Version={{ .Version }}

archives:
- formats: tar.gz
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
BUILD_FLAGS := -ldflags "\
-X github.com/liftedinit/manifest-node-exporter/cmd/manifest-node-exporter.Version=$(VERSION) \
-X github.com/liftedinit/manifest-node-exporter/cmd/manifest-excluded-supply-exporter.Version=$(VERSION)" \
-X github.com/manifest-network/manifest-node-exporter/cmd/manifest-node-exporter.Version=$(VERSION) \
-X github.com/manifest-network/manifest-node-exporter/cmd/manifest-excluded-supply-exporter.Version=$(VERSION)" \
-tags manifest

#### Build ####
Expand All @@ -23,7 +23,7 @@ test: ## Run tests
COV_ROOT="/tmp/manifest-node-exporter-coverage"
COV_UNIT="${COV_ROOT}/unit"
COV_E2E="${COV_ROOT}/e2e"
COV_PKG="github.com/liftedinit/manifest-node-exporter/..."
COV_PKG="github.com/manifest-network/manifest-node-exporter/..."

coverage: ## Run tests with coverage
@echo "--> Creating GOCOVERDIR"
Expand Down Expand Up @@ -69,7 +69,7 @@ goimports_version=v0.32.0
format: ## Run formatter (goimports)
@echo "--> Running goimports"
@go install golang.org/x/tools/cmd/goimports@$(goimports_version)
@find . -name '*.go' -exec goimports -w -local github.com/liftedinit/manifest-node-exporter {} \;
@find . -name '*.go' -exec goimports -w -local github.com/manifest-network/manifest-node-exporter {} \;

.PHONY: format

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Two exporters are available:

## Installation

Download the latest release from the [releases page](https://github.com/liftedinit/manifest-node-exporter/releases)
Download the latest release from the [releases page](https://github.com/manifest-network/manifest-node-exporter/releases)

## Quick Start - Manifest Node Exporter

Expand Down
2 changes: 1 addition & 1 deletion cmd-bin/manifest-excluded-supply-exporter/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import manifestexcludedsupplyexporter "github.com/liftedinit/manifest-node-exporter/cmd/manifest-excluded-supply-exporter"
import manifestexcludedsupplyexporter "github.com/manifest-network/manifest-node-exporter/cmd/manifest-excluded-supply-exporter"

func main() {
manifestexcludedsupplyexporter.Execute()
Expand Down
2 changes: 1 addition & 1 deletion cmd-bin/manifest-node-exporter/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import manifestnodeexporter "github.com/liftedinit/manifest-node-exporter/cmd/manifest-node-exporter"
import manifestnodeexporter "github.com/manifest-network/manifest-node-exporter/cmd/manifest-node-exporter"

func main() {
manifestnodeexporter.Execute()
Expand Down
2 changes: 1 addition & 1 deletion cmd/manifest-excluded-supply-exporter/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package manifest_excluded_supply_exporter
import (
"github.com/spf13/cobra"

"github.com/liftedinit/manifest-node-exporter/cmd"
"github.com/manifest-network/manifest-node-exporter/cmd"
)

var Version = "dev"
Expand Down
6 changes: 3 additions & 3 deletions cmd/manifest-excluded-supply-exporter/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/liftedinit/manifest-node-exporter/pkg"
"github.com/liftedinit/manifest-node-exporter/pkg/collectors/autodetect"
_ "github.com/liftedinit/manifest-node-exporter/pkg/collectors/autodetect/manifestd" // RegisterMonitor the manifestd monitor (side-effect)
"github.com/manifest-network/manifest-node-exporter/pkg"
"github.com/manifest-network/manifest-node-exporter/pkg/collectors/autodetect"
_ "github.com/manifest-network/manifest-node-exporter/pkg/collectors/autodetect/manifestd" // RegisterMonitor the manifestd monitor (side-effect)
)

// serveCmd represents the serve command
Expand Down
2 changes: 1 addition & 1 deletion cmd/manifest-node-exporter/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package manifest_node_exporter
import (
"github.com/spf13/cobra"

"github.com/liftedinit/manifest-node-exporter/cmd"
"github.com/manifest-network/manifest-node-exporter/cmd"
)

var Version = "dev"
Expand Down
10 changes: 5 additions & 5 deletions cmd/manifest-node-exporter/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/liftedinit/manifest-node-exporter/pkg"
"github.com/liftedinit/manifest-node-exporter/pkg/collectors"
"github.com/liftedinit/manifest-node-exporter/pkg/collectors/autodetect"
_ "github.com/liftedinit/manifest-node-exporter/pkg/collectors/autodetect/ghostcloudd" // RegisterMonitor the ghostcloudd monitor (side-effect)
_ "github.com/liftedinit/manifest-node-exporter/pkg/collectors/autodetect/manifestd" // RegisterMonitor the manifestd monitor (side-effect)
"github.com/manifest-network/manifest-node-exporter/pkg"
"github.com/manifest-network/manifest-node-exporter/pkg/collectors"
"github.com/manifest-network/manifest-node-exporter/pkg/collectors/autodetect"
_ "github.com/manifest-network/manifest-node-exporter/pkg/collectors/autodetect/ghostcloudd" // RegisterMonitor the ghostcloudd monitor (side-effect)
_ "github.com/manifest-network/manifest-node-exporter/pkg/collectors/autodetect/manifestd" // RegisterMonitor the manifestd monitor (side-effect)
)

// serveCmd represents the serve command
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/liftedinit/manifest-node-exporter
module github.com/manifest-network/manifest-node-exporter

go 1.24.4
go 1.24.6

require (
cosmossdk.io/api v0.9.2
Expand Down
4 changes: 2 additions & 2 deletions pkg/collectors/autodetect/ghostcloudd/ghostcloudd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/prometheus/client_golang/prometheus"

"github.com/liftedinit/manifest-node-exporter/pkg/client"
"github.com/liftedinit/manifest-node-exporter/pkg/collectors/autodetect"
"github.com/manifest-network/manifest-node-exporter/pkg/client"
"github.com/manifest-network/manifest-node-exporter/pkg/collectors/autodetect"
)

const processName = "ghostcloudd"
Expand Down
4 changes: 2 additions & 2 deletions pkg/collectors/autodetect/ghostcloudd/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/prometheus/client_golang/prometheus"

"github.com/liftedinit/manifest-node-exporter/pkg/client"
"github.com/liftedinit/manifest-node-exporter/pkg/utils"
"github.com/manifest-network/manifest-node-exporter/pkg/client"
"github.com/manifest-network/manifest-node-exporter/pkg/utils"
)

// GhostclouddCollectorFactory is a function type that creates a prometheus.Collector.
Expand Down
4 changes: 2 additions & 2 deletions pkg/collectors/autodetect/ghostcloudd/website_count.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

"github.com/liftedinit/manifest-node-exporter/pkg/client"
"github.com/liftedinit/manifest-node-exporter/pkg/collectors"
"github.com/manifest-network/manifest-node-exporter/pkg/client"
"github.com/manifest-network/manifest-node-exporter/pkg/collectors"
)

// WebsiteCountCollector collects the total number of deployed website from Ghostcloud.
Expand Down
4 changes: 2 additions & 2 deletions pkg/collectors/autodetect/manifestd/denom_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

"github.com/liftedinit/manifest-node-exporter/pkg/client"
"github.com/liftedinit/manifest-node-exporter/pkg/collectors"
"github.com/manifest-network/manifest-node-exporter/pkg/client"
"github.com/manifest-network/manifest-node-exporter/pkg/collectors"
)

// DenomInfoCollector collects denom metadata and total supply metrics from the Cosmos SDK bank module via gRPC.
Expand Down
Loading