bithauschile / datadog-ga

Datadog custom check for Google Analytics Real Time
MIT License
45 stars 22 forks source link

invalid config for ga: yaml: did not find expected key #9

Open matthysdebruyn-wdfc opened 5 years ago

matthysdebruyn-wdfc commented 5 years ago

Datadog agent version: 6.5.0

c:\Program Files\Datadog\Datadog Agent\embedded>agent.exe check ga

Error: invalid config for ga: yaml: line 12: did not find expected key Error: no valid check found

OS: Windows Server 2016 Key location: c:\programdata\datadog\conf.d\ga.d\key.json

Below is file extract:

init_config:
    min_collection_interval: 55
    service_account_email: datadog@test-datadog-integration.iam.gserviceaccount.com
    key_file_location: c:\programdata\datadog\conf.d\ga.d\key.json

   - profile: ga:122299569
     tags:
      - env:prd
     pageview_dimensions:
      - rt:country
      - rt:city
      - rt:deviceCategory
matthysdebruyn-wdfc commented 5 years ago

Config was missing instances: portion. NOw to look into the python exception..

c:\Program Files\Datadog\Datadog Agent\embedded>agent.exe check ga
Error: Unable to load the check: unable to load any check from config 'ga'

Error: could not load ga:
* Python Check Loader: Traceback (most recent call last):
  File "c:\programdata\datadog\checks.d\ga.py", line 15, in <module>
    from apiclient.discovery import build
ImportError: No module named apiclient.discovery

* Core Check Loader: Check ga not found in Catalog
* JMX Check Loader: check is not a jmx check, or unable to determine if it's so
Error: no valid check found
Usage:
  agent check <check_name> [flags]
matthysdebruyn-wdfc commented 5 years ago

think it relates to https://github.com/googleapis/google-api-python-client/issues/553