hygieia / hygieia-scm-github-collector

Collector to fetch data from Github and feed Hygieia
https://github.com/Hygieia/Hygieia/blob/gh-pages/pages/hygieia/collectors/scm/github.md
Apache License 2.0
1 stars 35 forks source link

hygieia-scm-github-collector #32

Open GouriPSL opened 3 years ago

GouriPSL commented 3 years ago

I have configured the git scm collector but it is not pulling data. 2021-02-03 18:40:00,013 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Getting Collector: GitHub 2021-02-03 18:40:00,031 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Starting Collector=GitHub 2021-02-03 18:40:00,032 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - ----------------------------------- 2021-02-03 18:40:00,032 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Starting... 2021-02-03 18:40:00,033 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - ----------------------------------- 2021-02-03 18:40:00,073 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Repo Count 0 0s 2021-02-03 18:40:00,073 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New Commits 0 0s 2021-02-03 18:40:00,074 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New Pulls 0 0s 2021-02-03 18:40:00,074 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New Issues 0 0s 2021-02-03 18:40:00,074 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Finished 0s 2021-02-03 18:40:00,074 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Finished running Collector=GitHub timeTaken=42 collectorItems=0

below are my config details -

Database Name

dbname=dashboarddb

Database HostName - default is localhost

dbhost=localhost

Database Port - default is 27017

dbport=27017

MongoDB replicaset

dbreplicaset=false

dbhostport=localhost:27017

server.port=8095

Proxy URL

github.proxy=

Proxy Port

github.proxyPort=

Proxy user if auth is required

github.proxyUser=

Proxy password if auth is required

github.proxyPassword=

Logging File location

logging.file=./logs/github.log

Collector schedule (required)

github.cron=0 0/5

github.UserId=GouriPSL

github.host=https://github.com/GouriPSL

Maximum number of previous days from current date, when fetching commits

github.commitThresholdDays=15

Optional: Error threshold count after which collector stops collecting for a collector item. Default is 2.

github.errorThreshold=1

This is the key generated using the Encryption class in core

github.key=E4p/L2LTxHY4gAsTuq00DV1tnvLQaPii

Personal access token generated from github and used for making authentiated calls

github.personalAccessToken=3f099db1422958b22ea6ad3af461962a37514afc

Github repository Connect Timeout value in milliseconds, default value is 20000 (20s)

github.connectTimeout=20000

Github repository Read Timeout value in milliseconds, default value is 20000 (20s)

github.readTimeout=20000

Am I missing anything? Help would be appreciated. Thanks.

erictice commented 3 years ago

Where is this? Is this another UI issue? I am not getting any data from even public repos in github. There is no data for the scm in collector_items and no data in code_repos_builds

rvema commented 3 years ago

Hi Eric, we have migrated to using graphql version of this collector. We may make it readonly at some point as there is no activity in this collector.

rvema commented 3 years ago

@GouriPSL please use - https://github.com/Hygieia/hygieia-scm-github-graphql-collector