Skip to content

Conversation

@megazina
Copy link
Contributor

@megazina megazina commented Apr 3, 2025

Assets to help using new inferred.services metrics: Dashboard group & Sample detectors.

@github-actions
Copy link

github-actions bot commented Apr 3, 2025

CLA Assistant Lite bot CLA Assistant Lite bot All contributors have signed the COC ✍️ ✅

@megazina
Copy link
Contributor Author

megazina commented Apr 3, 2025

I have read the CLA Document and I hereby sign the CLA

srv-gh-tools added a commit to splunk/cla-agreement that referenced this pull request Apr 3, 2025
@megazina
Copy link
Contributor Author

megazina commented Apr 3, 2025

I have read the Code of Conduct and I hereby accept the Terms

Copy link
Collaborator

@greatestusername-splunk greatestusername-splunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few ease of use asks but otherwise approved.

This looks great and thank you so much for contributing this!

@@ -0,0 +1,90 @@
curl --location 'https://api.us1.signalfx.com/v2/detector' \
--header 'Content-Type: application/json' \
--header 'X-SF-TOKEN: REPLACEME' \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might I suggest pulling from an environment variable in these scripts and noting the env var to use in the README so folks don't have to put their key in a file?

Thoughts?

@@ -0,0 +1,57 @@
curl --location 'https://api.us1.signalfx.com/v2/detector' \
--header 'Content-Type: application/json' \
--header 'X-SF-TOKEN: REPLACEME' \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same thought here RE: env var

## Inferred Services - Sample Detectors
![Sample Detectors for Latency and Error rate of Inferred Services](../../detectors/inferred-services-detectors/detectors-1.png)

Use curl command to post the detector (replace `Token` and `Realm` as required).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo? Uses
Maybe "This script uses the curl command..."?

@@ -0,0 +1,90 @@
curl --location 'https://api.us1.signalfx.com/v2/detector' \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please chmod the *.sh files to something like 766 so anyone can read/write but only owner can execute. Currently script isn't executable without chmoding it.


Use curl command to post the detector (replace `Token` and `Realm` as required).

These can be used as a starting point to customise signals, thresholds, messaging etc.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind noting something along the lines of
"The created detector will not be filtered to any specific inferred service and will not have any notification paths set unless you make those changes in the detector or script."

Just so folks know they are going to need to configure a few things in particular?

@greatestusername-splunk greatestusername-splunk merged commit e45625a into splunk:main Apr 10, 2025
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants