You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. If the query does not return results, check the status of the targets for status errors.
193
+
3. Make sure that in the query results from step 1 include the required labels `instance`, `location`, `site`, `env` for all targets.
194
+
195
+
If the labels are not being added, in [prometheus.yml](../prometheus/prometheus.yml), check that the required labels are being applied in accordance with the [sample configuration](../prometheus/prometheus.yml).
196
+
```yaml
197
+
labels:
198
+
# Instance should be the device name and is used to correlate metrics between different endpoints in Prometheus and Grafana. Ensure this is the same for each endpoint for the same device.
199
+
instance: arrayname01
200
+
# location, site and env are specific to your environment. Feel free to add more labels but maintain these three to minimize changes to Grafana which is expecting to use location, site and env as filter variables.
201
+
location: uk
202
+
site: London
203
+
env: production
204
+
```
205
+
206
+
4. If the query does not return results, check the status of the targets for status errors.
7. Ensure that the docker image is running, if for any reason the container is unexpectedly halting while running you may add `--restart unless-stopped` to the `docker run` command to ensure the container is restarted automatically on failure.
227
+
8. Ensure that the docker image is running, if for any reason the container is unexpectedly halting while running you may add `--restart unless-stopped` to the `docker run` command to ensure the container is restarted automatically on failure.
0 commit comments