Skip to content

Commit

Permalink
add alloy integration schema
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <[email protected]>
  • Loading branch information
petewall committed Feb 13, 2025
1 parent c9f44c0 commit eb8138b
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"type": "object",
"properties": {
"fieldSelectors": {
"type": "array"
},
"jobLabel": {
"type": "string"
},
"labelSelectors": {
"type": "object"
},
"metrics": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"maxCacheSize": {
"type": "null"
},
"portName": {
"type": "string"
},
"scrapeInterval": {
"type": "null"
},
"tuning": {
"type": "object",
"properties": {
"excludeMetrics": {
"type": "array"
},
"includeMetrics": {
"type": "array"
},
"useDefaultAllowList": {
"type": "boolean"
}
}
}
}
},
"name": {
"type": "string"
},
"namespaces": {
"type": "array"
},
"type": {
"type": "string",
"const": "alloy"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,16 @@
},
"definitions": {
"alloy-integration": {
"type": "object",
"properties": {
"fieldSelectors": {
"type": "array"
},
"jobLabel": {
"type": "string"
},
"labelSelectors": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
Expand All @@ -115,6 +123,47 @@
}
]
}
},
"metrics": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"maxCacheSize": {
"type": "null"
},
"portName": {
"type": "string"
},
"scrapeInterval": {
"type": "null"
},
"tuning": {
"type": "object",
"properties": {
"excludeMetrics": {
"type": "array"
},
"includeMetrics": {
"type": "array"
},
"useDefaultAllowList": {
"type": "boolean"
}
}
}
}
},
"name": {
"type": "string"
},
"namespaces": {
"type": "array"
},
"type": {
"type": "string",
"const": "alloy"
}
}
},
Expand Down

0 comments on commit eb8138b

Please sign in to comment.