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
package oteljsonlogflattenerprocessor | |
import ( | |
"context" | |
"encoding/json" | |
"reflect" | |
"go.opentelemetry.io/collector/component" | |
"go.opentelemetry.io/collector/consumer" | |
"go.opentelemetry.io/collector/pdata/plog" |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
_ "github.com/joho/godotenv/autoload" |
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
resource "aws_elasticsearch_domain" "temp_replication_testing" { | |
count = var.deploy_config.environment == "jupiterone-prod-eu" ? 1 : 0 | |
domain_name = "temp-replication-testing" # domain names have to be unique | |
elasticsearch_version = var.es_version | |
cluster_config { | |
instance_type = var.es_instance_type | |
instance_count = var.es_instance_count | |
dedicated_master_enabled = var.es_dedicated_master_enabled | |
dedicated_master_count = var.es_dedicated_master_count |
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
// index.ts | |
import { initializeTelemetry } from './initialize'; | |
import { APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda'; | |
import { SQSClient, SendMessageCommand, SendMessageCommandInput } from '@aws-sdk/client-sqs'; | |
const sqsClient = new SQSClient({}); | |
const publishMessage = async () => { | |
const input: SendMessageCommandInput = { | |
QueueUrl: process.env.QUEUE_URL, |
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
// This will check for cortex.yaml or cortex.yml in all JupiterOne repositories. | |
// Run with go run main.go <github_pat> | |
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"net/http" |
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
locals { | |
consumer_package_name = "message-consumer.zip" | |
consumer_package_path = "${path.module}/dist/${local.consumer_package_name}" | |
} | |
resource "aws_lambda_function" "message_consumer" { | |
s3_bucket = aws_s3_bucket_object.consumer_s3_source.bucket | |
s3_key = aws_s3_bucket_object.consumer_s3_source.id | |
s3_object_version = aws_s3_bucket_object.consumer_s3_source.version_id | |
function_name = "apm-message-consumer" |
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: v1 | |
kind: Namespace | |
metadata: | |
name: test-ws | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: test-ws | |
namespace: test-ws |
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
[ | |
{ | |
"name": "nobl9", | |
"ring": "Assess", | |
"quadrant": "Tools", | |
"isNew": true, | |
"description": "Nobl9 is a platform that helps build SLO's from existing metrics" | |
}, | |
{ | |
"name": "Spacelift", |
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
[ | |
{ | |
"name": "nobl9", | |
"ring": "Assess", | |
"quadrant": "Tools", | |
"isNew": true, | |
"description": "Nobl9 is a platform that helps build SLO's from existing metrics" | |
}, | |
{ | |
"name": "Spacelift", |
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
blueprint: | |
name: Turn off lights at specific time | |
description: Turn off lights at a specific time | |
domain: automation | |
input: | |
switch_target: | |
name: Switch | |
description: The switch(es) to turn off at sunrise | |
selector: | |
target: |
NewerOlder