Skip to content

Instantly share code, notes, and snippets.

View qw1mb0's full-sized avatar

Andrey Sidorov qw1mb0

  • Russian Federation, Crimea
View GitHub Profile
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
--- a/public/app/plugins/datasource/prometheus/datasource.ts 2018-12-10 17:08:32.000000000 +0300
+++ b/public/app/plugins/datasource/prometheus/datasource.ts 2018-12-10 19:03:15.791337923 +0300
@@ -235,6 +235,10 @@
...this.getRangeScopedVars(),
});
}
+ const intervalForRangeVectors = Math.max(kbn.interval_to_seconds(this.interval) * 2, interval);
+ scopedVars = Object.assign({}, scopedVars, {
+ __interval_rv: { text: intervalForRangeVectors + 's', value: intervalForRangeVectors + 's' },
+ });
"""Utilities to get a password and/or the current user name.
getpass(prompt[, stream]) - Prompt for a password, with echo turned off.
getuser() - Get the user name from the environment or password database.
GetPassWarning - This UserWarning is issued when getpass() cannot prevent
echoing of the password contents while reading.
On Windows, the msvcrt module will be used.
On the Mac EasyDialogs.AskPassword is used, if available.
apiVersion: v1
kind: Namespace
metadata:
name: kube-nginx-ingress
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ingress
rules:
apiVersion: v1
kind: Namespace
metadata:
name: kube-lego
---
apiVersion: v1
metadata:
name: kube-lego
namespace: kube-lego
data: