This plugin is currently being groomed to be an integration. It works, but we haven't spent a lot of time on it yet to optimize the user experience. Feel free to try it out, just keep in mind that we will be enhancing the experience over time.
This plugin collects metrics from from HTTP servers exposing metrics in Prometheus format.
The Prometheus plugin is included with the SolarWinds Snap Agent by default. Please follow the directions below to configure it.
The agent provides an example configuration file to help you get started quickly. It defines the plugin and task file to be loaded by the agent, but requires you to provide the correct settings for your HTTP server(s) exposing metrics in Prometheus format. To enable the plugin:
- Make a copy of the prometheus example configuration file
/opt/SolarWinds/Snap/etc/plugins.d/prometheus.yaml.example, renaming it to
$ sudo cp /opt/SolarWinds/Snap/etc/plugins.d/prometheus.yaml.example /opt/SolarWinds/Snap/etc/plugins.d/prometheus.yaml
/opt/SolarWinds/Snap/etc/plugins.d/prometheus.yamlconfiguration file with settings specific to your HTTP server(s) exposing metrics in Prometheus format, for example:
## A list of urls to scrape metrics from.
## A list of Kubernetes services to scrape metrics from.
# kubernetes_services: |-
## Use bearer token for authorization
# bearer_token: /path/to/bearer/token
## Specify timeout duration for slower prometheus clients (default is 3s)
# response_timeout: "3s"
## Optional SSL Config
# tls_ca: /path/to/cafile
# tls_cert: /path/to/certfile
# tls_key: /path/to/keyfile
## Use SSL but skip chain & host verification
# insecure_skip_verify: false
## Metric name prefix
# bridge_prefix: "prometheus"
# bridge_prefix: ""
urls- list of URLs to scrape Prometheus metrics from.
kubernetes_services- urls listed here will be expanded by looking up all A records assigned to teh hostname as described in Kubernetes DNS service discovery. This method can be use to locate all of the Kubernetes headless services.
bearer_token- the file set on this parameter will be read on each interval and its contents will be appened to the Bearer string in the Authorization header
bridge_prefix- sets the default prefix used for metric names ; By default, it is set to
- Restart the agent:
$ sudo service swisnapd restart
Enable the Prometheus plugin in the AppOptics UI
Select the Prometheus plugin to open the configuration menu in the UI, and enable the plugin.
You should be able to select a set of metrics from the metrics tab and create a custom dashboard.
The collected metrics will be prefixed with
prometheus.* in AppOptics (or the configured value for
bridge_prefix on the plugin configuration).
All metrics receive the
url tag referencing the source URL in the configuration. If using Kubernetes service discovery, the
address tag is also added indicating the discovered ip address.
When the APM Integrated Experience is enabled, AppOptics shares a common navigation and settings with the other integrated experiences' products. How you navigate AppOptics and access its features may vary from these instructions. For more information, go to the APM Integrated Experience documentation.
The scripts are not supported under any SolarWinds support program or service. The scripts are provided AS IS without warranty of any kind. SolarWinds further disclaims all warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The risk arising out of the use or performance of the scripts and documentation stays with you. In no event shall SolarWinds or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the scripts or documentation.