This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scrape_configs: | |
## gather metrics of prometheus itself | |
- job_name: prometheus | |
static_configs: | |
- targets: | |
- localhost:9090 | |
## gather the metrics of json_exporter application itself | |
- job_name: json_exporter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
metrics: | |
- name: battery | |
type: object | |
path: '{ .Body.Data.Inverters.1 }' | |
help: Battery Data | |
labels: | |
id: "battery" | |
name: "battery" | |
values: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: 2010-09-09 | |
Resources: | |
EventsToCentralMonitoringEventBus: | |
Type: 'AWS::Events::Rule' | |
Properties: | |
Description: Events-To-Central-Monitoring-EventBus | |
Name: Events-To-Central-Monitoring-EventBus | |
EventPattern: | |
source: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Toybox.Application; | |
import Toybox.Graphics; | |
import Toybox.Lang; | |
import Toybox.System; | |
import Toybox.WatchUi; | |
using Toybox.Graphics as Gfx; | |
using Toybox.Lang as Lang; | |
using Toybox.Math as Math; | |
using Toybox.System as Sys; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'object_attributes': { 'action': 'update', | |
'assignee_id': 2, | |
'assignee_ids': [2], | |
'author_id': 2, | |
'closed_at': None, | |
'confidential': False, | |
'created_at': '2021-01-29 16:35:37 UTC', | |
'description': '', | |
'discussion_locked': None, | |
'due_date': None, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import escape | |
from flask import request | |
import json | |
import requests | |
def gitlab_habitica_google_function(request): | |
"""HTTP Cloud Function. | |
Args: | |
request (flask.Request): The request object. | |
<https://flask.palletsprojects.com/en/1.1.x/api/#incoming-request-data> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: {{ (ds "data").name }}-{{ (ds "data").suffix }} | |
namespace: {{ (ds "data").namespace }} | |
spec: | |
replicas: {{ (ds "config").replicas }} | |
selector: | |
matchLabels: | |
service: {{ (ds "data").name }}-{{ (ds "data").suffix }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export TERM=ansi | |
export CUSTOMIZEPATH=kploy-customize | |
# Processing custom template deployment files | |
echo "Processing script template" | |
echo "--------------------------" | |
./gomplate -f ./run-tpl.sh -o ./run.sh -d data=../$CUSTOMIZEPATH/data.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export TERM=ansi | |
export BASEPATH=kploy | |
export CUSTOMIZEPATH=kploy-customize | |
# Kubernetes deploy | |
# Export the provided image name as IMAGE | |
export IMAGE=$1 | |
NewerOlder