Grafana on Windows Powered by GlobalSolutions
Grafana
Powered by GS
Grafana is an open-source solution for running data analytics, pulling up metrics that make sense of the massive amount of data & to monitor our apps with the help of cool customizable dashboards. Grafana connects with every possible data source, commonly referred to as databases such as Graphite, Prometheus, Influx DB, ElasticSearch, MySQL, PostgreSQL, etc. We have installed and configured Prometheus, WMI exporter, and Grafana. The user can subscribe to our service
and start using it.
It also enables us to write plugins from scratch for integration with several different data sources. The tool helps us study, analyze & monitor data over a period of time, technically called time-series analytics.
It helps us track the user behavior, application behavior, frequency of errors popping up in production or a pre-prod environment, type of errors popping up & the contextual scenarios by providing relative data.
You can learn more about our PatchManagement solution from
https://patchawscloud.com/saasconsole.
Usage instructionsWe have installed Prometheus, Grafana and the windows node exporter. This solutions helps you to get going right away with no time to spent on installing configuring all the applications. All the applications have been configured as a service. Once you start the instance all that you have to do is go to the prometheus.yml file and start adding your targets. As you add the targets the metrics will start coming and you can see it in Prometheus or Grafana.
Below are the location of the application and a simple step to configure a target. Few key definitions.
- Target - The resource you want to monitor.
- Exporter - A Prometheus client that will will emit metrics to as an end point to Prometheus.
- Prometheus.yml - The configuration file where you specify the targets you want to monitor.
- Grafana - Reads the metrics from promtheus to graph your data.
Installation Location
- Promtheus installation location - C:\prometheus
- Promtheus.yml location - C:\prometheus\prometheus.yml
- Grafana location - C:\grafana
We have created a Dashboard in Grafana to graph the following metric the metric of Prometheus and the Ec2 instance where the Prometheus is running. We have installed the windows node exporter on the Ec2 instance. This will emit metrics on port 9182. If you look at the prometheus.yml file we have added this as a scrapping endpoint. The below section in the prometheus.yml file refers to this configuration.
- job_name: 'EC2_Instance'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:9182']
As we collect this metric we have created a Dashboard in Grafana called to show these metrics. The Grafana Dashboard shows the following metrics. Uptime of the server, CPU, Memory, Network, Disk Usage, System load and more. As we have shown the sample you can install the appropriate exporter for different targets and have Prometheus Scarpe it.
Prometheus -
http://localhost:9090
Login with the user as
admin and password as
grafana. Make sure to change your password after logging in for the first time.Go to the Manage dashboard on the left and select Windows Metric Dashboard. You will see the metrics.
Grafana-
http://localhost:3000