Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

How to filter by Environment #37

Closed
phlegx opened this issue Nov 22, 2017 · 2 comments
Closed

How to filter by Environment #37

phlegx opened this issue Nov 22, 2017 · 2 comments

Comments

@phlegx
Copy link

phlegx commented Nov 22, 2017

First of all, thanks for the great work!

My question with Grafana: Is there a possibility to filter for example stacks and services by environment? If not, could we maybe add a flag so we can do a filter/regex for it?

@phlegx phlegx changed the title How to filter by Environemt How to filter by Environment Nov 25, 2017
@iamtgray
Copy link

iamtgray commented Jun 7, 2018

Hi @phlegx - To answer your really old question, the quick answer is no.

The long answer is: yes! ..but not with the rancher exporter directly. However you could use Prometheus recording rules (https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/), to add different and new labels for each environment, and then break down the environments in your grafana :)

Hope that helps

@iamtgray
Copy link

iamtgray commented Jun 7, 2018

Duplicates #2

@iamtgray iamtgray closed this as completed Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants