Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
github.com/ticketmaster/googleanalytics_exporter
Obtains Google Analytics RealTime metrics, and presents them to prometheus for scraping.
./config/conf.yaml
):.
port: 9674
interval: 60
viewid: ga:123456789
metrics:
- rt:pageviews
- rt:activeUsers
GO111MODULE=on go build ganalytics.go
./ganalytics
From your Google Analytics Web UI: Admin (Low left) ==> View Settings (far right tab, named VIEW)'
View ID should be among Basic Settings. Prefix ga:
must be added to the ID, e.g. ga:1234556
while adding it to the config.
Google API manager allows to create OAuth 2.0 credentials for Google APIs. Use Service account key credentials type, upon creation a json creds file will be provided. Project RO permissions should be sufficient.
The email from GA API creds must be added to analytics project metrics will be obtained from.>
brew install go --with-cc-common
creds.json
and config.yaml
expected to be in ./config/
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s" -a -installsuffix cgo ganalytics.go
docker build -t ganalytics .
docker run -it -p 9674:9674 -v $(pwd)/config:/ga/config ganalytics
Pavel Snagovsky, pavel@snagovsky.com
Licensed under the terms of MIT license, see LICENSE file
FAQs
Unknown package
Did you know?
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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.