Skip to content

Instantly share code, notes, and snippets.

action.summary_index = 1
action.summary_index._name = some_index
action.summary_index._type = metric
@honewatson
honewatson / regex.spl
Created July 1, 2021 03:40
regex.spl cc
| rex mode=sed field=cc_matches "s/([\d]{4}\-?)([\d]{2})[\d]{2}(\-?)[\d]{4}(\-?)([\d]{3}\d?)/\1\2XX\3XXXX\4\5/g"
@honewatson
honewatson / splunk.chart.trellis.xml
Created May 21, 2021 01:05
Splunk Dynamic Gauge
<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
<option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
<option name="charting.axisTitleX.visibility">collapsed</option>
<option name="charting.axisTitleY.visibility">collapsed</option>
<option name="charting.axisTitleY2.visibility">collapsed</option>
<option name="charting.axisX.abbreviation">none</option>
<option name="charting.axisX.scale">linear</option>
<option name="charting.axisY.abbreviation">none</option>
<option name="charting.axisY.scale">linear</option>
<option name="charting.axisY2.abbreviation">none</option>
@honewatson
honewatson / engine-mode-serverless.md
Last active November 19, 2020 22:56
Terraform aws_rds_cluster rds_cluster engine mode serverless aurora-postgresql

Terraform aws_rds_cluster rds_cluster engine mode serverless aurora postgresql doesn't work in all regions.

Failed in ap-southeast-2 Sydney. It doesn't work in all regions because serverless mode is not available in all regions.

@honewatson
honewatson / newrelic-one.md
Created June 25, 2020 10:23
New Relic One
@honewatson
honewatson / apm.sql
Last active June 25, 2020 02:04
New Relic SRE SLI Availability % percentage proportion insights
SELECT (100 - (filter(count(*), WHERE (httpResponseCode = '429') OR httpResponseCode > '499')/count(*)*100)) as 'Success (%)'
FROM Transaction
WHERE httpResponseCode IS NOT NULL
SINCE 30 days ago
@honewatson
honewatson / README.md
Last active August 15, 2024 09:56
AppDynamics SQS Custom Correlation Example

https://docs.appdynamics.com/display/PRO45/Java+Backend+Detection

"Correlating SQS traffic requires you to configure the continuation entry point for the SQS message."

What this means is you must correlate the consumer java agent to extract the singularity header.

Below is an example which assumes there is an object with getter getSingularityHeader.

The object with getSingularityHeader is the first argument of a class/method com.example.service.sqs.SqsSubscriber.processMessage

@honewatson
honewatson / extensions-DockerMonitoring-conf-DockerMonitoring.yml
Last active October 29, 2019 09:46
AppDynamics Machine Agent Containers Nginx Docker ECS
samplingInterval: 30000
containerMonitoringConfig:
containerProcessSelectorRegex: ".*(-Dappdynamics|nginx).*"
#containerProcessSelectorRegex: ".*-Dappdynamics.*|.*nginx.*"
@honewatson
honewatson / Pod outbound access
Last active June 7, 2019 04:03
microk8s localhost issue /etc/hosts
sudo iptables -P FORWARD ACCEPT
@honewatson
honewatson / synthetic-agent-install-2016.md
Last active August 20, 2019 07:01
AppDynamics Synthetic Agent Install

Requirements

  • A license for Synthetic Private Agents ( not included in Synthetic Server Monitoring )
  • Processor: 2 GHz
  • Memory: 4 GB RAM
  • Disk Space: 40 GB
  • Dedicated host
  • Windows Server 2012 64-Bit or Windows Server 2012 R2 64-Bit (Only English version)
  • Microsoft .NET Framework 4.7 or greater
  • SaaS: https://synthetic.api.appdynamics.com:443;