Socket
Socket
Sign inDemoInstall

github.com/salsadigitalauorg/lagoon-solr-metrics

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/salsadigitalauorg/lagoon-solr-metrics


Version published
Created
Source

Lagoon Solr Metrics

GitHub go.mod Go version Go Report Card Coverage Status Release

Installation

curl -L -o lagoon-solr-metrics https://github.com/salsadigitalauorg/lagoon-solr-metrics/releases/latest/download/lagoon-solr-metrics-$(uname -s)-$(uname -m)
chmod +x lagoon-solr-metrics
mv lagoon-solr-metrics /usr/local/bin/lagoon-solr-metrics

Docker

Run directly from a docker image:

docker run --rm ghcr.io/salsadigitalauorg/lagoon-solr-metrics:latest lagoon-solr-metrics

Or add to your docker image:

COPY --from=ghcr.io/salsadigitalauorg/lagoon-solr-metrics:latest /usr/local/bin/lagoon-solr-metrics /usr/local/bin/lagoon-solr-metrics

Usage

The application needs a few environmental variables set so that it can know where to collect the metrics from and where to push it.

SOLR_HOST=solr
SOLR_PORT=8983
SOLR_CORE=drupal
LAGOON_INSIGHTS_ENDPOINT="http://lagoon-remote-insights-remote.lagoon.svc"

The above are the defaults that the application will use, but you can override them as needed in your runtime environment.

Local development

Build

git clone git@github.com:salsadigitalauorg/lagoon-solr-metrics.git && cd lagoon-solr-metrics
go generate ./...
go build -ldflags="-s -w" -o build/lagoon-solr-metrics .
go run . -h

Run tests

go generate ./...
go test -v ./... -coverprofile=build/coverage.out

View coverage results:

go tool cover -html=build/coverage.out

FAQs

Package last updated on 09 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc