Function's Service Account should have role logging.writer
context.function_name
DOES contain function id
Thanks to https://github.com/mcode-cc/python-yandex-cloud-logging library
Function's Service Account should have role logging.writer
context.function_name
DOES contain function id
Thanks to https://github.com/mcode-cc/python-yandex-cloud-logging library
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
namespace: monitoring | |
name: grafana-reddit-dashboard | |
labels: | |
grafana_dashboard: "1" | |
data: | |
reddit-dashboard.json: | | |
{"annotations":{"list":[{"builtIn":1,"datasource":"-- Grafana --","enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations & Alerts","type":"dashboard"}]},"description":"Reddit Basic Monitoring","editable":true,"gnetId":null,"graphTooltip":0,"id":20,"links":[],"panels":[{"aliasColors":{},"bars":false,"dashLength":10,"dashes":false,"datasource":"Prometheus","description":"all http requests","fill":1,"fillGradient":0,"gridPos":{"h":9,"w":12,"x":0,"y":0},"id":2,"legend":{"avg":false,"current":false,"max":false,"min":false,"show":true,"total":false,"values":false},"lines":true,"linewidth":1,"links":[],"nullPointMode":"null","options":{"dataLinks":[]},"percentage":false,"pointradius":5,"points":false,"renderer":"flot","seriesOverrides":[],"spaceLength":10,"stack":false,"steppedLine":false,"targets":[{"expr":"sum(rate(http |
prometheusOperator: | |
createCustomResource: false | |
alertmanager: | |
enabled: true | |
ingress: | |
enabled: true | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
nginx.ingress.kubernetes.io/backend-protocol: "HTTP" |
Vagrant.configure("2") do |config| | |
config.vm.box = "parallels/ubuntu-16.04" | |
config.vm.provider "parallels" do |prl| | |
prl.memory = 1024 | |
prl.cpus = 1 | |
end | |
config.vm.provision "shell", privileged: false, inline: <<-SHELL | |
sudo apt update |
#!/usr/bin/env python | |
import requests | |
base_url = "https://example.com/nexus/service/rest/beta/assets" | |
repository = "maven-central" | |
url = "{}?repository={}".format(base_url, repository) | |
links_file = open('links.txt', 'w') | |
while True: |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.4.list | |
echo "deb http://repo.pritunl.com/stable/apt xenial main" > /etc/apt/sources.list.d/pritunl.list | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6 | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A | |
apt-get --assume-yes update | |
apt-get --assume-yes upgrade | |
apt-get --assume-yes install pritunl mongodb-org | |
systemctl start pritunl mongod | |
systemctl enable pritunl mongod |