@Override
	public List<M> findAll() {
		List<M> gauges = new ArrayList<M>();
		// TODO asking for keys is not recommended. See http://redis.io/commands/keys
		// Need to keep track of created instances explicitly.
		Set<String> keys = this.redisOperations.keys(this.metricPrefix + "*");
		for (String key : keys) {
			if (!key.matches(metricPrefix + ".+?_\\d{4}\\.\\d{2}\\.\\d{2}-\\d{2}:\\d{2}")) {
				V value = this.valueOperations.get(key);
				String name = key.substring(metricPrefix.length());
				M m = create(name, value);
				gauges.add(m);
			}
		}
		return gauges;

	}
Provides the key for a named metric. By default this appends the name to the metricPrefix value.

@param metricName the name of the metric
@return the redis key under which the metric is stored
spring-xd-analytics/src/main/java/org/springframework/xd/analytics/metrics/redis/AbstractRedisMetricRepository.java