Issue Summary
Hello, I am trying to use redash to visualize data in my VictoriaMetrics DB.
VictoriaMetrics provides Prometheus API that I use.
curl example :
curl -fs --data-urlencode 'query=hw_stat_cpu{machine_name="x8664server"}[30s]' http://192.168.1.10:8428/api/v1/query
{"status":"success","data":{"resultType":"matrix","result":[{"metric":{"__name__":"hw_stat_cpu","domain":"hw_stat","machine_ip":"192.168.1.10","machine_name":"x8664server"},"values":[[1665340803.608,"20.4"],[1665340808.53,"26"],[1665340813.514,"19.1"],[1665340818.608,"23.7"],[1665340823.618,"19.7"],[1665340828.509,"23.6"]]}]}}
But when I add hw_stat_cpu{machine_name="x8664server"}[30s]
it does not show anything.
In redash logs I can see InvalidToken exception, but I am not sure that it is related to my query
worker_1 | [2022-10-09 18:44:56,083][PID:34][ERROR][ForkPoolWorker-8] Task redash.tasks.execute_query[ee0b469c-985e-457f-bde9-7fc3cac358a0] raised unexpected: InvalidToken()
worker_1 | Traceback (most recent call last):
worker_1 | File "/usr/local/lib/python2.7/site-packages/celery/app/trace.py", line 385, in trace_task
worker_1 | R = retval = fun(*args, **kwargs)
worker_1 | File "/app/redash/worker.py", line 84, in __call__
worker_1 | return TaskBase.__call__(self, *args, **kwargs)
worker_1 | File "/usr/local/lib/python2.7/site-packages/celery/app/trace.py", line 648, in __protected_call__
worker_1 | return self.run(*args, **kwargs)
worker_1 | File "/app/redash/tasks/queries.py", line 436, in execute_query
worker_1 | scheduled_query).run()
worker_1 | File "/app/redash/tasks/queries.py", line 339, in __init__
worker_1 | self.data_source = self._load_data_source()
worker_1 | File "/app/redash/tasks/queries.py", line 422, in _load_data_source
worker_1 | return models.DataSource.query.get(self.data_source_id)
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 924, in get
worker_1 | ident, loading.load_on_pk_identity)
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 1007, in _get_impl
worker_1 | return db_load_fn(self, primary_key_identity)
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 250, in load_on_pk_identity
worker_1 | return q.one()
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2954, in one
worker_1 | ret = self.one_or_none()
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2924, in one_or_none
worker_1 | ret = list(self)
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 98, in instances
worker_1 | util.raise_from_cause(err)
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause
worker_1 | reraise(type(exception), exception, tb=exc_tb, cause=cause)
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 79, in instances
worker_1 | rows = [proc(row) for row in fetch]
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 511, in _instance
worker_1 | loaded_instance, populate_existing, populators)
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 611, in _populate_full
worker_1 | dict_[key] = getter(row)
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy/sql/type_api.py", line 1226, in process
worker_1 | return process_value(impl_processor(value), dialect)
worker_1 | File "/app/redash/models/types.py", line 28, in process_result_value
worker_1 | return ConfigurationContainer.from_json(super(EncryptedConfiguration, self).process_result_value(value, dialect))
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy_utils/types/encrypted/encrypted_type.py", line 409, in process_result_value
worker_1 | decrypted_value = self.engine.decrypt(value)
worker_1 | File "/usr/local/lib/python2.7/site-packages/sqlalchemy_utils/types/encrypted/encrypted_type.py", line 216, in decrypt
worker_1 | decrypted = self.fernet.decrypt(value)
worker_1 | File "/usr/local/lib/python2.7/site-packages/cryptography/fernet.py", line 75, in decrypt
worker_1 | return self._decrypt_data(data, timestamp, ttl)
worker_1 | File "/usr/local/lib/python2.7/site-packages/cryptography/fernet.py", line 119, in _decrypt_data
worker_1 | self._verify_signature(data)
worker_1 | File "/usr/local/lib/python2.7/site-packages/cryptography/fernet.py", line 108, in _verify_signature
worker_1 | raise InvalidToken
worker_1 | InvalidToken
Technical details:
- Redash Version: Version: 8.0.0+b32245 (a16f551e)
- Browser/OS: Docker version 20.10.18. Firefox 105.0.2 (64-bit)
- How did you install Redash: docker-compose from GitHub - radioberry/docker-redash: redash on docker