While Instana provides curated dashboards to support common use-cases, there are situations where a custom dashboard is the right tool for the job.
This repository contains some sample custom dashboards which can be used as an inspiration what is possible or as a starting point for customization. These don't replace the built-in dashboards and support on these are community driven.
This Makefile leverages the Instana API. Access control is managed by Access Tokens. Ensure that the token has right permission: "Creation of public custom dashboards". Set the API access token as an environment variable. e.g.:
export INSTANA_API_TOKEN="123123123"
Also you need to set the user_id of the API token. Copy it from the URL and set it:
export INSTANA_API_TOKEN_RELATION_ID="123123123-123-123-123-12312312312"
To query the API you need to set the base URL of the Istana tenant unit you want to create the dashboards in. e.g.
export INSTANA_BASE_URL="https://test-example.instana.io"
Finally to create a dashboard you need to aquire a user_id
which is set as the owner of the dashboards you create. This user will be able to edit, delete and share the custom dashboard. There are several ways to the user-id. Set the user_id
as an environment variable e.g.
export INSTANA_USER_ID="123123123"
The specs aber based on Jsonnet. To configure the individual dashboards see the respective _config+
section.
The specs are pure Jsonnet.
# Install Jsonnet. Eg.
$ brew install go-jsonnet
Than see the Makefile