Skip to content

Instantly share code, notes, and snippets.

@cazorla19
cazorla19 / api-example.jsonnet
Created January 13, 2021 15:55
Grafonnet Google Cloud Monitoring Examples
/**
* 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
@cazorla19
cazorla19 / json
Created July 25, 2017 11:38
Elasticsearch template for logstash
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 },