GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — getApplicationDefault is undefined. · Issue #121 · GoogleCloudPlatform/nodejs-docs-samples

getApplicationDefault is undefined.  #121

New issue
Copy link
New issue
Copy link
Closed
Closed
getApplicationDefault is undefined. #121
Copy link
Assignees
waprin
Labels
🚨This issue needs some love.triage meI really want to be triaged.

Description

@neoadventist
neoadventist
opened on Jun 8, 2016
Issue body actions

running the create_custom_metric on line https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/monitoring/create_custom_metric.js#L218

the object google.auth looks like

{ Compute: [Function], JWT: [Function], OAuth2: [Function] }

no getApplicationDefault function

I'm supplying a project id, is there something i'm doing wrong here?

Thanks.

Activity

Next
  1. neoadventist commented on Jun 8, 2016

    @neoadventist
    neoadventist
    on Jun 8, 2016
    Author
    More actions

    trying to use this with stackdriver.

  2. jmdobry commented on Jun 8, 2016

    @jmdobry
    jmdobry
    on Jun 8, 2016
    Member
    More actions

    Can you post your error? And did you set the GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS environment variables? See https://github.com/GoogleCloudPlatform/nodejs-docs-samples#prerequisites

  3. neoadventist commented on Jun 8, 2016

    @neoadventist
    neoadventist
    on Jun 8, 2016
    Author
    More actions

    @jmdobry yeah got it working now. I did not have the GOOGLE_APPLICATION_CREDENTIALS env set. now i'm trying to get the custom metric to be visible on a dashboard. Do you know where I can go to for that?

  4. neoadventist
    closed this as completedon Jun 8, 2016
  5. jmdobry commented on Jun 8, 2016

    @jmdobry
    jmdobry
    on Jun 8, 2016
    Member
    More actions

    Have you looked through https://app.google.stackdriver.com/ for your custom metric? You might have to write some data to the custom metric before it will show up. You also might have to create a new dashboard or alert targeting the metric. @waprin probably knows more.

  6. waprin
    self-assigned this
    on Jun 8, 2016
  7. neoadventist commented on Jun 8, 2016

    @neoadventist
    neoadventist
    on Jun 8, 2016
    Author
    More actions

    There are a thousand sub-menus, but I can't find the metric when I try to add a graph.
    gcloud_custom_metrics

  8. neoadventist
    reopened this on Jun 8, 2016
  9. neoadventist
    closed this as completedon Jun 8, 2016
  10. neoadventist
    reopened this on Jun 8, 2016
  11. waprin commented on Jun 8, 2016

    @waprin
    waprin
    on Jun 8, 2016
    Contributor
    More actions

    You should see "Custom Metrics" as an option under "Resource Type". If you don't, you probably haven't successfully created any custom metric descriptors.

  12. neoadventist commented on Jun 8, 2016

    @neoadventist
    neoadventist
    on Jun 8, 2016
    Author
    More actions

    @waprin any documentation to show me on how to do that?

  13. neoadventist commented on Jun 8, 2016

    @neoadventist
    neoadventist
    on Jun 8, 2016
    Author
    More actions

    so I can successfully create it under the code but not see it in the UI until i make a descriptor?

  14. waprin commented on Jun 8, 2016

    @waprin
    waprin
    on Jun 8, 2016
    Contributor
    More actions

    You are creating a metric descriptor, you create metrics when you actually write values to it. As soon as you create it you should be able to see it, one guess at your problem is by default the sample code deletes the metric descriptor after creating it. This was in the interest of keeping projects cleaned up, check to make sure you've commented that part out.

  15. waprin commented on Jun 8, 2016

    @waprin
    waprin
    on Jun 8, 2016
    Contributor
    More actions

    Unfortunately I agree the docs no the UI are a bit sparse, working on improving that now but nothing's ready yet.

  16. 17 remaining items

  17. ace-n
    added 4 commits that reference this issue on Nov 14, 2022

    chore: release 1.1.3 (#121)

    28cb72e

    chore: release 1.1.3 (#121)

    e58e45f

    chore: release 1.1.3 (#121)

    7d0a74a

    chore: release 2.8.0 (#121)

    5c76182
  18. ahrarmonsur
    added 3 commits that reference this issue on Nov 16, 2022

    Release @google-cloud/asset v0.3.0 (#121)

    86d8843

    Release @google-cloud/asset v0.3.0 (#121)

    71fea10

    Release @google-cloud/asset v0.3.0 (#121)

    10235f9
  19. telpirion
    added a commit that references this issue on Nov 16, 2022

    chore(deps): lock file maintenance (#121)

    5dceaea
  20. ace-n
    added 2 commits that reference this issue on Nov 17, 2022

    Release @google-cloud/asset v0.3.0 (#121)

    fe0a166

    chore: release 2.8.0 (#121)

    c50356f
  21. pattishin
    added a commit that references this issue on Nov 18, 2022

    chore: new owl bot post processor docker image (#121)

    631d2ea
  22. ace-n
    added a commit that references this issue on Nov 21, 2022

    migrate code from googleapis/nodejs-dialogflow-cx (#2854)

    c0020e4
  23. pattishin
    added a commit that references this issue on Nov 22, 2022

    chore: new owl bot post processor docker image (#121)

    5de6553
  24. jsimonweb
    added a commit that references this issue on Dec 12, 2022

    chore: bump to next dev version (GoogleCloudPlatform#121)

    f2529d0
  25. kweinmeister
    added a commit that references this issue on Jan 25, 2023

    chore(main): release 2.2.1 (#123)

    122bdbf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @waprin
    waprin

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.