Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GAE app to uptime check config manifest #635

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions google/resource-snippets/monitoring-v3/uptime_check_configs.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
resources:
- name: uptime-check-{{ env["deployment"] }}
type: gcp-types/monitoring-v3:projects.uptimeCheckConfigs
properties:
displayName: My uptime check
httpCheck:
path: /
port: 80
monitoredResource:
labels:
module_id: default
project_id: {{ env["project"] }}
version_id: $(ref.app-{{ env["deployment"] }}.id)
type: gae_app
period: 300s
timeout: 10s
- name: app-{{ env["deployment"] }}
type: gcp-types/appengine-v1:apps.services.versions
properties:
servicesId: default
appsId: {{ env["project"] }}
deployment:
files:
main.py:
sourceUrl: https://storage.googleapis.com/admin-api-public-samples/hello_world/main.py
handlers:
- script:
scriptPath: main.app
securityLevel: SECURE_OPTIONAL
urlRegex: /
runtime: python27
threadsafe: true


17 changes: 4 additions & 13 deletions google/resource-snippets/monitoring-v3/uptime_check_configs.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
imports:
- path: uptime_check_configs.jinja

resources:
- name: uptime_check_config
type: gcp-types/monitoring-v3:projects.uptimeCheckConfigs
properties:
displayName: My uptime check
httpCheck:
path: /
port: 80
monitoredResource:
labels:
module_id: default
type: gae_app
period: 300s
timeout: 10s

type: uptime_check_configs.jinja