This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Creates a dashboard for API service running on Google Kubernetes Engine | |
| * Here is the proper command to run with external parameters | |
| * jsonnet -J grafonnet-lib \ | |
| * --ext-str appName=your_app_name \ | |
| * --ext-str environment=your_k8s_namespace \ | |
| * --ext-str gcpProject=your_gcp_project \ | |
| * --ext-str filterUri=your_uri_filter \ | |
| * --ext-str apiHost=your_ingress_host \ | |
| * api-example.jsonnet > rendered_dashboard.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PUT _template/logstash | |
| { | |
| "mappings": { | |
| "_default_": { | |
| "_all": { "enabled": false }, | |
| "properties" : { | |
| "@fields": { "type": "object", "dynamic": true }, | |
| "@message": { "type": "text", "index": true }, | |
| "@source": { "type": "text", "index": false }, | |
| "@source_host": { "type": "text", "index": false }, |