Aspire 5 logs and metrics are directly pushed into Elasticsearch. In order to have a way to visualize them, a base set of dashboards have been created. These dashboards can be extended to support your monitoring needs.
CURL method
curl -u [elastic_user]:[elastic_pass] -F 'file=@/path/to/export.ndjson' -H 'kbn-xsrf:reporting' "http://kibana_host_or_ip:5601/api/saved_objects/_import?overwrite=true"
Add the following environment variables before starting the Manager nodes:
Environment variable | value |
---|---|
aspire_dashboards_enabled | true |
aspire_dashboards_base | http://kibana_host_or_ip:5601/app/dashboards#/view/ |
aspire_dashboards_main | Replace with the GUID from the Aspire Dashboard (In Kibana) |
aspire_dashboards_metrics | <Replace with the GUID from the Seed Status Dashboard (In Kibana)> ?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-24h,to:now))&_a=(description:'',filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'106de620-c3ca-11eb-9a7f-bd24f960d263',key:audit.seedId,negate:!f,params:(query:'${seedId}'),type:phrase),query:(match_phrase:(audit.seedId:'${seedId}')))),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:''),tags:!(),timeRestore:!f,title:'Aspire%20-%20Document%20Statistics',viewMode:view) |
Note the bold text on the metrics dashboard, Aspire will replace the following variables:
Aspire will automatically generate the URLs and links to the dashboards on each Seed.
Main Dashboard Link
Individual Seed Metrics Dashboard Link