Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用Google App Engine node.js运行时设置Datadog?_Node.js_Google App Engine_Datadog - Fatal编程技术网

如何使用Google App Engine node.js运行时设置Datadog?

如何使用Google App Engine node.js运行时设置Datadog?,node.js,google-app-engine,datadog,Node.js,Google App Engine,Datadog,根据,在app engine中设置datadog的方法是克隆repo并在app.yaml中添加以下内容: handlers: # Should probably be at the beginning of the list # so it's not clobbered by a catchall route - url: /datadog script: gae_datadog.datadog.app env_variables: DATADOG_API_KEY: 'YOURA

根据,在app engine中设置datadog的方法是克隆repo并在app.yaml中添加以下内容:

handlers:
# Should probably be at the beginning of the list
# so it's not clobbered by a catchall route
- url: /datadog
  script: gae_datadog.datadog.app

env_variables:
    DATADOG_API_KEY: 'YOURAPIKEY'
# Copyright 2017, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# [START app_yaml]
handlers:
    # Should probably be at the beginning of the list
    # so it's not clobbered by a catchall route
    - url: /datadog
      script: gae_datadog.datadog.app

env_variables:
    DATADOG_API_KEY: 'MY_KEY'

runtime: nodejs
env: flex
# [END app_yaml]
但是,这似乎不适用于他们的nodejs运行时。这是我的
app.yaml

handlers:
# Should probably be at the beginning of the list
# so it's not clobbered by a catchall route
- url: /datadog
  script: gae_datadog.datadog.app

env_variables:
    DATADOG_API_KEY: 'YOURAPIKEY'
# Copyright 2017, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# [START app_yaml]
handlers:
    # Should probably be at the beginning of the list
    # so it's not clobbered by a catchall route
    - url: /datadog
      script: gae_datadog.datadog.app

env_variables:
    DATADOG_API_KEY: 'MY_KEY'

runtime: nodejs
env: flex
# [END app_yaml]

似乎根本没有使用datadog url处理程序,因为它是404。我假设node.js应用程序在这里具有优先权,但我不知道如何更改它。

嗨,你知道这一点吗?我也试着做同样的事情不,最后没用