iakovmarkov / prometheus-vuls-exporter Goto Github PK
View Code? Open in Web Editor NEWA small Go application that allows scraping of Vuls reports by Prometheus.
License: MIT License
A small Go application that allows scraping of Vuls reports by Prometheus.
License: MIT License
Currently, ServerName is determined for hosts with the domain part. For example for hostname example.com ServerName would be "com".
I created a pull request with a fix - #1
Hi All
I deployment vuls and grafana below:
Server A (Grafana/Prometheus server) <----> Server B (Vuls server)
I have question: With such architecture. How can I send metric to Prometheus server.
On Vuls server:
$ export REPORTS_DIR=/root/results
$ export VULS_DIR=/root/vulsctl
[root@VULS prometheus-vuls-exporter]# pwd
/root/prometheus-vuls-exporter
[root@VULS prometheus-vuls-exporter]# ./example/run_exporter.sh
Running exporter with Go
src/metrics/createMetrics.go:6:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
/usr/local/go/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
/root/go/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)
src/metrics/createMetrics.go:7:2: cannot find package "github.com/prometheus/client_golang/prometheus/promauto" in any of:
/usr/local/go/src/github.com/prometheus/client_golang/prometheus/promauto (from $GOROOT)
/root/go/src/github.com/prometheus/client_golang/prometheus/promauto (from $GOPATH)
src/main.go:12:2: cannot find package "github.com/prometheus/client_golang/prometheus/promhttp" in any of:
/usr/local/go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOROOT)
/root/go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOPATH)
src/main.go:13:2: cannot find package "github.com/spf13/pflag" in any of:
/usr/local/go/src/github.com/spf13/pflag (from $GOROOT)
/root/go/src/github.com/spf13/pflag (from $GOPATH)
src/main.go:14:2: cannot find package "github.com/spf13/viper" in any of:
/usr/local/go/src/github.com/spf13/viper (from $GOROOT)
/root/go/src/github.com/spf13/viper (from $GOPATH)
src/metrics/parseReport.go:9:2: cannot find package "github.com/tidwall/gjson" in any of:
/usr/local/go/src/github.com/tidwall/gjson (from $GOROOT)
/root/go/src/github.com/tidwall/gjson (from $GOPATH)
[root@VULS prometheus-vuls-exporter]#
Hope my question is not too silly
Thank so much
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.