Grafana
2 minute read
The grafana microservice is a web application that provides visualization and analytics capabilities. Grafana allows you to query, visualize, alert on and understand your metrics no matter where they are stored.
It has a rich ecosystem of plugins that allow you to extend its functionality beyond the core features.
How it works
Grafana is a web application that can be accessed through a web browser. It let’s you create dashboards that can be used to visualize data from the database.
Thanks to some custom datasource plugins, Grafana can use the various APIs of the United Manufacturing Hub to query the database and display useful information.
Kubernetes resources
- Deployment:
united-manufacturing-hub-grafana
- Service:
- External LoadBalancer:
united-manufacturing-hub-grafana
at port 8080
- External LoadBalancer:
- ConfigMap:
united-manufacturing-hub-grafana
- Secret:
grafana-secret
- PersistentVolumeClaim:
united-manufacturing-hub-grafana
Configuration
Grafana is configured through its user interface. The default credentials are found in the grafana-secret Secret.
The Grafana installation that is provided by the United Manufacturing Hub is shipped with a set of preinstalled plugins:
- ACE.SVG by Andrew Rodgers
- Button Panel by CloudSpout LLC
- Button Panel by UMH Systems Gmbh
- Discrete by Natel Energy
- Dynamic Text by Marcus Olsson
- FlowCharting by agent
- Pareto Chart by isaozler
- Pie Chart (old) by Grafana Labs
- Timepicker Buttons Panel by williamvenner
- UMH Datasource by UMH Systems Gmbh
- UMH Datasource v2 by UMH Systems Gmbh
- Untimely by factry
- Worldmap Panel by Grafana Labs
Environment variables
Variable name | Description | Type | Allowed values | Default |
---|---|---|---|---|
FACTORYINSIGHT_APIKEY | The API key to use to authenticate to the Factoryinsight API | string | Any | Base64 encoded string |
FACTORYINSIGHT_BASEURL | The base URL of the Factoryinsight API | string | Any | united-manufacturing-hub-factoryinsight-service |
FACTORYINSIGHT_CUSTOMERID | The customer ID to use to authenticate to the Factoryinsight API | string | Any | factoryinsight |
FACTORYINSIGHT_PASSWORD | The password to use to authenticate to the Factoryinsight API | string | Any | Random UUID |
GF_PATHS_DATA | The path where Grafana will store its data | string | Any | /var/lib/grafana/data |
GF_PATHS_LOGS | The path where Grafana will store its logs | string | Any | /var/log/grafana |
GF_PATHS_PLUGINS | The path where Grafana will store its plugins | string | Any | /var/lib/grafana/plugins |
GF_PATHS_PROVISIONING | The path where Grafana will store its provisioning configuration | string | Any | /etc/grafana/provisioning |
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS | List of plugin identifiers to allow loading even if they lack a valid signature | string | Comma separated list | umh-datasource,umh-factoryinput-panel,umh-v2-datasource |
GF_SECURITY_ADMIN_PASSWORD | The password of the admin user | string | Any | Random UUID |
GF_SECURITY_ADMIN_USER | The username of the admin user | string | Any | admin |